Skip to content

Commit

Permalink
Update accordion.jsx (#128)
Browse files Browse the repository at this point in the history
Add className injection to accordion header
  • Loading branch information
willbreitkreutz authored Oct 24, 2024
1 parent 24bff54 commit aa402b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/components/display/accordion.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ function Accordion({
heading,
defaultOpen = false,
unmountOnClose = false,
className,
children,
}) {
return (
Expand All @@ -16,7 +17,8 @@ function Accordion({
<Disclosure.Button
className={gwMerge(
"gw-flex gw-justify-between gw-items-center gw-w-full gw-shadow gw-px-3 gw-py-2 gw-text-sm gw-font-semibold gw-text-gray-500 gw-bg-gray-50 hover:gw-bg-gray-100",
open ? "gw-rounded-t" : "gw-rounded"
open ? "gw-rounded-t" : "gw-rounded",
className
)}
>
{heading}
Expand Down

0 comments on commit aa402b5

Please sign in to comment.