@carbon/styles 1.83.0 → 1.84.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/styles",
3
3
  "description": "Styles for the Carbon Design System",
4
- "version": "1.83.0",
4
+ "version": "1.84.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -40,13 +40,13 @@
40
40
  }
41
41
  },
42
42
  "dependencies": {
43
- "@carbon/colors": "^11.34.0",
43
+ "@carbon/colors": "^11.35.0",
44
44
  "@carbon/feature-flags": "^0.27.0",
45
- "@carbon/grid": "^11.37.0",
46
- "@carbon/layout": "^11.35.0",
47
- "@carbon/motion": "^11.29.0",
48
- "@carbon/themes": "^11.54.0",
49
- "@carbon/type": "^11.41.0",
45
+ "@carbon/grid": "^11.38.0",
46
+ "@carbon/layout": "^11.36.0",
47
+ "@carbon/motion": "^11.30.0",
48
+ "@carbon/themes": "^11.55.0",
49
+ "@carbon/type": "^11.42.0",
50
50
  "@ibm/plex": "6.0.0-next.6",
51
51
  "@ibm/plex-mono": "0.0.3-alpha.0",
52
52
  "@ibm/plex-sans": "0.0.3-alpha.0",
@@ -75,5 +75,5 @@
75
75
  "scss/**/*.css",
76
76
  "css/**/*.css"
77
77
  ],
78
- "gitHead": "f6debacbfe06fa5c31f70809e15762dc30096d70"
78
+ "gitHead": "faed0dec20f49fc7a98d7509c2c0170dff9992fc"
79
79
  }
package/scss/_config.scss CHANGED
@@ -41,7 +41,7 @@ $css--default-type: true !default;
41
41
  /// @access public
42
42
  /// @type String
43
43
  /// @group config
44
- $font-display: 'swap' !default;
44
+ $font-display: swap !default;
45
45
 
46
46
  /// Specify the base path for loading IBM Plex
47
47
  /// @access public
@@ -837,8 +837,11 @@
837
837
  display: none;
838
838
  }
839
839
 
840
- //hides ff scrollbar
841
- @document url-prefix() {
840
+ /* This is for targeting styles specific to firefox */
841
+ /* To hide the firefox scrollbar */
842
+ /* https://sass-lang.com/documentation/breaking-changes/moz-document/ */
843
+ /* stylelint-disable-next-line at-rule-no-vendor-prefix */
844
+ @-moz-document url-prefix() {
842
845
  thead,
843
846
  tbody {
844
847
  scrollbar-width: none;
@@ -447,4 +447,17 @@
447
447
  ) {
448
448
  @include ai-gradient;
449
449
  }
450
+
451
+ .#{$prefix}--number-input--fluid
452
+ .#{$prefix}--number__input-wrapper--decorator
453
+ .#{$prefix}--number__input-inner-wrapper--decorator
454
+ > *::before,
455
+ .#{$prefix}--number-input--fluid
456
+ .#{$prefix}--number__input-wrapper--slug
457
+ .#{$prefix}--ai-label::before,
458
+ .#{$prefix}--number-input--fluid
459
+ .#{$prefix}--number__input-wrapper--slug
460
+ .#{$prefix}--slug::before {
461
+ display: none;
462
+ }
450
463
  }
@@ -218,6 +218,10 @@
218
218
  }
219
219
 
220
220
  // remove ai-label divider when element is invalid and fluid
221
+ .#{$prefix}--select--fluid
222
+ .#{$prefix}--select--decorator
223
+ .#{$prefix}--select__inner-wrapper--decorator
224
+ > .#{$prefix}--ai-label::before,
221
225
  .#{$prefix}--select--fluid
222
226
  .#{$prefix}--select--slug:has(.#{$prefix}--select__invalid-icon)
223
227
  .#{$prefix}--ai-label::before,
@@ -165,6 +165,20 @@ $input-label-weight: 400 !default;
165
165
  }
