@carbon/styles 1.82.0 → 1.83.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/styles.css +384 -283
- package/css/styles.min.css +1 -1
- package/package.json +9 -9
- package/scss/_reset.scss +2 -1
- package/scss/_theme.scss +49 -0
- package/scss/components/accordion/_accordion.scss +0 -7
- package/scss/components/breadcrumb/_breadcrumb.scss +1 -1
- package/scss/components/button/_button.scss +0 -9
- package/scss/components/checkbox/_checkbox.scss +17 -0
- package/scss/components/code-snippet/_code-snippet.scss +0 -5
- package/scss/components/data-table/_data-table.scss +2 -1
- package/scss/components/data-table/expandable/_data-table-expandable.scss +0 -4
- package/scss/components/data-table/sort/_data-table-sort.scss +0 -7
- package/scss/components/date-picker/_date-picker.scss +0 -7
- package/scss/components/date-picker/_flatpickr.scss +0 -2
- package/scss/components/dialog/_dialog.scss +160 -13
- package/scss/components/dropdown/_dropdown.scss +0 -4
- package/scss/components/file-uploader/_file-uploader.scss +1 -5
- package/scss/components/fluid-number-input/_fluid-number-input.scss +103 -5
- package/scss/components/form/_form.scss +3 -1
- package/scss/components/list-box/_list-box.scss +0 -6
- package/scss/components/modal/_modal.scss +0 -5
- package/scss/components/notification/_actionable-notification.scss +0 -7
- package/scss/components/notification/_inline-notification.scss +0 -8
- package/scss/components/notification/_toast-notification.scss +0 -6
- package/scss/components/number-input/_number-input.scss +87 -18
- package/scss/components/overflow-menu/_overflow-menu.scss +0 -4
- package/scss/components/page-header/_page-header.scss +73 -17
- package/scss/components/pagination-nav/_pagination-nav.scss +0 -1
- package/scss/components/popover/_popover.scss +0 -1
- package/scss/components/radio-button/_radio-button.scss +1 -1
- package/scss/components/search/_search.scss +0 -7
- package/scss/components/select/_select.scss +0 -7
- package/scss/components/structured-list/_structured-list.scss +0 -8
- package/scss/components/tabs/_tabs.scss +6 -4
- package/scss/components/tag/_tag.scss +0 -5
- package/scss/components/text-input/_text-input.scss +0 -18
- package/scss/components/tile/_tile.scss +0 -22
- package/scss/components/ui-shell/side-nav/_side-nav.scss +0 -13
- package/scss/utilities/_high-contrast-mode.scss +0 -4
- package/scss/utilities/_layout.scss +2 -1
- package/scss/utilities/_update_fields_on_layer.scss +1 -0
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
@use '../../utilities/button-reset';
|
|
13
13
|
@use '../../utilities/component-reset';
|
|
14
14
|
@use '../../utilities/custom-property';
|
|
15
|
-
@use '../../utilities/high-contrast-mode' as *;
|
|
16
15
|
@use '../../utilities/focus-outline' as *;
|
|
17
16
|
@use '../../utilities/' as *;
|
|
18
17
|
@use '../../utilities/convert';
|
|
@@ -120,7 +120,7 @@ $radio-border-width: 1px !default;
|
|
|
120
120
|
transform: scale(0.5);
|
|
121
121
|
|
|
122
122
|
// Allow the selected button to be seen in Windows HCM for IE/Edge
|
|
123
|
-
@include high-contrast-mode
|
|
123
|
+
@include high-contrast-mode {
|
|
124
124
|
background-color: ButtonText;
|
|
125
125
|
}
|
|
126
126
|
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
@use '../../utilities/visually-hidden' as *;
|
|
21
21
|
@use '../../utilities/component-reset' as *;
|
|
22
22
|
@use '../../utilities/skeleton' as *;
|
|
23
|
-
@use '../../utilities/high-contrast-mode' as *;
|
|
24
23
|
@use '../../utilities/convert';
|
|
25
24
|
@use '../../utilities/button-reset';
|
|
26
25
|
|
|
@@ -381,10 +380,4 @@
|
|
|
381
380
|
.#{$prefix}--search--expandable.#{$prefix}--search--disabled svg {
|
|
382
381
|
fill: $icon-disabled;
|
|
383
382
|
}
|
|
384
|
-
|
|
385
|
-
// Windows HCM fix
|
|
386
|
-
.#{$prefix}--search-close svg,
|
|
387
|
-
.#{$prefix}--search-magnifier-icon {
|
|
388
|
-
@include high-contrast-mode('icon-fill');
|
|
389
|
-
}
|
|
390
383
|
}
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
@use '../../utilities/component-reset';
|
|
18
18
|
@use '../../utilities/convert';
|
|
19
19
|
@use '../../utilities/focus-outline' as *;
|
|
20
|
-
@use '../../utilities/high-contrast-mode' as *;
|
|
21
20
|
@use '../../utilities/skeleton' as *;
|
|
22
21
|
|
|
23
22
|
/// Select styles
|
|
@@ -419,10 +418,4 @@
|
|
|
419
418
|
~ .#{$prefix}--select__invalid-icon {
|
|
420
419
|
inset-inline-end: $spacing-11;
|
|
421
420
|
}
|
|
422
|
-
|
|
423
|
-
// Windows HCM fix
|
|
424
|
-
|
|
425
|
-
.#{$prefix}--select__arrow {
|
|
426
|
-
@include high-contrast-mode('icon-fill');
|
|
427
|
-
}
|
|
428
421
|
}
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
@use '../../spacing' as *;
|
|
16
16
|
@use '../../utilities/focus-outline' as *;
|
|
17
17
|
@use '../../utilities/skeleton' as *;
|
|
18
|
-
@use '../../utilities/high-contrast-mode' as *;
|
|
19
18
|
@use '../../utilities/convert';
|
|
20
19
|
@use '../../utilities/component-reset';
|
|
21
20
|
|
|
@@ -260,13 +259,6 @@
|
|
|
260
259
|
}
|
|
261
260
|
}
|
|
262
261
|
|
|
263
|
-
// Windows HCM fix
|
|
264
|
-
.#{$prefix}--structured-list-input:checked
|
|
265
|
-
+ .#{$prefix}--structured-list-td
|
|
266
|
-
.#{$prefix}--structured-list-svg {
|
|
267
|
-
@include high-contrast-mode('icon-fill');
|
|
268
|
-
}
|
|
269
|
-
|
|
270
262
|
.#{$prefix}--structured-list__icon {
|
|
271
263
|
margin-block-start: $spacing-01;
|
|
272
264
|
vertical-align: top;
|
|
@@ -410,7 +410,7 @@
|
|
|
410
410
|
}
|
|
411
411
|
|
|
412
412
|
svg:hover {
|
|
413
|
-
fill: $
|
|
413
|
+
fill: $icon-primary;
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
&:hover {
|
|
@@ -427,12 +427,12 @@
|
|
|
427
427
|
+ .#{$prefix}--tabs__nav-item--close
|
|
428
428
|
.#{$prefix}--tabs__nav-item--close-icon
|
|
429
429
|
svg {
|
|
430
|
-
fill: $
|
|
430
|
+
fill: $icon-primary;
|
|
431
431
|
}
|
|
432
432
|
|
|
433
433
|
.#{$prefix}--tabs__nav-item--close-icon--selected {
|
|
434
434
|
svg {
|
|
435
|
-
fill: $
|
|
435
|
+
fill: $icon-primary;
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
438
|
|
|
@@ -445,7 +445,9 @@
|
|
|
445
445
|
cursor: not-allowed;
|
|
446
446
|
|
|
447
447
|
svg {
|
|
448
|
-
|
|
448
|
+
// Note: $icon-disabled maps to the same color as $tab-text-disabled, but in high contrast mode, $icon-disabled
|
|
449
|
+
// maps to the system-defined "GrayText" color, which is better for high contrast mode support.
|
|
450
|
+
fill: $icon-disabled;
|
|
449
451
|
}
|
|
450
452
|
|
|
451
453
|
&:focus,
|
|
@@ -432,11 +432,6 @@
|
|
|
432
432
|
@include high-contrast-mode('outline');
|
|
433
433
|
}
|
|
434
434
|
|
|
435
|
-
.#{$prefix}--tag__close-icon svg,
|
|
436
|
-
.#{$prefix}--tag__custom-icon svg {
|
|
437
|
-
@include high-contrast-mode('icon-fill');
|
|
438
|
-
}
|
|
439
|
-
|
|
440
435
|
.#{$prefix}--tag__close-icon:focus {
|
|
441
436
|
@include high-contrast-mode('focus');
|
|
442
437
|
}
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
@use '../../utilities/placeholder-colors' as *;
|
|
21
21
|
@use '../../utilities/tooltip' as *;
|
|
22
22
|
@use '../../utilities/skeleton' as *;
|
|
23
|
-
@use '../../utilities/high-contrast-mode' as *;
|
|
24
23
|
@use '../../utilities/convert';
|
|
25
24
|
@use '../../utilities/layout';
|
|
26
25
|
@use '../../utilities/focus-outline' as *;
|
|
@@ -155,13 +154,6 @@
|
|
|
155
154
|
svg {
|
|
156
155
|
fill: $icon-secondary;
|
|
157
156
|
transition: fill $duration-fast-01 motion(standard, productive);
|
|
158
|
-
|
|
159
|
-
// Windows, Firefox HCM Fix
|
|
160
|
-
@media screen and (-ms-high-contrast: active),
|
|
161
|
-
screen and (prefers-contrast) {
|
|
162
|
-
// `ButtonText` is a CSS2 system color to help improve colors in HCM
|
|
163
|
-
fill: ButtonText;
|
|
164
|
-
}
|
|
165
157
|
}
|
|
166
158
|
|
|
167
159
|
.#{$prefix}--btn.#{$prefix}--text-input--password__visibility__toggle.#{$prefix}--tooltip__trigger:focus {
|
|
@@ -173,8 +165,6 @@
|
|
|
173
165
|
.#{$prefix}--btn.#{$prefix}--text-input--password__visibility__toggle.#{$prefix}--tooltip__trigger:focus
|
|
174
166
|
svg {
|
|
175
167
|
fill: $icon-primary;
|
|
176
|
-
|
|
177
|
-
@include high-contrast-mode('icon-fill');
|
|
178
168
|
}
|
|
179
169
|
|
|
180
170
|
.#{$prefix}--text-input--invalid,
|
|
@@ -525,14 +515,6 @@
|
|
|
525
515
|
block-size: 1rem;
|
|
526
516
|
}
|
|
527
517
|
|
|
528
|
-
// Windows HCM fix
|
|
529
|
-
.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--text-input--password__visibility__toggle.#{$prefix}--tooltip__trigger
|
|
530
|
-
svg,
|
|
531
|
-
.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--text-input--password__visibility__toggle.#{$prefix}--tooltip__trigger:hover
|
|
532
|
-
svg {
|
|
533
|
-
@include high-contrast-mode('icon-fill');
|
|
534
|
-
}
|
|
535
|
-
|
|
536
518
|
.#{$prefix}--text-input__label-wrapper {
|
|
537
519
|
display: flex;
|
|
538
520
|
justify-content: space-between;
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
@use '../../utilities/convert';
|
|
19
19
|
@use '../../utilities/component-reset';
|
|
20
20
|
@use '../../utilities/focus-outline' as *;
|
|
21
|
-
@use '../../utilities/high-contrast-mode' as *;
|
|
22
21
|
@use '../../utilities/visually-hidden' as *;
|
|
23
22
|
@use '../../utilities/layout';
|
|
24
23
|
|
|
@@ -214,13 +213,6 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
214
213
|
@media screen and (prefers-reduced-motion: reduce) {
|
|
215
214
|
transition: none;
|
|
216
215
|
}
|
|
217
|
-
|
|
218
|
-
// Windows, Firefox HCM Fix
|
|
219
|
-
@media screen and (-ms-high-contrast: active),
|
|
220
|
-
screen and (prefers-contrast) {
|
|
221
|
-
// `ButtonText` is a CSS2 system color to help improve colors in HCM
|
|
222
|
-
fill: ButtonText;
|
|
223
|
-
}
|
|
224
216
|
}
|
|
225
217
|
}
|
|
226
218
|
|
|
@@ -342,13 +334,6 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
342
334
|
|
|
343
335
|
.#{$prefix}--tile--is-selected .#{$prefix}--tile__checkmark svg {
|
|
344
336
|
fill: $icon-primary;
|
|
345
|
-
|
|
346
|
-
// Windows, Firefox HCM Fix
|
|
347
|
-
@media screen and (-ms-high-contrast: active),
|
|
348
|
-
screen and (prefers-contrast) {
|
|
349
|
-
// `ButtonText` is a CSS2 system color to help improve colors in HCM
|
|
350
|
-
fill: ButtonText;
|
|
351
|
-
}
|
|
352
337
|
}
|
|
353
338
|
|
|
354
339
|
.#{$prefix}--tile-content {
|
|
@@ -632,11 +617,4 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
632
617
|
.#{$prefix}--tile--slug-rounded .#{$prefix}--tile__chevron {
|
|
633
618
|
border-end-end-radius: $spacing-03;
|
|
634
619
|
}
|
|
635
|
-
|
|
636
|
-
// Windows HCM fix
|
|
637
|
-
.#{$prefix}--tile__chevron svg,
|
|
638
|
-
.#{$prefix}--tile__checkmark svg,
|
|
639
|
-
.#{$prefix}--tile--is-selected .#{$prefix}--tile__checkmark svg {
|
|
640
|
-
@include high-contrast-mode('icon-fill');
|
|
641
|
-
}
|
|
642
620
|
}
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
@use '../../../utilities/component-reset';
|
|
19
19
|
@use '../../../utilities/convert';
|
|
20
20
|
@use '../../../utilities/focus-outline' as *;
|
|
21
|
-
@use '../../../utilities/high-contrast-mode' as *;
|
|
22
21
|
@use '../../../utilities/z-index' as *;
|
|
23
22
|
|
|
24
23
|
/// UI shell side nav
|
|
@@ -542,16 +541,4 @@
|
|
|
542
541
|
.#{$prefix}--side-nav .#{$prefix}--header__menu-arrow {
|
|
543
542
|
fill: $icon-secondary;
|
|
544
543
|
}
|
|
545
|
-
|
|
546
|
-
// Windows HCM fix
|
|
547
|
-
.#{$prefix}--side-nav__icon > svg,
|
|
548
|
-
.#{$prefix}--side-nav
|
|
549
|
-
a.#{$prefix}--header__menu-item:hover
|
|
550
|
-
.#{$prefix}--header__menu-arrow,
|
|
551
|
-
.#{$prefix}--side-nav
|
|
552
|
-
a.#{$prefix}--header__menu-item:focus
|
|
553
|
-
.#{$prefix}--header__menu-arrow,
|
|
554
|
-
.#{$prefix}--side-nav .#{$prefix}--header__menu-arrow {
|
|
555
|
-
@include high-contrast-mode('icon-fill');
|
|
556
|
-
}
|
|
557
544
|
}
|
|
@@ -12,10 +12,6 @@
|
|
|
12
12
|
/// Set HCM styles at the end of each file to ensure they are not overwritten
|
|
13
13
|
@mixin high-contrast-mode($type: '') {
|
|
14
14
|
@media screen and (-ms-high-contrast: active), (forced-colors: active) {
|
|
15
|
-
@if ($type == 'icon-fill') {
|
|
16
|
-
fill: ButtonText;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
15
|
@if ($type == 'focus') {
|
|
20
16
|
color: Highlight;
|
|
21
17
|
outline: 1px solid Highlight;
|
|
@@ -71,7 +71,8 @@
|
|
|
71
71
|
$value
|
|
72
72
|
);
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
&.#{config.$prefix}--layout--#{$group}-#{$step},
|
|
75
|
+
.#{config.$prefix}--layout--#{$group}-#{$step} :where(&) {
|
|
75
76
|
$token: custom-property.get-var(
|
|
76
77
|
'layout-#{$group}-#{$property}-#{$step}'
|
|
77
78
|
);
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
.#{$prefix}--list-box__wrapper--fluid .#{$prefix}--list-box,
|
|
26
26
|
.#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper,
|
|
27
27
|
.#{$prefix}--number-input--fluid input[type='number'],
|
|
28
|
+
.#{$prefix}--number-input--fluid input[type='text'],
|
|
28
29
|
.#{$prefix}--number-input--fluid .#{$prefix}--number__control-btn::before,
|
|
29
30
|
.#{$prefix}--number-input--fluid .#{$prefix}--number__control-btn::after,
|
|
30
31
|
.#{$prefix}--date-picker--fluid
|