@@ -60,9 +60,12 @@ $resize-handler-container-size: $resize-handler-size + ($grid-unit-05 * 2); // M
60
60
position : absolute ;
61
61
top : calc (50% - 1px );
62
62
right : calc (50% - 1px );
63
- transition : transform 0.1s ease-in ;
64
- @include reduce-motion (" transition" );
65
- will-change : transform ;
63
+
64
+ @media not (prefers-reduced-motion ) {
65
+ transition : transform 0.1s ease-in ;
66
+ will-change : transform ;
67
+ }
68
+
66
69
opacity : 0 ;
67
70
}
68
71
@@ -102,18 +105,20 @@ $resize-handler-container-size: $resize-handler-size + ($grid-unit-05 * 2); // M
102
105
.components-resizable-box__side-handle.components-resizable-box__handle-bottom :hover ::before ,
103
106
.components-resizable-box__side-handle.components-resizable-box__handle-top :active ::before ,
104
107
.components-resizable-box__side-handle.components-resizable-box__handle-bottom :active ::before {
105
- animation : components- resizable- box__top- bottom- animation 0.1s ease-out 0s ;
106
- animation-fill-mode : forwards ;
107
- @include reduce-motion (" animation" );
108
+ @media not (prefers-reduced-motion ) {
109
+ animation : components- resizable- box__top- bottom- animation 0.1s ease-out 0s ;
110
+ animation-fill-mode : forwards ;
111
+ }
108
112
}
109
113
110
114
.components-resizable-box__side-handle.components-resizable-box__handle-left :hover ::before ,
111
115
.components-resizable-box__side-handle.components-resizable-box__handle-right :hover ::before ,
112
116
.components-resizable-box__side-handle.components-resizable-box__handle-left :active ::before ,
113
117
.components-resizable-box__side-handle.components-resizable-box__handle-right :active ::before {
114
- animation : components- resizable- box__left- right- animation 0.1s ease-out 0s ;
115
- animation-fill-mode : forwards ;
116
- @include reduce-motion (" animation" );
118
+ @media not (prefers-reduced-motion ) {
119
+ animation : components- resizable- box__left- right- animation 0.1s ease-out 0s ;
120
+ animation-fill-mode : forwards ;
121
+ }
117
122
}
118
123
119
124
/* This CSS is shown only to Safari, which has a bug with table-caption making it jumpy.
0 commit comments