166
166
  }
167
167
 
168
+ .#{$prefix}--select--inline.#{$prefix}--select--warning
169
+ .#{$prefix}--select-input--inline__wrapper,
170
+ .#{$prefix}--select-input--inline__wrapper[data-invalid] {
171
+ ~ .#{$prefix}--form-requirement {
172
+ display: inline-flex;
173
+ overflow: visible;
174
+ margin: 0;
175
+ inline-size: 100%;
176
+ margin-block-end: 0;
177
+ max-block-size: 100%;
178
+ padding-inline-start: $spacing-03;
179
+ }
180
+ }
181
+
168
182
  input[data-invalid],
169
183
  .#{$prefix}--number[data-invalid] .#{$prefix}--number__input-wrapper,
170
184
  .#{$prefix}--date-picker-input__wrapper,
@@ -174,7 +188,8 @@ $input-label-weight: 400 !default;
174
188
  .#{$prefix}--text-area__wrapper[data-invalid],
175
189
  .#{$prefix}--select-input__wrapper[data-invalid],
176
190
  .#{$prefix}--time-picker[data-invalid],
177
- .#{$prefix}--list-box[data-invalid] {
191
+ .#{$prefix}--list-box[data-invalid],
192
+ .#{$prefix}--select-input--inline__wrapper[data-invalid] {
178
193
  ~ .#{$prefix}--form-requirement {
179
194
  color: $text-error;
180
195
  }
@@ -518,6 +518,7 @@
518
518
  content: '';
519
519
  inline-size: convert.to-rem(1px);
520
520
  }
521
+
521
522
  .#{$prefix}--number__input-wrapper--decorator
522
523
  .#{$prefix}--number__input-inner-wrapper--decorator
523
524
  > *::before,
@@ -527,6 +528,16 @@
527
528
  inset-inline-start: convert.to-rem(-16px);
528
529
  }
529
530
 
531
+ .#{$prefix}--number__input-wrapper--decorator
532
+ .#{$prefix}--number__input-inner-wrapper--decorator
533
+ .#{$prefix}--ai-label--revert::before,
534
+ .#{$prefix}--number__input-wrapper--slug
535
+ .#{$prefix}--ai-label--revert::before,
536
+ .#{$prefix}--number__input-wrapper--slug .#{$prefix}--slug--revert::before {
537
+ inset-block-start: convert.to-rem(8px);
538
+ inset-inline-start: convert.to-rem(-8px);
539
+ }
540
+
530
541
  .#{$prefix}--number__control-btn::after {
531
542
  display: block;
532
543
  inset-inline-end: 0;
@@ -159,13 +159,6 @@
159
159
  max-inline-size: convert.to-rem(640px);
160
160
  }
161
161
 
162
- .#{$prefix}--page-header__content:not(
163
- :has(.#{$prefix}--page-header__content__sub-title)
164
- )
165
- .#{$prefix}--page-header__content__body {
166
- margin-block-start: $spacing-05;
167
- }
168
-
169
162
  [data-hidden]:not([data-fixed]) {
170
163
  display: none;
171
164
  }
@@ -141,8 +141,10 @@
141
141
  appearance: none;
142
142
  max-block-size: layout.size('height');
143
143
  text-indent: calc(50% - 4.5px);
144
- // Override some Firefox user-agent styles
145
- @document url-prefix() {
144
+ /* This is for targeting styles specific to firefox */
145
+ /* https://sass-lang.com/documentation/breaking-changes/moz-document/ */
146
+ /* stylelint-disable-next-line at-rule-no-vendor-prefix */
147
+ @-moz-document url-prefix() {
146
148
  text-indent: 0;
147
149
  }
148
150
  }
@@ -73,9 +73,12 @@
73
73
  display: none;
74
74
  }
75
75
 
