Skip to content

Commit

Permalink
style(accordion): disable collapse icon transition when prefers motio…
Browse files Browse the repository at this point in the history
…n reduce is enabled
  • Loading branch information
Powerplex committed Jun 25, 2024
1 parent 8d0fb01 commit 77e3e5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/components/accordion/src/AccordionItemTrigger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const ItemTrigger = forwardRef<HTMLButtonElement, AccordionItemTriggerPro
<div className="flex items-center gap-lg">{children}</div>
<Icon
intent="neutral"
className={cx('shrink-0 rotate-0 transition duration-100 ease-in', {
className={cx('shrink-0 rotate-0 duration-100 ease-in motion-reduce:transition-none', {
'rotate-180': isOpen,
})}
size="sm"
Expand Down

0 comments on commit 77e3e5b

Please sign in to comment.