Skip to content

Commit

Permalink
Toolbar: Standardize reduced motion handling using media queries
Browse files Browse the repository at this point in the history
  • Loading branch information
SainathPoojary committed Jan 3, 2025
1 parent 7ea0752 commit fb9f4ee
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/components/src/toolbar/toolbar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@
z-index: -1;

// Animate in.
animation: components-button__appear-animation 0.1s ease;
animation-fill-mode: forwards;
@include reduce-motion("animation");
@media not (prefers-reduced-motion) {
animation: components-button__appear-animation 0.1s ease;
animation-fill-mode: forwards;
}
}

svg {
Expand Down

0 comments on commit fb9f4ee

Please sign in to comment.