Skip to content

Commit

Permalink
Merge branch 'SLB-299-accordion' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
colorfield committed May 3, 2024
2 parents 0056b4a + c0935d5 commit c46b027
Showing 1 changed file with 30 additions and 28 deletions.
58 changes: 30 additions & 28 deletions packages/ui/src/components/Organisms/PageContent/BlockAccordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,34 +63,36 @@ export function BlockAccordion(props: BlockAccordionFragment) {
</span>
</Accordion.Title>
<Accordion.Content className="space-y-2">
{item.textContent?.markup && (
<Html
plugins={[unorderedItems]}
components={{
li: ({
unordered,
children,
className,
...props
}: PropsWithChildren<{
unordered?: boolean;
className?: string;
}>) => {
return (
<li
{...props}
className={clsx(className, {
'ml-5 mt-1 mb-1 list-disc': unordered,
})}
>
{children}
</li>
);
},
}}
markup={item.textContent.markup}
/>
)}
<div className="sm:w-full md:w-4/5 lg:w-3/5">
{item.textContent?.markup && (
<Html
plugins={[unorderedItems]}
components={{
li: ({
unordered,
children,
className,
...props
}: PropsWithChildren<{
unordered?: boolean;
className?: string;
}>) => {
return (
<li
{...props}
className={clsx(className, {
'ml-5 mt-1 mb-1 list-disc': unordered,
})}
>
{children}
</li>
);
},
}}
markup={item.textContent.markup}
/>
)}
</div>
</Accordion.Content>
</Accordion.Panel>
))}
Expand Down

0 comments on commit c46b027

Please sign in to comment.