Skip to content

Commit 680f51f

Browse files
im3dabasiaim3dabasiat-hamano
authored
Customize Widgets: Standardize reduced motion handling using media queries (#68425)
Co-authored-by: im3dabasia <[email protected]> Co-authored-by: t-hamano <[email protected]>
1 parent f73a06f commit 680f51f

File tree

1 file changed

+3
-2
lines changed
  • packages/customize-widgets/src/components/header

1 file changed

+3
-2
lines changed

packages/customize-widgets/src/components/header/style.scss

+3-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@
4242
}
4343

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

4950
&.is-pressed {

0 commit comments

Comments
 (0)