76
- // Select text renders a little high on Firefox
77
- @document url-prefix() {
78
- // Removes dotted inner focus
76
+ //
77
+ /* This is for targeting styles specific to firefox */
78
+ /* Removes dotted inner focus */
79
+ /* https://sass-lang.com/documentation/breaking-changes/moz-document/ */
80
+ /* stylelint-disable-next-line at-rule-no-vendor-prefix */
81
+ @-moz-document url-prefix() {
79
82
  &:-moz-focusring,
80
83
  &::-moz-focus-inner {
81
84
  background-image: none;
@@ -167,6 +170,12 @@
167
170
  fill: $support-error;
168
171
  }
169
172
 
173
+ .#{$prefix}--select-input--inline__wrapper[data-invalid] {
174
+ .#{$prefix}--select__invalid-icon {
175
+ fill: $support-error;
176
+ }
177
+ }
178
+
170
179
  .#{$prefix}--select__invalid-icon--warning {
171
180
  fill: $support-warning;
172
181
  }
@@ -193,14 +202,6 @@
193
202
  align-items: center;
194
203
  }
195
204
 
196
- .#{$prefix}--select--inline.#{$prefix}--select--invalid .#{$prefix}--label,
197
- .#{$prefix}--select--inline.#{$prefix}--select--invalid
198
- .#{$prefix}--form__helper-text {
199
- align-self: flex-start;
200
- // Offset label text margin
201
- margin-block-start: convert.to-rem(13px);
202
- }
203
-
204
205
  .#{$prefix}--select--inline .#{$prefix}--form__helper-text {
205
206
  margin-block-end: 0;
206
207
  margin-inline-start: $spacing-03;
@@ -215,19 +216,27 @@
215
216
  background-color: transparent;
216
217
  border-block-end: none;
217
218
  color: $text-primary;
218
- inline-size: auto;
219
- padding-inline: $spacing-03 $spacing-07;
219
+ inline-size: 100%;
220
+ padding-inline: $spacing-03 $spacing-09;
221
+
222
+ &:hover {
223
+ background-color: $field-hover;
224
+ }
220
225
  }
221
226
 
222
227
  .#{$prefix}--select--inline .#{$prefix}--select-input:focus,
223
228
  .#{$prefix}--select--inline .#{$prefix}--select-input:focus option,
224
229
  .#{$prefix}--select--inline .#{$prefix}--select-input:focus optgroup {
225
230
  background-color: $background;
231
+
232
+ &:hover {
233
+ background-color: $field-hover;
234
+ }
226
235
  }
227
236
 
228
237
  .#{$prefix}--select--inline .#{$prefix}--select-input[disabled],
229
238
  .#{$prefix}--select--inline .#{$prefix}--select-input[disabled]:hover {
230
- background-color: $field;
239
+ background-color: $background;
231
240
  }
232
241
 
233
242
  .#{$prefix}--select--inline .#{$prefix}--select__arrow {
@@ -241,7 +250,10 @@
241
250
 
242
251
  .#{$prefix}--select--inline.#{$prefix}--select--invalid
243
252
  .#{$prefix}--select-input
244
- ~ .#{$prefix}--select__invalid-icon {
253
+ ~ .#{$prefix}--select__invalid-icon,
254
+ .#{$prefix}--select--inline.#{$prefix}--select--warning
255
+ .#{$prefix}--select-input
256
+ ~ .#{$prefix}--select__invalid-icon--warning {
245
257
  inset-inline-end: $spacing-07;
246
258
  }
247
259
 
@@ -265,6 +277,11 @@
265
277
  fill: $icon-disabled;
266
278
  }
267
279
 
280
+ .#{$prefix}--select--readonly.#{$prefix}--select--inline
281
+ .#{$prefix}--select-input:hover {
282
+ background-color: transparent;
283
+ }
284
+
268
285
  // Skeleton State
269
286
  .#{$prefix}--select.#{$prefix}--skeleton {
270
287
  @include skeleton;
