Skip to content

Commit

Permalink
Customize Widgets: Standardize reduced motion handling using media qu…
Browse files Browse the repository at this point in the history
…eries (#68425)

Co-authored-by: im3dabasia <im3dabasia1@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
  • Loading branch information
3 people authored Jan 14, 2025
1 parent f73a06f commit 680f51f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/customize-widgets/src/components/header/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@
}

svg {
transition: transform cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s;
@include reduce-motion("transition");
@media not (prefers-reduced-motion) {
transition: transform cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s;
}
}

&.is-pressed {
Expand Down

0 comments on commit 680f51f

Please sign in to comment.