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 d39f45e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ 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.px1.jcfe.$ }} onClick={toggle}>
<RotatingChevronIcon expanded={expanded} />
</button>
</div>
Expand Down

0 comments on commit d39f45e

Please sign in to comment.