@@ -390,7 +407,8 @@
390
407
  .#{$prefix}--select--slug
391
408
  .#{$prefix}--select-input:has(~ .#{$prefix}--slug):not(
392
409
  :has(~ .#{$prefix}--slug--revert)
393
- ) {
410
+ ),
411
+ .#{$prefix}--select-input-has--ai-label {
394
412
  @include ai-gradient;
395
413
  }
396
414
 
@@ -75,8 +75,8 @@ $sizes: (
75
75
  z-index: 2;
76
76
  }
77
77
 
78
- .#{$prefix}--ai-label .#{$prefix}--ai-label__button,
79
- .#{$prefix}--slug .#{$prefix}--slug__button {
78
+ .#{$prefix}--ai-label__button,
79
+ .#{$prefix}--slug__button {
80
80
  position: relative;
81
81
  display: flex;
82
82
  align-items: center;
@@ -502,7 +502,6 @@
502
502
  &.#{$prefix}--tabs--contained:not(.#{$prefix}--tabs--vertical)
503
503
  .#{$prefix}--tabs__nav-link {
504
504
  border-block-end: 0;
505
- padding-inline: layout.density('padding-inline');
506
505
  }
507
506
 
508
507
  &.#{$prefix}--tabs--contained:not(.#{$prefix}--tabs--tall)
@@ -214,6 +214,12 @@
214
214
  inset-inline-end: $spacing-08;
215
215
  }
216
216
 
217
+ .#{$prefix}--text-area--invalid
218
+ ~ .#{$prefix}--text-area__inner-wrapper--decorator
219
+ > .#{$prefix}--ai-label.#{$prefix}--ai-label--revert,
220
+ .#{$prefix}--text-area--warn
221
+ ~ .#{$prefix}--text-area__inner-wrapper--decorator
222
+ > .#{$prefix}--ai-label.#{$prefix}--ai-label--revert,
217
223
  .#{$prefix}--text-area--invalid
218
224
  ~ .#{$prefix}--ai-label.#{$prefix}--ai-label--revert,
219
225
  .#{$prefix}--text-area--warn
@@ -57,7 +57,10 @@
57
57
  .#{$prefix}--tree-node:focus > .#{$prefix}--tree-node__label {
58
58
  @include focus-outline('outline');
59
59
  }
60
-
60
+ .#{$prefix}--tree-node.#{$prefix}--tree-parent-node
61
+ > .#{$prefix}--tree-node__label {
62
+ inline-size: auto;
63
+ }
61
64
  .#{$prefix}--tree-node--disabled:focus > .#{$prefix}--tree-node__label {
62
65
  outline: none;
63
66
  }
@@ -110,10 +113,14 @@
110
113
  .#{$prefix}--tree-node__label {
111
114
  @include type-style('body-compact-01');
112
115
 
116
+ position: relative;
113
117
  display: flex;
118
+ box-sizing: border-box;
114
119
  flex: 1;
115
120
  align-items: center;
121
+ inline-size: 100%;
116
122
  min-block-size: convert.to-rem(32px);
123
+ padding-inline-end: 1rem;
117
124
 
118
125
  &:hover {
119
126
  background-color: $layer-hover-01;
@@ -154,6 +161,7 @@
154
161
  .#{$prefix}--tree-node__label__details {
155
162
  display: flex;
156
163
  align-items: center;
164
+ min-inline-size: 0;
157
165
  }
158
166
 
159
167
  .#{$prefix}--tree-node--with-icon .#{$prefix}--tree-parent-node__toggle {
@@ -247,4 +255,51 @@
247
255
  .#{$prefix}--tree--xs .#{$prefix}--tree-parent-node__toggle {
248
256
  margin-block-start: 0;
249
257
  }
