@carbon/styles 1.12.0 → 1.13.0-rc.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.
@@ -52,6 +52,7 @@ describe('@carbon/styles/scss/type', () => {
52
52
  expect(api.variables).toMatchInlineSnapshot(`
53
53
  Array [
54
54
  "label-01",
55
+ "label-02",
55
56
  "helper-text-01",
56
57
  "helper-text-02",
57
58
  "body-short-01",
@@ -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] .#{$prefix}--text-input:not(:focus) {
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: theme.$layer,
31
+ value: colors.$gray-80,
32
32
  ),
33
33
  (
34
34
  theme: themes.$g100,
35
- value: theme.$layer,
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: theme.$layer,
53
+ value: colors.$gray-80,
54
54
  ),
55
55
  (
56
56
  theme: themes.$g100,
57
- value: theme.$layer,
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: theme.$layer,
75
+ value: colors.$gray-80,
76
76
  ),
77
77
  (
78
78
  theme: themes.$g100,
79
- value: theme.$layer,
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: theme.$layer,
97
+ value: colors.$gray-80,
98
98
  ),
99
99
  (
100
100
  theme: themes.$g100,
101
- value: theme.$layer,
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 + 16px)
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 - 16px)
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');
@@ -20,6 +20,7 @@
20
20
  // Variables
21
21
  $caption-01,
22
22
  $label-01,
23
+ $label-02,
23
24
  $helper-text-01,
24
25
  $helper-text-02,
25
26
  $body-short-01,