Skip to content

Commit

Permalink
fix(content-switcher): forgo transition if prefers-reduced-motion (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Feb 17, 2022
1 parent ff7418e commit db5c365
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@
transform: scaleY(0);
transform-origin: bottom;
transition: all $duration--moderate-01 motion(standard, productive);

@media (prefers-reduced-motion: reduce) {
transition: none;
}
}

&:disabled::after {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@
transform: scaleY(0);
transform-origin: bottom;
transition: all $duration-moderate-01 motion(standard, productive);

@media (prefers-reduced-motion: reduce) {
transition: none;
}
}

&:disabled::after {
Expand Down

0 comments on commit db5c365

Please sign in to comment.