258
+ .#{$prefix}--tree-node__label__text {
259
+ @include type-style('body-compact-01');
260
+
261
+ display: block;
262
+ overflow: hidden;
263
+ line-height: 1.2;
264
+ padding-inline-start: convert.to-rem(4px);
265
+ text-overflow: ellipsis;
266
+ white-space: nowrap;
267
+ }
268
+
269
+ .#{$prefix}--tree-node__label .#{$prefix}--icon-tooltip {
270
+ inline-size: 100%;
271
+ }
272
+
273
+ .#{$prefix}--tree-node__label
274
+ .#{$prefix}--icon-tooltip
275
+ .#{$prefix}--btn--icon-only {
276
+ padding: 0;
277
+ border: none;
278
+ background: transparent;
279
+ block-size: auto;
280
+ color: inherit;
281
+ inline-size: 100%;
282
+ min-block-size: unset;
283
+ text-align: start;
284
+ }
285
+
286
+ .#{$prefix}--tree-node__label
287
+ .#{$prefix}--icon-tooltip
288
+ .#{$prefix}--btn--icon-only
289
+ .#{$prefix}--tree-node__label__text {
290
+ color: inherit;
291
+ inline-size: 100%;
292
+ }
293
+
294
+ .#{$prefix}--tree-node__label .#{$prefix}--tooltip-content {
295
+ padding: 1rem;
296
+ }
297
+
298
+ .#{$prefix}--tree-node__label .#{$prefix}--popover-container {
299
+ inline-size: 100%;
300
+ }
301
+ .#{$prefix}--tooltip-trigger__wrapper .#{$prefix}--btn--ghost:focus {
302
+ box-shadow: none;
303
+ outline: 2px solid $focus;
304
+ }
250
305
  }
@@ -12,104 +12,104 @@
12
12
  /// @type {List}
