Skip to content

Commit

Permalink
fix: Accordion click targets
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Dow committed Jun 3, 2024
1 parent a222015 commit 6a37364
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/Accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,15 @@ export function Accordion<X extends Only<AccordionXss, X>>(props: AccordionProps
>
{titleOnClick ? (
<div {...focusProps} aria-controls={id} aria-expanded={expanded} css={Css.df.$}>
<button {...tid.title} disabled={disabled} css={{ ...touchableStyle, ...Css.fg0.$ }} onClick={titleOnClick}>
<button {...tid.title} disabled={disabled} css={{ ...touchableStyle, ...Css.fg1.$ }} onClick={titleOnClick}>
{title}
</button>
<button {...tid.toggle} disabled={disabled} css={{ ...touchableStyle, ...Css.fg1.jcfe.$ }} onClick={toggle}>
<button
{...tid.toggle}
disabled={disabled}
css={{ ...touchableStyle, ...Css.px2.jcfe.if(compact).pxPx(10).$ }}
onClick={toggle}
>
<RotatingChevronIcon expanded={expanded} />
</button>
</div>
Expand Down

0 comments on commit 6a37364

Please sign in to comment.