@carbon/styles 1.12.0 → 1.13.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 +17 -9
- package/css/styles.min.css +1 -1
- package/package.json +10 -10
- package/scss/__tests__/__snapshots__/type-test.js.snap +1458 -1375
- package/scss/__tests__/type-test.js +1 -0
- package/scss/components/form/_form.scss +2 -1
- package/scss/components/notification/_tokens.scss +8 -8
- package/scss/components/popover/_popover.scss +2 -2
- package/scss/components/toggle/_toggle.scss +2 -2
- package/scss/type/_index.scss +1 -0
|
@@ -111,7 +111,8 @@ $input-label-weight: 400 !default;
|
|
|
111
111
|
.#{$prefix}--select-input__wrapper[data-invalid]
|
|
112
112
|
.#{$prefix}--select-input:not(:focus),
|
|
113
113
|
.#{$prefix}--list-box[data-invalid]:not(:focus),
|
|
114
|
-
.#{$prefix}--combo-box[data-invalid]
|
|
114
|
+
.#{$prefix}--combo-box[data-invalid]:not(.#{$prefix}--multi-select--selected)
|
|
115
|
+
.#{$prefix}--text-input:not(:focus) {
|
|
115
116
|
@include focus-outline('invalid');
|
|
116
117
|
}
|
|
117
118
|
|
|
@@ -28,11 +28,11 @@ $notification-background-error: (
|
|
|
28
28
|
),
|
|
29
29
|
(
|
|
30
30
|
theme: themes.$g90,
|
|
31
|
-
value:
|
|
31
|
+
value: colors.$gray-80,
|
|
32
32
|
),
|
|
33
33
|
(
|
|
34
34
|
theme: themes.$g100,
|
|
35
|
-
value:
|
|
35
|
+
value: colors.$gray-90,
|
|
36
36
|
),
|
|
37
37
|
),
|
|
38
38
|
) !default;
|
|
@@ -50,11 +50,11 @@ $notification-background-success: (
|
|
|
50
50
|
),
|
|
51
51
|
(
|
|
52
52
|
theme: themes.$g90,
|
|
53
|
-
value:
|
|
53
|
+
value: colors.$gray-80,
|
|
54
54
|
),
|
|
55
55
|
(
|
|
56
56
|
theme: themes.$g100,
|
|
57
|
-
value:
|
|
57
|
+
value: colors.$gray-90,
|
|
58
58
|
),
|
|
59
59
|
),
|
|
60
60
|
) !default;
|
|
@@ -72,11 +72,11 @@ $notification-background-info: (
|
|
|
72
72
|
),
|
|
73
73
|
(
|
|
74
74
|
theme: themes.$g90,
|
|
75
|
-
value:
|
|
75
|
+
value: colors.$gray-80,
|
|
76
76
|
),
|
|
77
77
|
(
|
|
78
78
|
theme: themes.$g100,
|
|
79
|
-
value:
|
|
79
|
+
value: colors.$gray-90,
|
|
80
80
|
),
|
|
81
81
|
),
|
|
82
82
|
) !default;
|
|
@@ -94,11 +94,11 @@ $notification-background-warning: (
|
|
|
94
94
|
),
|
|
95
95
|
(
|
|
96
96
|
theme: themes.$g90,
|
|
97
|
-
value:
|
|
97
|
+
value: colors.$gray-80,
|
|
98
98
|
),
|
|
99
99
|
(
|
|
100
100
|
theme: themes.$g100,
|
|
101
|
-
value:
|
|
101
|
+
value: colors.$gray-90,
|
|
102
102
|
),
|
|
103
103
|
),
|
|
104
104
|
) !default;
|
|
@@ -332,7 +332,7 @@ $popover-caret-height: custom-property.get-var(
|
|
|
332
332
|
// moved farther than the caret
|
|
333
333
|
transform: translate(
|
|
334
334
|
calc(-1 * $popover-offset),
|
|
335
|
-
calc(-1 * 0.5 * $popover-offset
|
|
335
|
+
calc(-1 * 0.5 * $popover-offset)
|
|
336
336
|
);
|
|
337
337
|
}
|
|
338
338
|
|
|
@@ -343,7 +343,7 @@ $popover-caret-height: custom-property.get-var(
|
|
|
343
343
|
// moved farther than the caret
|
|
344
344
|
transform: translate(
|
|
345
345
|
calc(-1 * $popover-offset),
|
|
346
|
-
calc(0.5 * $popover-offset
|
|
346
|
+
calc(0.5 * $popover-offset)
|
|
347
347
|
);
|
|
348
348
|
}
|
|
349
349
|
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
.#{$prefix}--toggle__button:focus
|
|
77
77
|
+ .#{$prefix}--toggle__label
|
|
78
78
|
.#{$prefix}--toggle__switch,
|
|
79
|
-
.#{$prefix}--toggle__button:active
|
|
79
|
+
.#{$prefix}--toggle__button:not(:disabled):active
|
|
80
80
|
+ .#{$prefix}--toggle__label
|
|
81
81
|
.#{$prefix}--toggle__switch {
|
|
82
82
|
box-shadow: 0 0 0 1px $focus-inset, 0 0 0 3px $focus;
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
.#{$prefix}--toggle__button:focus
|
|
158
158
|
+ .#{$prefix}--toggle__label
|
|
159
159
|
.#{$prefix}--toggle__switch,
|
|
160
|
-
.#{$prefix}--toggle__button:active
|
|
160
|
+
.#{$prefix}--toggle__button:not(:disabled):active
|
|
161
161
|
+ .#{$prefix}--toggle__label
|
|
162
162
|
.#{$prefix}--toggle__switch {
|
|
163
163
|
@include high-contrast-mode('focus');
|