Skip to content

Commit

Permalink
Fix rotation and transition properties in accordion.scss
Browse files Browse the repository at this point in the history
  • Loading branch information
dlnr committed Apr 16, 2024
1 parent f525f40 commit eb4a9ca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/css/src/components/accordion/accordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,20 @@
}

.ams-accordion__icon svg {
transform: rotate(0deg);
transition: transform 0.3s ease;
rotate: 0deg;
transition: none;

[aria-expanded="true"] & {
transform: rotate(180deg);
rotate: -180deg;
}

@media not (prefers-reduced-motion) {
transition: transform 0.3s ease;
transition: rotate 0.3s ease;
}
}

.ams-accordion__button[aria-expanded="true"] svg {
transform: rotate(180deg);
rotate: -180deg;
}

.ams-accordion__panel {
Expand Down

0 comments on commit eb4a9ca

Please sign in to comment.