File tree Expand file tree Collapse file tree 16 files changed +119
-112
lines changed
packages/components/src/components Expand file tree Collapse file tree 16 files changed +119
-112
lines changed Original file line number Diff line number Diff line change 177
177
opacity : 1 ;
178
178
transform : rotate (0 );
179
179
transition : transform $transition--base $carbon--standard-easing ;
180
- <<<<<<< HEAD
181
- =======
182
- fill : $icon-primary ;
183
- >>>>>>> f 44269d 77... feat (HCM): update more components
184
180
}
185
181
186
182
// ----------------------------------------------------------------------------
Original file line number Diff line number Diff line change 447
447
display : none ;
448
448
}
449
449
}
450
+
451
+ // Windows HCM fixes
450
452
/* stylelint-disable */
453
+ .#{$prefix } --number__control-btn :hover ,
454
+ .#{$prefix } --number__control-btn :focus {
455
+ @include high-contrast-mode (' focus' );
456
+ }
457
+
451
458
.#{$prefix } --number__control-btn {
452
459
@include high-contrast-mode (' outline' );
453
- & :focus {
454
- @include high-contrast-mode (' focus' );
455
- }
460
+ }
461
+
462
+ .#{$prefix } --number__control-btn svg {
463
+ @include high-contrast-mode (' icon-fill' );
456
464
}
457
465
/* stylelint-enable */
458
466
}
Original file line number Diff line number Diff line change 336
336
}
337
337
}
338
338
339
- // Windows HCM fix
339
+ // Windows HCM fixes
340
340
/* stylelint-disable */
341
- .#{$prefix } --overflow-menu {
342
- & :focus {
343
- @include high-contrast-mode (' focus' );
344
- }
345
- circle {
346
- @include high-contrast-mode (' outline' );
347
- }
348
- }
341
+ .#{$prefix } --overflow-menu :focus ,
349
342
.#{$prefix } --overflow-menu-options__btn :focus {
350
343
@include high-contrast-mode (' focus' );
351
344
}
345
+
346
+ .#{$prefix } --overflow-menu svg {
347
+ @include high-contrast-mode (' icon-fill' );
348
+ }
352
349
/* stylelint-enable */
353
350
}
354
351
Original file line number Diff line number Diff line change @@ -165,13 +165,6 @@ $css--helpers: true;
165
165
fill : $icon-primary ;
166
166
transition : outline $duration--fast-02 motion (standard , productive ),
167
167
background-color $duration--fast-02 motion (standard , productive );
168
-
169
- // Windows, Firefox HCM Fix
170
- @media screen and (-ms-high-contrast : active ),
171
- screen and (prefers-contrast ) {
172
- // `ButtonText` is a CSS2 system color to help improve colors in HCM
173
- border : 1px solid transparent ;
174
- }
175
168
}
176
169
177
170
.#{$prefix } --pagination__button :focus ,
@@ -207,6 +200,13 @@ $css--helpers: true;
207
200
margin-right : 1rem ;
208
201
margin-bottom : 0 ;
209
202
}
203
+
204
+ // Windows HCM fixes
205
+ // stylelint-disable-next-line no-duplicate-selectors
206
+ .#{$prefix } --pagination__button ,
207
+ .#{$prefix } --btn--ghost.#{$prefix } --pagination__button {
208
+ @include high-contrast-mode (' outline' );
209
+ }
210
210
}
211
211
212
212
@include exports (' pagination' ) {
Original file line number Diff line number Diff line change 121
121
fill : $icon-secondary ;
122
122
pointer-events : none ;
123
123
transform : translateY (-50% );
124
-
125
- // Windows, Firefox HCM Fix
126
- @media screen and (-ms-high-contrast : active ),
127
- screen and (prefers-contrast ) {
128
- // `ButtonText` is a CSS2 system color to help improve colors in HCM
129
- fill : ButtonText ;
130
- }
131
124
}
132
125
133
126
.#{$prefix } --search-close {
173
166
174
167
.#{$prefix } --search-close svg {
175
168
fill : inherit ;
176
-
177
- // Firefox HCM Fix
178
- @media screen and (prefers-contrast ) {
179
- // `ButtonText` is a CSS2 system color to help improve colors in HCM
180
- fill : ButtonText ;
181
- }
182
169
}
183
170
184
171
.#{$prefix } --search-close ,
365
352
.#{$prefix } --search-magnifier-icon {
366
353
fill : $icon-secondary ;
367
354
}
355
+
356
+ // Windows HCM Fixes
357
+ .#{$prefix } --search-close svg ,
358
+ .#{$prefix } --search-magnifier-icon {
359
+ @include high-contrast-mode (' icon-fill' );
360
+ }
368
361
}
369
362
370
363
@include exports (' search' ) {
Original file line number Diff line number Diff line change 178
178
color : $text-primary ;
179
179
}
180
180
181
- // Override some Firefox user-agent styles
182
- @-moz-document url-prefix () {
183
- .#{$prefix } --select-option {
184
- background-color : $layer ;
185
- color : $text-primary ;
186
- }
187
-
188
- .#{$prefix } --select-optgroup {
189
- color : $text-primary ;
190
- }
191
- }
192
-
193
181
.#{$prefix } --select--inline {
194
182
display : flex ;
195
183
flex-direction : row ;
263
251
.#{$prefix } --select.#{$prefix } --skeleton .#{$prefix } --select-input {
264
252
display : none ;
265
253
}
254
+
255
+ // Windows HCM Fix
256
+ // stylelint-disable-next-line no-duplicate-selectors
257
+ .#{$prefix } --select__arrow {
258
+ @include high-contrast-mode (' icon-fill' );
259
+ }
266
260
}
267
261
268
262
@include exports (' select' ) {
Original file line number Diff line number Diff line change 209
209
pointer-events : none ;
210
210
}
211
211
212
+ // Windows HCM fixes
212
213
/* stylelint-disable */
213
214
.#{$prefix } --slider__thumb {
214
215
@include high-contrast-mode (' outline' );
Original file line number Diff line number Diff line change 189
189
}
190
190
}
191
191
192
+ // Windows HCM Fix
192
193
.#{$prefix } --structured-list-input :checked
193
194
+ .#{$prefix } --structured-list-td
194
195
.#{$prefix } --structured-list-svg {
Original file line number Diff line number Diff line change 845
845
.#{$prefix } --tabs.#{$prefix } --skeleton .#{$prefix } --tabs-trigger svg {
846
846
@include hidden ;
847
847
}
848
+ }
848
849
849
- .#{$prefix } --tabs--scrollable__nav-item
850
- .#{$prefix } --tabs__nav-item--selected
851
- .#{$prefix } --tabs--scrollable__nav-item--selected {
852
- @include high-contrast-mode (' focus' );
853
- }
850
+ // Windows HCM Fixes
851
+ .#{$prefix } --tabs--scrollable__nav-item
852
+ .#{$prefix } --tabs__nav-item--selected
853
+ .#{$prefix } --tabs--scrollable__nav-item--selected {
854
+ @include high-contrast-mode (' focus' );
855
+ }
856
+
857
+ // stylelint-disable-next-line no-duplicate-selectors
858
+ .#{$prefix } --tabs--scrollable
859
+ .#{$prefix } --tabs--scrollable__nav-item--disabled
860
+ .#{$prefix } --tabs--scrollable__nav-link {
861
+ @include high-contrast-mode (' disabled' );
854
862
}
855
863
}
856
864
Original file line number Diff line number Diff line change 221
221
border-radius : 50% ;
222
222
box-shadow : inset 0 0 0 1px $focus ;
223
223
outline : none ;
224
-
225
- // Windows, Firefox HCM Fix
226
- @media screen and (-ms-high-contrast : active ),
227
- screen and (prefers-contrast ) {
228
- // `ButtonText` is a CSS2 system color to help improve colors in HCM
229
- outline : 1px solid ButtonText ;
230
- }
231
224
}
232
225
233
226
.#{$prefix } --tag--high-contrast .#{$prefix } --tag__close-icon :focus {
277
270
}
278
271
}
279
272
}
273
+
274
+ // Windows HCM Fixes
275
+ /* stylelint-disable */
276
+ .#{$prefix } --tag {
277
+ @include high-contrast-mode (' outline' );
278
+ }
279
+
280
+ .#{$prefix } --tag__close-icon svg ,
281
+ .#{$prefix } --tag__custom-icon svg {
282
+ @include high-contrast-mode (' icon-fill' );
283
+ }
284
+
285
+ .#{$prefix } --tag__close-icon :focus {
286
+ @include high-contrast-mode (' focus' );
287
+ }
288
+ /* stylelint-enable */
280
289
}
281
290
282
291
@include exports (' tags' ) {
Original file line number Diff line number Diff line change 123
123
svg {
124
124
fill : $icon-secondary ;
125
125
transition : fill $duration--fast-01 motion (standard , productive );
126
-
127
- // Windows, Firefox HCM Fix
128
- @media screen and (-ms-high-contrast : active ),
129
- screen and (prefers-contrast ) {
130
- // `ButtonText` is a CSS2 system color to help improve colors in HCM
131
- fill : ButtonText ;
132
- }
133
126
}
134
127
}
135
128
357
350
flex : 8 ;
358
351
flex-direction : column ;
359
352
}
353
+
354
+ // Windows HCM Fix
355
+ .#{$prefix } --text-input--password__visibility ,
356
+ // TODO: remove selector above
357
+ .#{$prefix } --btn.#{$prefix } --btn--icon-only.#{$prefix } --text-input--password__visibility__toggle.#{$prefix } --tooltip__trigger svg ,
358
+ .#{$prefix } --btn.#{$prefix } --btn--icon-only.#{$prefix } --text-input--password__visibility__toggle.#{$prefix } --tooltip__trigger :hover
359
+ svg {
360
+ @include high-contrast-mode (' icon-fill' );
361
+ }
360
362
}
361
363
362
364
@include exports (' text-input' ) {
Original file line number Diff line number Diff line change 283
283
.#{$prefix } --tile--disabled .#{$prefix } --tile__checkmark svg {
284
284
fill : $icon-disabled ;
285
285
}
286
+
287
+ // Windows HCM Fix
288
+ .#{$prefix } --tile__chevron svg ,
289
+ .#{$prefix } --tile__checkmark svg ,
290
+ .#{$prefix } --tile--is-selected .#{$prefix } --tile__checkmark svg {
291
+ @include high-contrast-mode (' icon-fill' );
292
+ }
286
293
}
287
294
288
295
@include exports (' tile' ) {
Original file line number Diff line number Diff line change 296
296
transition : box-shadow $duration--fast-01 motion (exit , productive ),
297
297
background-color $duration--fast-01 motion (exit , productive );
298
298
will-change : box-shadow ;
299
-
300
- @include high-contrast-mode (' outline' );
301
299
}
302
300
303
301
// Toggle circle
313
311
border-radius : 50% ;
314
312
content : ' ' ;
315
313
transition : transform $duration--fast-01 motion (exit , productive );
316
-
317
- @include high-contrast-mode (' outline' );
318
314
}
319
315
320
316
.#{$prefix } --toggle-input__label & {
463
459
margin-bottom : $carbon--spacing-03 ;
464
460
}
465
461
}
462
+
463
+ // Windows HCM fixes
464
+ .#{$prefix } --toggle__switch ::after ,
465
+ .#{$prefix } --toggle__switch ::before {
466
+ @include high-contrast-mode (' outline' );
467
+ }
468
+
469
+ // stylelint-disable-next-line no-duplicate-selectors
470
+ .#{$prefix } --toggle-input :focus
471
+ + .#{$prefix } --toggle-input__label
472
+ > .#{$prefix } --toggle__switch ::before ,
473
+ .#{$prefix } --toggle-input :active
474
+ + .#{$prefix } --toggle-input__label
475
+ > .#{$prefix } --toggle__switch ::before {
476
+ @include high-contrast-mode (' focus' );
477
+ }
466
478
}
467
479
468
480
@include exports (' toggle' ) {
Original file line number Diff line number Diff line change 690
690
pointer-events : all ;
691
691
}
692
692
693
+ // Windows HCM Fixes
693
694
/* stylelint-disable */
694
- .#{$prefix } --tooltip__trigger {
695
- svg {
696
- @include high-contrast-mode (' icon-fill' );
697
- }
698
- & :hover ,
699
- & :focus {
700
- svg {
701
- @include high-contrast-mode (' icon-fill' );
702
- @include high-contrast-mode (' focus' );
703
- }
704
- }
695
+ .#{$prefix } --tooltip__trigger svg ,
696
+ .#{$prefix } --tooltip__trigger :hover svg ,
697
+ .#{$prefix } --tooltip__trigger :focus svg {
698
+ @include high-contrast-mode (' icon-fill' );
699
+ }
700
+
701
+ .#{$prefix } --tooltip__trigger :focus svg {
702
+ @include high-contrast-mode (' focus' );
705
703
}
706
704
707
705
.#{$prefix } --tooltip {
Original file line number Diff line number Diff line change 66
66
.#{$prefix } --header__action :focus {
67
67
border-color : $shell-header-focus ;
68
68
outline : none ;
69
-
70
- // Firefox HCM Fix
71
- @media screen and (prefers-contrast ) {
72
- border-style : dotted ;
73
- }
74
69
}
75
70
76
71
.#{$prefix } --header__action :active {
127
122
128
123
a .#{$prefix } --header__name :focus {
129
124
border-color : $shell-header-focus ;
130
-
131
- // Windows, Firefox HCM Fix
132
- @media screen and (-ms-high-contrast : active ),
133
- screen and (prefers-contrast ) {
134
- // `ButtonText` is a CSS2 system color to help improve colors in HCM
135
- border-style : dotted ;
136
- }
137
125
}
138
126
139
127
.#{$prefix } --header__name--prefix {
221
209
border-color : $shell-header-focus ;
222
210
color : $shell-header-text-01 ;
223
211
outline : none ;
224
-
225
- // Windows, Firefox HCM Fix
226
- @media screen and (-ms-high-contrast : active ),
227
- screen and (prefers-contrast ) {
228
- border-style : dotted ;
229
- }
230
212
}
231
213
232
214
a .#{$prefix } --header__menu-item :hover > svg ,
You can’t perform that action at this time.
0 commit comments