Skip to content

Commit

Permalink
fix(Accordion): spacing with no actions was wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
DSil committed Oct 2, 2024
1 parent 5e4f15c commit 342b946
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,18 @@ const AccordionSectionHeader = ({
<div
className={cx(
"p-600 bg-white-normal flex items-center",
expanded ? "min-h-[19px]" : "min-h-[44px]",
expanded ? "min-h-[19px]" : "min-h-form-box-normal",
)}
data-test={dataTest && `${dataTest}Header`}
>
<div className="flex grow items-center">{children}</div>
{!expanded && (
{!expanded && expandable && (
<div className="ms-600 flex">
{expandable &&
(actions || (
<Button onClick={onExpand} type="secondary">
Open
</Button>
))}
{actions || (
<Button onClick={onExpand} type="secondary">
Open
</Button>
)}
</div>
)}
</div>
Expand Down

0 comments on commit 342b946

Please sign in to comment.