@@ -21,57 +21,47 @@ const code = `() => {
2121 return (
2222 <DxcInset space="2rem">
2323 <DxcFlex direction="row">
24- <DxcInset space ="2rem">
24+ <DxcFlex direction="column" gap ="2rem">
2525 <div id="accordion">
26- <DxcHeading
27- level={2}
28- text="Accordion"
29- margin={{ top: "xsmall", bottom: "xsmall" }}
30- />
31- <div id="accordion-code">
32- <DxcHeading
33- level={3}
34- text="Code"
35- margin={{ top: "xsmall", bottom: "xsmall" }}
36- />
37- <DxcParagraph>
38- Accordions are used to group similar content and hide or show it
39- depending on user needs or preferences. Accordions give users
40- more granular control over the interface and help digest content
41- in stages, rather than all at once.
42- </DxcParagraph>
43- </div>
44- <div id="accordion-usage">
45- <DxcHeading
46- level={3}
47- text="Usage"
48- margin={{ top: "xsmall", bottom: "xsmall" }}
49- />
50- <DxcParagraph>
51- The accordion component delivers large amounts of content in a
52- small space through progressive disclosure.
53- </DxcParagraph>
54- </div>
26+ <DxcFlex direction="column" gap="1rem">
27+ <DxcHeading level={2} text="Accordion" />
28+ <div id="accordion-code">
29+ <DxcFlex direction="column" gap="1rem">
30+ <DxcHeading level={3} text="Code" />
31+ <DxcParagraph>
32+ Accordions are used to group similar content and hide or
33+ show it depending on user needs or preferences. Accordions
34+ give users more granular control over the interface and help
35+ digest content in stages, rather than all at once.
36+ </DxcParagraph>
37+ </DxcFlex>
38+ </div>
39+ <div id="accordion-usage">
40+ <DxcFlex direction="column" gap="1rem">
41+ <DxcHeading level={3} text="Usage" />
42+ <DxcParagraph>
43+ The accordion component delivers large amounts of content in
44+ a small space through progressive disclosure.
45+ </DxcParagraph>
46+ </DxcFlex>
47+ </div>
48+ </DxcFlex>
5549 </div>
5650 <div id="alert">
57- <DxcHeading
58- level={2}
59- text="Alert"
60- margin={{ top: "xsmall", bottom: "xsmall" }}
61- />
62- <div id="alert-code">
63- <DxcHeading
64- level={3}
65- text="Code"
66- margin={{ top: "xsmall", bottom: "xsmall" }}
67- />
68- <DxcParagraph>
69- Alert messages are meant to provide contextual feedback about
70- important changes in the interface.
71- </DxcParagraph>
72- </div>
51+ <DxcFlex direction="column" gap="1rem">
52+ <DxcHeading level={2} text="Alert" />
53+ <div id="alert-code">
54+ <DxcFlex direction="column" gap="1rem">
55+ <DxcHeading level={3} text="Code" />
56+ <DxcParagraph>
57+ Alert messages are meant to provide contextual feedback
58+ about important changes in the interface.
59+ </DxcParagraph>
60+ </DxcFlex>
61+ </div>
62+ </DxcFlex>
7363 </div>
74- </DxcInset >
64+ </DxcFlex >
7565 <DxcInset space="2rem">
7666 <DxcQuickNav links={links}></DxcQuickNav>
7767 </DxcInset>
0 commit comments