@carbon/styles 1.9.0-rc.0 → 1.11.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.
@@ -53,6 +53,7 @@ describe('@carbon/styles/scss/type', () => {
53
53
  Array [
54
54
  "label-01",
55
55
  "helper-text-01",
56
+ "helper-text-02",
56
57
  "body-short-01",
57
58
  "body-short-02",
58
59
  "body-long-01",
package/scss/_zone.scss CHANGED
@@ -36,6 +36,9 @@ $-components: (
36
36
 
37
37
  @each $name, $theme in $zones {
38
38
  .#{config.$prefix}--#{'' + $name} {
39
+ background: var(--cds-background);
40
+ color: var(--cds-text-primary);
41
+
39
42
  @each $key, $value in $theme {
40
43
  @if type-of($value) == color {
41
44
  @include custom-property.declaration($key, $value);
@@ -121,8 +121,7 @@
121
121
  // Update properties for checked checkbox
122
122
  .#{$prefix}--checkbox:checked + .#{$prefix}--checkbox-label::before,
123
123
  .#{$prefix}--checkbox:indeterminate + .#{$prefix}--checkbox-label::before,
124
- .#{$prefix}--checkbox-label[data-contained-checkbox-state='true']::before,
125
- .#{$prefix}--checkbox-label[data-contained-checkbox-state='mixed']::before {
124
+ .#{$prefix}--checkbox-label[data-contained-checkbox-state='true']::before {
126
125
  border: none;
127
126
  border-width: 1px;
128
127
  background-color: $icon-primary;
@@ -135,8 +134,7 @@
135
134
  }
136
135
 
137
136
  // Indeterminate symbol
138
- .#{$prefix}--checkbox:indeterminate + .#{$prefix}--checkbox-label::after,
139
- .#{$prefix}--checkbox-label[data-contained-checkbox-state='mixed']::after {
137
+ .#{$prefix}--checkbox:indeterminate + .#{$prefix}--checkbox-label::after {
140
138
  top: rem(11px);
141
139
  width: rem(8px);
142
140
  border-bottom: 2px solid $icon-inverse;
@@ -155,8 +153,7 @@
155
153
  .#{$prefix}--checkbox:checked:focus + .#{$prefix}--checkbox-label::before,
156
154
  .#{$prefix}--checkbox-label[data-contained-checkbox-state='true'].#{$prefix}--checkbox-label__focus::before,
157
155
  // Indeterminate
158
- .#{$prefix}--checkbox:indeterminate:focus + .#{$prefix}--checkbox-label::before,
159
- .#{$prefix}--checkbox-label[data-contained-checkbox-state='mixed'].#{$prefix}--checkbox-label__focus::before {
156
+ .#{$prefix}--checkbox:indeterminate:focus + .#{$prefix}--checkbox-label::before {
160
157
  outline: 2px solid $focus;
161
158
  outline-offset: 1px;
162
159
  }
@@ -179,8 +176,7 @@
179
176
  .#{$prefix}--checkbox:checked:disabled + .#{$prefix}--checkbox-label::before,
180
177
  .#{$prefix}--checkbox:indeterminate:disabled
181
178
  + .#{$prefix}--checkbox-label::before,
182
- .#{$prefix}--checkbox-label[data-contained-checkbox-state='true'][data-contained-checkbox-disabled='true']::before,
183
- .#{$prefix}--checkbox-label[data-contained-checkbox-state='mixed'][data-contained-checkbox-disabled='true']::before {
179
+ .#{$prefix}--checkbox-label[data-contained-checkbox-state='true'][data-contained-checkbox-disabled='true']::before {
184
180
  background-color: $icon-disabled;
185
181
  }
186
182
 
@@ -8,6 +8,7 @@
8
8
  @use 'mixins' as *;
9
9
  @use 'vars' as *;
10
10
  @use '../../config' as *;
11
+ @use '../../breakpoint' as *;
11
12
  @use '../../motion' as *;
12
13
  @use '../../spacing' as *;
13
14
  @use '../../theme' as *;
@@ -52,6 +53,14 @@
52
53
  @include type-style('body-compact-01');
53
54
 
54
55
  color: $text-secondary;
56
+
57
+ @include breakpoint(md) {
58
+ max-width: 50ch;
59
+ }
60
+
61
+ @include breakpoint(lg) {
62
+ max-width: 80ch;
63
+ }
55
64
  }
56
65
 
57
66
  //----------------------------------------------------------------------------
@@ -12,6 +12,7 @@
12
12
  @use '../../utilities/convert' as *;
13
13
  @use '../../utilities/focus-outline' as *;
14
14
  @use '../../utilities/skeleton' as *;
15
+ @use '../..//utilities/button-reset';
15
16
 
16
17
  /// @type Number
17
18
  /// @access public
@@ -51,12 +52,44 @@ $input-label-weight: 400 !default;
51
52
  margin-bottom: 0;
52
53
  }
53
54
 
54
- .#{$prefix}--label .#{$prefix}--tooltip__trigger {
55
- // When tooltip trigger is put in form label the trigger button should fit in the size of label
56
- // https://github.com/IBM/carbon-components-react/issues/115
55
+ .#{$prefix}--label + .#{$prefix}--tooltip {
56
+ position: relative;
57
+ top: 0.2rem;
58
+ left: 0.5rem;
59
+ }
60
+
61
+ .#{$prefix}--label + .#{$prefix}--tooltip .#{$prefix}--tooltip__trigger {
62
+ @include button-reset.reset();
63
+
64
+ display: flex;
65
+ align-items: center;
66
+ justify-content: center;
57
67
  @include type-style('label-01');
58
68
  }
59
69
 
70
+ .#{$prefix}--label
71
+ + .#{$prefix}--tooltip
72
+ .#{$prefix}--tooltip__trigger:focus {
73
+ outline: 1px solid $focus;
74
+ }
75
+
76
+ .#{$prefix}--label + .#{$prefix}--tooltip .#{$prefix}--tooltip__trigger svg {
77
+ fill: $icon-secondary;
78
+ }
79
+
80
+ .#{$prefix}--label
81
+ + .#{$prefix}--tooltip
82
+ .#{$prefix}--tooltip__trigger
83
+ svg
84
+ :hover {
85
+ fill: $icon-primary;
86
+ }
87
+
88
+ .#{$prefix}--label + .#{$prefix}--toggletip {
89
+ top: 0.2rem;
90
+ left: 0.5rem;
91
+ }
92
+
60
93
  // Skeleton State
61
94
  .#{$prefix}--label.#{$prefix}--skeleton {
62
95
  @include skeleton;
@@ -84,7 +84,7 @@
84
84
  padding-left: 0;
85
85
  }
86
86
 
87
- .#{$prefix}--multi-select--filterable.#{$prefix}--list-box--disabled:hover
87
+ .#{$prefix}--multi-select--filterable.#{$prefix}--list-box--disabled:hover:not(.#{$prefix}--multi-select--filterable)
88
88
  .#{$prefix}--text-input {
89
89
  background-color: $field;
90
90
  }
@@ -21,6 +21,7 @@
21
21
  $caption-01,
22
22
  $label-01,
23
23
  $helper-text-01,
24
+ $helper-text-02,
24
25
  $body-short-01,
25
26
  $body-short-02,
26
27
  $body-long-01,
@@ -20,6 +20,7 @@
20
20
  appearance: none;
21
21
  background: none;
22
22
  cursor: pointer;
23
+ text-align: start;
23
24
 
24
25
  @if ($width == true) {
25
26
  width: 100%;