File tree Expand file tree Collapse file tree 4 files changed +29
-35
lines changed
packages/components/src/components Expand file tree Collapse file tree 4 files changed +29
-35
lines changed Original file line number Diff line number Diff line change 160
160
text-overflow : ellipsis ;
161
161
white-space : nowrap ;
162
162
}
163
-
164
- // Windows, Firefox HCM Fix
165
- @media screen and (-ms-high-contrast : active ),
166
- screen and (prefers-contrast ) {
167
- outline : 2px solid transparent ;
168
- }
169
163
}
170
164
171
165
.#{$prefix } --file__selected-file--field {
307
301
308
302
.#{$prefix } --file__state-container .#{$prefix } --file-close svg path {
309
303
fill : $icon-primary ;
310
-
311
- // Windows, Firefox HCM Fix
312
- @media screen and (-ms-high-contrast : active ),
313
- screen and (prefers-contrast ) {
314
- // `ButtonText` is a CSS2 system color to help improve colors in HCM
315
- fill : ButtonText ;
316
- }
317
304
}
318
305
319
306
.#{$prefix } --file__state-container .#{$prefix } --inline-loading__animation {
335
322
outline : 2px solid $focus ;
336
323
outline-offset : -2px ;
337
324
}
325
+
326
+ // Windows HCM fix
327
+ /* stylelint-disable */
328
+ .#{$prefix } --file__selected-file {
329
+ @include high-contrast-mode (' outline' );
330
+ }
331
+
332
+ .#{$prefix } --file__state-container .#{$prefix } --file-close svg path {
333
+ @include high-contrast-mode (' icon-fill' );
334
+ }
335
+ /* stylelint-enable */
338
336
}
339
337
340
338
@include exports (' file-uploader' ) {
Original file line number Diff line number Diff line change 324
324
align-items : flex-start ;
325
325
}
326
326
327
- .#{$prefix } --modal-footer button .#{$prefix } --btn :focus {
328
- // Firefox HCM Fix
329
- @media screen and (prefers-contrast ) {
330
- border : none ;
331
- outline-style : dotted ;
332
- }
333
- }
334
-
335
327
.#{$prefix } --modal-close {
336
328
position : absolute ;
337
329
top : 0 ;
352
344
& :focus {
353
345
border-color : $focus ;
354
346
outline : none ;
355
-
356
- // Firefox HCM Fix
357
- @media screen and (prefers-contrast ) {
358
- border-style : dotted ;
359
- }
360
347
}
361
348
}
362
349
368
355
width : rem (20px );
369
356
height : rem (20px );
370
357
fill : $icon-primary ;
371
-
372
- // Windows, Firefox HCM Fix
373
- @media screen and (-ms-high-contrast : active ),
374
- screen and (prefers-contrast ) {
375
- // `ButtonText` is a CSS2 system color to help improve colors in HCM
376
- fill : ButtonText ;
377
- }
378
358
}
379
359
380
360
.#{$prefix } --body--with-modal-open {
384
364
.#{$prefix } --body--with-modal-open .#{$prefix } --tooltip {
385
365
z-index : z (' modal' );
386
366
}
367
+
368
+ // Windows HCM fixes
369
+ /* stylelint-disable */
370
+ .#{$prefix } --modal-close__icon {
371
+ @include high-contrast-mode (' icon-fill' );
372
+ }
373
+
374
+ .#{$prefix } --modal-close :focus {
375
+ @include high-contrast-mode (' focus' );
376
+ }
377
+ /* stylelint-enable */
387
378
}
388
379
389
380
@include exports (' modal' ) {
Original file line number Diff line number Diff line change 301
301
fill : $icon-primary ;
302
302
}
303
303
304
+ // Windows HCM fixes
304
305
/* stylelint-disable */
305
306
.#{$prefix } --inline-notification {
306
307
@include high-contrast-mode (' outline' );
307
308
}
308
- .#{$prefix } --inline-notification__close-button {
309
+
310
+ .#{$prefix } --inline-notification__close-button :focus ,
311
+ .#{$prefix } --btn.#{$prefix } --btn--ghost.#{$prefix } --inline-notification__action-button :focus {
309
312
@include high-contrast-mode (' focus' );
310
313
}
314
+
311
315
.#{$prefix } --inline-notification__icon {
312
316
@include high-contrast-mode (' icon-fill' );
313
317
}
Original file line number Diff line number Diff line change 221
221
color : $text-primary ;
222
222
}
223
223
224
+ // Windows HCM fixes
224
225
/* stylelint-disable */
225
226
.#{$prefix } --toast-notification {
226
227
@include high-contrast-mode (' outline' );
227
228
}
228
- .#{$prefix } --toast-notification__close-button {
229
+ .#{$prefix } --toast-notification__close-button :focus {
229
230
@include high-contrast-mode (' focus' );
230
231
}
231
232
.#{$prefix } --toast-notification__icon {
You can’t perform that action at this time.
0 commit comments