File tree Expand file tree Collapse file tree 4 files changed +44
-56
lines changed
packages/components/src/components Expand file tree Collapse file tree 4 files changed +44
-56
lines changed Original file line number Diff line number Diff line change 160
160
white-space : nowrap ;
161
161
text-overflow : ellipsis ;
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 330
330
align-items : flex-start ;
331
331
}
332
332
333
- .#{$prefix } --modal-footer button .#{$prefix } --btn :focus {
334
- // Firefox HCM Fix
335
- @media screen and (prefers-contrast ) {
336
- border : none ;
337
- outline-style : dotted ;
338
- }
339
- }
340
-
341
333
.#{$prefix } --modal-close {
342
334
position : absolute ;
343
335
top : 0 ;
358
350
& :focus {
359
351
border-color : $focus ;
360
352
outline : none ;
361
-
362
- // Firefox HCM Fix
363
- @media screen and (prefers-contrast ) {
364
- border-style : dotted ;
365
- }
366
353
}
367
354
}
368
355
374
361
width : rem (20px );
375
362
height : rem (20px );
376
363
fill : $icon-primary ;
377
-
378
- // Windows, Firefox HCM Fix
379
- @media screen and (-ms-high-contrast : active ),
380
- screen and (prefers-contrast ) {
381
- // `ButtonText` is a CSS2 system color to help improve colors in HCM
382
- fill : ButtonText ;
383
- }
384
364
}
385
365
386
366
.#{$prefix } --body--with-modal-open {
390
370
.#{$prefix } --body--with-modal-open .#{$prefix } --tooltip {
391
371
z-index : z (' modal' );
392
372
}
373
+
374
+ // Windows HCM fixes
375
+ /* stylelint-disable */
376
+ .#{$prefix } --modal-close__icon {
377
+ @include high-contrast-mode (' icon-fill' );
378
+ }
379
+
380
+ .#{$prefix } --modal-close :focus {
381
+ @include high-contrast-mode (' focus' );
382
+ }
383
+ /* stylelint-enable */
393
384
}
394
385
395
386
@include exports (' modal' ) {
Original file line number Diff line number Diff line change 49
49
@include carbon--breakpoint (max ) {
50
50
max-width : rem (832px );
51
51
}
52
-
53
- // Firefox HCM fix
54
- @media screen and (prefers-contrast ) {
55
- outline-width : 1px ;
56
- outline-style : solid ;
57
- }
58
52
}
59
53
60
54
.#{$prefix } --inline-notification :not (.#{$prefix}--inline-notification--low-contrast)
249
243
outline : 2px solid $focus-inverse ;
250
244
outline-offset : -2px ;
251
245
box-shadow : none ;
252
-
253
- // Firefox HCM Fix
254
- @media screen and (prefers-contrast ) {
255
- border-style : dotted ;
256
- outline-style : dotted ;
257
- }
258
246
}
259
247
260
248
.#{$prefix } --inline-notification--low-contrast
291
279
& :focus {
292
280
outline : 2px solid $focus-inverse ;
293
281
outline-offset : -2px ;
294
-
295
- // Firefox HCM fix
296
- @media screen and (prefers-contrast ) {
297
- outline-style : dotted ;
298
- }
299
282
}
300
283
301
284
.#{$prefix } --inline-notification__close-icon {
317
300
.#{$prefix } --inline-notification__close-icon {
318
301
fill : $icon-primary ;
319
302
}
303
+
304
+ // Windows HCM fixes
305
+ // stylelint-disable-next-line no-duplicate-selectors
306
+ .#{$prefix } --inline-notification {
307
+ @include high-contrast-mode (' outline' );
308
+ }
309
+
310
+ .#{$prefix } --inline-notification__close-button :focus ,
311
+ .#{$prefix } --btn.#{$prefix } --btn--ghost.#{$prefix } --inline-notification__action-button :focus {
312
+ @include high-contrast-mode (' focus' );
313
+ }
320
314
}
321
315
322
316
@include exports (' inline-notifications' ) {
Original file line number Diff line number Diff line change 42
42
@include carbon--breakpoint (max ) {
43
43
width : rem (352px );
44
44
}
45
-
46
- // Firefox HCM fix
47
- @media screen and (prefers-contrast ) {
48
- outline-width : 1px ;
49
- outline-style : solid ;
50
- }
51
45
}
52
46
53
47
.#{$prefix } --toast-notification :not (.#{$prefix}--toast-notification--low-contrast)
231
225
.#{$prefix } --toast-notification__caption {
232
226
color : $text-primary ;
233
227
}
228
+
229
+ // Windows HCM fixes
230
+ /* stylelint-disable */
231
+ .#{$prefix } --toast-notification {
232
+ @include high-contrast-mode (' outline' );
233
+ }
234
+
235
+ .#{$prefix } --toast-notification__close-button :focus {
236
+ @include high-contrast-mode (' focus' );
237
+ }
238
+ /* stylelint-enable */
234
239
}
235
240
236
241
@include exports (' toast-notifications' ) {
You can’t perform that action at this time.
0 commit comments