File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -150,19 +150,23 @@ governing permissions and limitations under the License.
150
150
& : active {
151
151
/* stylelint-disable-next-line spectrum-tools/no-unknown-custom-properties */
152
152
transform : perspective (max (var (--spectrum-downstate-height ), var (--spectrum-downstate-width ) * var (--spectrum-component-size-width-ratio-down ))) translateZ (var (--spectrum-component-size-difference-down ));
153
+
154
+ @media (prefers-reduced-motion : reduce) {
155
+ transform : none;
156
+ }
153
157
}
154
158
155
159
.spectrum-Icon {
156
160
/* Any block-size difference between the intended workflow icon size and actual icon used.
157
161
Helps support any existing use of smaller UI icons instead of intended Workflow icons. */
158
162
--_icon-size-difference : max (0px ,
159
- var (--spectrum-button-intended-icon-size ) -
163
+ var (--spectrum-button-intended-icon-size ) -
160
164
var (--spectrum-icon-block-size , var (--spectrum-button-intended-icon-size ))
161
165
);
162
166
163
167
margin-block-start : var (--mod-button-icon-margin-block-start ,
164
168
max (0px ,
165
- var (--mod-button-top-to-icon , var (--spectrum-button-top-to-icon )) -
169
+ var (--mod-button-top-to-icon , var (--spectrum-button-top-to-icon )) -
166
170
var (--mod-button-border-width , var (--spectrum-button-border-width )) +
167
171
(var (--_icon-size-difference , 0px ) / 2 )
168
172
)
Original file line number Diff line number Diff line change @@ -139,6 +139,10 @@ governing permissions and limitations under the License.
139
139
& : active {
140
140
.spectrum-Checkbox-box {
141
141
transform : perspective (var (--spectrum-component-size-minimum-perspective-down )) translateZ (var (--spectrum-component-size-difference-down ));
142
+
143
+ @media (prefers-reduced-motion : reduce) {
144
+ transform : none;
145
+ }
142
146
}
143
147
144
148
.spectrum-Checkbox-box ::before {
You can’t perform that action at this time.
0 commit comments