Skip to content

Commit 1c91840

Browse files
authored
Merge pull request #2229 from dxc-technology/rarrojolopez/accordion-fix
Added accordion stories
2 parents 3b779a7 + c4e7230 commit 1c91840

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

packages/lib/src/accordion/Accordion.stories.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,20 @@ const Accordion = () => (
331331
</DxcAccordion.AccordionItem>
332332
</DxcAccordion>
333333
</ExampleContainer>
334+
<ExampleContainer>
335+
<Title title="Sublabel longer than label" theme="light" level={4} />
336+
<DxcAccordion>
337+
<DxcAccordion.AccordionItem
338+
label="Bounce Rate"
339+
subLabel="Mon, May 19, 3:17 PM"
340+
badge={{ position: "after", element: <DxcBadge label="Resolved" icon="check_circle" color="green" /> }}
341+
>
342+
<DxcInset space="var(--spacing-padding-l)">
343+
To edit your profile you need to go to Settings and click on Profile.
344+
</DxcInset>
345+
</DxcAccordion.AccordionItem>
346+
</DxcAccordion>
347+
</ExampleContainer>
334348
<ExampleContainer>
335349
<Title title="Short label, long sublabel and long assistive text" theme="light" level={4} />
336350
<DxcAccordion>

0 commit comments

Comments
 (0)