13
13
  $ranges: (
14
14
  Cyrillic: (
15
- 'U+0400-045F',
16
- 'U+0472-0473',
17
- 'U+0490-049D',
18
- 'U+04A0-04A5',
19
- 'U+04AA-04AB',
20
- 'U+04AE-04B3',
21
- 'U+04B6-04BB',
22
- 'U+04C0-04C2',
23
- 'U+04CF-04D9',
24
- 'U+04DC-04DF',
25
- 'U+04E2-04E9',
26
- 'U+04EE-04F5',
27
- 'U+04F8-04F9',
15
+ U+0400-045F,
16
+ U+0472-0473,
17
+ U+0490-049D,
18
+ U+04A0-04A5,
19
+ U+04AA-04AB,
20
+ U+04AE-04B3,
21
+ U+04B6-04BB,
22
+ U+04C0-04C2,
23
+ U+04CF-04D9,
24
+ U+04DC-04DF,
25
+ U+04E2-04E9,
26
+ U+04EE-04F5,
27
+ U+04F8-04F9,
28
28
  ),
29
29
  Greek: (
30
- 'U+0384-038A',
31
- 'U+038C',
32
- 'U+038E-03A1',
33
- 'U+03A3-03CE',
30
+ U+0384-038A,
31
+ U+038C,
32
+ U+038E-03A1,
33
+ U+03A3-03CE,
34
34
  ),
35
35
  Latin1: (
36
- 'U+0000',
37
- 'U+000D',
38
- 'U+0020-007E',
39
- 'U+00A0-00A3',
40
- 'U+00A4-00FF',
41
- 'U+0131',
42
- 'U+0152-0153',
43
- 'U+02C6',
44
- 'U+02DA',
45
- 'U+02DC',
46
- 'U+2013-2014',
47
- 'U+2018-201A',
48
- 'U+201C-201E',
49
- 'U+2020-2022',
50
- 'U+2026',
51
- 'U+2030',
52
- 'U+2039-203A',
53
- 'U+2044',
54
- 'U+2074',
55
- 'U+20AC',
56
- 'U+2122',
57
- 'U+2212',
58
- 'U+FB01-FB02',
36
+ U+0000,
37
+ U+000D,
38
+ U+0020-007E,
39
+ U+00A0-00A3,
40
+ U+00A4-00FF,
41
+ U+0131,
42
+ U+0152-0153,
43
+ U+02C6,
44
+ U+02DA,
45
+ U+02DC,
46
+ U+2013-2014,
47
+ U+2018-201A,
48
+ U+201C-201E,
49
+ U+2020-2022,
50
+ U+2026,
51
+ U+2030,
52
+ U+2039-203A,
53
+ U+2044,
54
+ U+2074,
55
+ U+20AC,
56
+ U+2122,
57
+ U+2212,
58
+ U+FB01-FB02,
59
59
  ),
60
60
  Latin2: (
61
- 'U+0100-024F',
62
- 'U+0259',
63
- 'U+1E00-1EFF',
64
- 'U+20A0-20AB',
65
- 'U+20AD-20CF',
66
- 'U+2C60-2C7F',
67
- 'U+A720-A7FF',
68
- 'U+FB01-FB02',
61
+ U+0100-024F,
62
+ U+0259,
63
+ U+1E00-1EFF,
64
+ U+20A0-20AB,
65
+ U+20AD-20CF,
66
+ U+2C60-2C7F,
67
+ U+A720-A7FF,
68
+ U+FB01-FB02,
69
69
  ),
70
70
  Latin3: (
71
- 'U+0102-0103',
72
- 'U+1EA0-1EF9',
73
- 'U+20AB',
71
+ U+0102-0103,
72
+ U+1EA0-1EF9,
73
+ U+20AB,
74
74
  ),
75
75
  Pi: (
76
- 'U+0E3F',
77
- 'U+2032-2033',
78
- 'U+2070',
79
- 'U+2075-2079',
80
- 'U+2080-2081',
81
- 'U+2083',
82
- 'U+2085-2089',
83
- 'U+2113',
84
- 'U+2116',
85
- 'U+2126',
86
- 'U+212E',
87
- 'U+2150-2151',
88
- 'U+2153-215E',
89
- 'U+2190-2199',
90
- 'U+21A9-21AA',
91
- 'U+21B0-21B3',
92
- 'U+21B6-21B7',
93
- 'U+21BA-21BB',
94
- 'U+21C4',
95
- 'U+21C6',
96
- 'U+2202',
97
- 'U+2206',
98
- 'U+220F',
99
- 'U+2211',
100
- 'U+221A',
101
- 'U+221E',
102
- 'U+222B',
103
- 'U+2248',
104
- 'U+2260',
105
- 'U+2264-2265',
106
- 'U+25CA',
107
- 'U+2713',
108
- 'U+274C',
109
- 'U+2B0E-2B11',
110
- 'U+EBE1-EBE7',
111
- 'U+ECE0',
112
- 'U+EFCC',
76
+ U+0E3F,
77
+ U+2032-2033,
78
+ U+2070,
79
+ U+2075-2079,
80
+ U+2080-2081,
81
+ U+2083,
82
+ U+2085-2089,
83
+ U+2113,
84
+ U+2116,
85
+ U+2126,
86
+ U+212E,
87
+ U+2150-2151,
88
+ U+2153-215E,
89
+ U+2190-2199,
90
+ U+21A9-21AA,
91
+ U+21B0-21B3,
92
+ U+21B6-21B7,
93
+ U+21BA-21BB,
94
+ U+21C4,
95
+ U+21C6,
96
+ U+2202,
97
+ U+2206,
98
+ U+220F,
99
+ U+2211,
100
+ U+221A,
101
+ U+221E,
102
+ U+222B,
103
+ U+2248,
104
+ U+2260,
105
+ U+2264-2265,
106
+ U+25CA,
107
+ U+2713,
108
+ U+274C,
109
+ U+2B0E-2B11,
110
+ U+EBE1-EBE7,
111
+ U+ECE0,
112
+ U+EFCC,
113
113
  ),
114
114
  );
115
115