@carbon/styles 1.44.0 → 1.45.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.44.0",
4
+ "version": "1.45.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -65,5 +65,5 @@
65
65
  "scss/**/*.css",
66
66
  "css/**/*.css"
67
67
  ],
68
- "gitHead": "d9121f17b1dd935a5734c6eae10af275f72f6dc7"
68
+ "gitHead": "670dffcae241d9bf9b3a64ea06e100e7e5a08c37"
69
69
  }
@@ -16,6 +16,7 @@
16
16
  @use '../../theme' as *;
17
17
  @use '../../type' as *;
18
18
  @use '../../layer' as *;
19
+ @use '../../utilities/ai-gradient' as *;
19
20
  @use '../../utilities/convert';
20
21
  @use '../../utilities/focus-outline' as *;
21
22
  @use '../../utilities/high-contrast-mode' as *;
@@ -47,7 +48,7 @@
47
48
  // Table title text
48
49
  //----------------------------------------------------------------------------
49
50
  .#{$prefix}--data-table-header {
50
- background: $layer;
51
+ background-color: $layer;
51
52
  padding-block-end: $spacing-06;
52
53
  padding-block-start: $spacing-05;
53
54
  padding-inline: $spacing-05;
@@ -107,13 +108,13 @@
107
108
  transition: background-color $duration-fast-01 motion(entrance, productive);
108
109
  }
109
110
 
110
- .#{$prefix}--data-table tbody tr:hover {
111
- background: $layer-hover;
111
+ .#{$prefix}--data-table tbody tr:not([data-child-row]):hover,
112
+ .#{$prefix}--data-table tbody tr[data-child-row]:hover > td {
113
+ background-color: $layer-hover;
112
114
  }
113
115
 
114
116
  .#{$prefix}--data-table tbody tr:hover td,
115
117
  .#{$prefix}--data-table tbody tr:hover th {
116
- background: $layer-hover;
117
118
  border-block-end: 1px solid $layer-hover;
118
119
  border-block-start: 1px solid $layer-hover;
119
120
  color: $text-primary;
@@ -202,7 +203,6 @@
202
203
 
203
204
  .#{$prefix}--data-table td,
204
205
  .#{$prefix}--data-table tbody th {
205
- background: $layer;
206
206
  border-block-end: 1px solid $border-subtle;
207
207
  border-block-start: 1px solid $layer;
208
208
  color: $text-secondary;
@@ -349,20 +349,34 @@
349
349
  tbody
350
350
  tr:not(.#{$prefix}--parent-row):nth-child(even)
351
351
  td {
352
- background-color: $layer-accent;
353
352
  border-block-end: 1px solid $layer-accent;
354
353
  border-block-start: 1px solid $layer-accent;
355
354
  }
356
355
 
356
+ .#{$prefix}--data-table--zebra
357
+ tbody
358
+ tr:not(.#{$prefix}--parent-row):not(
359
+ .#{$prefix}--data-table--selected
360
+ ):nth-child(even) {
361
+ background-color: $layer-accent;
362
+ }
363
+
357
364
  .#{$prefix}--data-table--zebra
358
365
  tbody
359
366
  tr:not(.#{$prefix}--parent-row):hover
360
367
  td {
361
- background-color: $layer-hover;
362
368
  border-block-end: 1px solid $layer-hover;
363
369
  border-block-start: 1px solid $layer-hover;
364
370
  }
365
371
 
372
+ .#{$prefix}--data-table--zebra
373
+ tbody
374
+ tr:not(.#{$prefix}--parent-row):not(
375
+ .#{$prefix}--data-table--selected
376
+ ):hover {
377
+ background-color: $layer-hover;
378
+ }
379
+
366
380
  //----------------------------------------------------------------------------
367
381
  // Select
368
382
  //----------------------------------------------------------------------------
@@ -382,7 +396,7 @@
382
396
  .#{$prefix}--data-table th.#{$prefix}--table-column-checkbox {
383
397
  // Do not use `position: relative`, as its behavior is undefined for many table elements: https://www.w3.org/TR/CSS21/visuren.html#propdef-position
384
398
  position: static;
385
- background: $layer-accent;
399
+ background-color: $layer-accent;
386
400
  inline-size: convert.to-rem(32px);
387
401
  transition: background-color $duration-fast-01 motion(entrance, productive);
388
402
  }
@@ -462,13 +476,19 @@
462
476
  tr:nth-child(odd).#{$prefix}--data-table--selected
463
477
  td,
464
478
  tr.#{$prefix}--data-table--selected td {
465
- background-color: $layer-selected;
466
479
  // Bottom border acts as separator from other rows
467
480
  border-block-end: 1px solid $layer-active;
468
481
  border-block-start: 1px solid $layer-selected;
469
482
  color: $text-primary;
470
483
  }
471
484
 
485
+ .#{$prefix}--data-table--zebra
486
+ tbody
487
+ tr:nth-child(odd).#{$prefix}--data-table--selected,
488
+ tr.#{$prefix}--data-table--selected {
489
+ background-color: $layer-selected;
490
+ }
491
+
472
492
  // First row
473
493
  .#{$prefix}--data-table--zebra
474
494
  tbody
@@ -515,12 +535,18 @@
515
535
  tr:nth-child(odd).#{$prefix}--data-table--selected:hover
516
536
  td,
517
537
  .#{$prefix}--data-table tbody .#{$prefix}--data-table--selected:hover td {
518
- background: $data-table-column-hover;
519
538
  border-block-end: 1px solid $data-table-column-hover;
520
539
  border-block-start: 1px solid $data-table-column-hover;
521
540
  color: $text-primary;
522
541
  }
523
542
 
543
+ .#{$prefix}--data-table--zebra
544
+ tbody
545
+ tr:nth-child(odd).#{$prefix}--data-table--selected:hover,
546
+ .#{$prefix}--data-table tbody .#{$prefix}--data-table--selected:hover {
547
+ background-color: $data-table-column-hover;
548
+ }
549
+
524
550
  // selected overflow menu
525
551
  .#{$prefix}--data-table--selected
526
552
  .#{$prefix}--overflow-menu
@@ -919,6 +945,51 @@
919
945
  margin: convert.to-rem(-3px) 0;
920
946
  }
921
947
 
948
+ // Slug styles
949
+ .#{$prefix}--data-table .#{$prefix}--table-column-slug {
950
+ inline-size: $spacing-05;
951
+ padding-inline-end: 0;
952
+ }
953
+
954
+ .#{$prefix}--data-table
955
+ tbody
956
+ tr:has(> .#{$prefix}--table-column-slug--active) {
957
+ @include ai-gradient('left', 50%);
958
+
959
+ background-attachment: fixed;
960
+ }
961
+
962
+ .#{$prefix}--data-table
963
+ thead
964
+ th.#{$prefix}--table-sort__header--slug
965
+ .#{$prefix}--table-sort,
966
+ .#{$prefix}--data-table
967
+ thead
968
+ th:has(> .#{$prefix}--table-header-label--slug) {
969
+ @include ai-gradient('top', 100%);
970
+ }
971
+
972
+ .#{$prefix}--table-column-slug .#{$prefix}--slug {
973
+ position: absolute;
974
+ transform: translateY(-50%);
975
+ }
976
+
977
+ .#{$prefix}--data-table--xl .#{$prefix}--table-column-slug .#{$prefix}--slug {
978
+ transform: translateY(1px);
979
+ }
980
+
981
+ // Slug inside header styles
982
+ th .#{$prefix}--table-header-label.#{$prefix}--table-header-label--slug {
983
+ display: flex;
984
+ align-items: center;
985
+ }
986
+
987
+ th
988
+ .#{$prefix}--table-header-label.#{$prefix}--table-header-label--slug
989
+ .#{$prefix}--slug {
990
+ margin-inline-start: $spacing-03;
991
+ }
992
+
922
993
  // Windows HCM fix
923
994
  // stylelint-disable-next-line no-duplicate-selectors
924
995
  .#{$prefix}--data-table-content {
@@ -52,7 +52,7 @@
52
52
  padding-block-end: 0;
53
53
  padding-block-start: 0;
54
54
  transition: padding $duration-moderate-01 motion(standard, productive),
55
- background-color $duration-moderate-01 motion(standard, productive);
55
+ background-color $duration-fast-01 motion(standard, productive);
56
56
  }
57
57
 
58
58
  tr.#{$prefix}--parent-row:not(.#{$prefix}--expandable-row)
@@ -65,15 +65,35 @@
65
65
 
66
66
  //child row visible
67
67
  tr.#{$prefix}--parent-row.#{$prefix}--expandable-row + tr[data-child-row] {
68
- transition: height $duration-moderate-01 motion(standard, productive);
68
+ transition: height $duration-moderate-01 motion(standard, productive),
69
+ background-color $duration-fast-01 motion(standard, productive);
69
70
  }
70
71
 
71
72
  tr.#{$prefix}--parent-row.#{$prefix}--expandable-row + tr[data-child-row] td {
72
73
  border-block-end: 1px solid $border-subtle;
73
74
  padding-inline-start: 3.5rem;
74
- transition: padding-bottom $duration-fast-02 motion(standard, productive),
75
- transform $duration-fast-02 motion(standard, productive),
76
- background-color $duration-fast-02 motion(standard, productive);
75
+ transition: padding-bottom $duration-moderate-01
76
+ motion(standard, productive),
77
+ transform $duration-moderate-01 motion(standard, productive);
78
+ }
79
+
80
+ // Increase padding inside expandable row when only a slug OR checkbox is present in row
81
+ tbody:has(> tr.#{$prefix}--parent-row--slug)
82
+ > tr.#{$prefix}--expandable-row[data-child-row]
83
+ td,
84
+ tbody:has(td.#{$prefix}--table-column-checkbox)
85
+ > tr.#{$prefix}--expandable-row[data-child-row]
86
+ td {
87
+ padding-inline-start: convert.to-rem(88px);
88
+ }
89
+
90
+ // Increase padding inside expandable row when slug AND checkbox is present in row
91
+ tbody:has(> tr.#{$prefix}--parent-row--slug):has(
92
+ td.#{$prefix}--table-column-checkbox
93
+ )
94
+ > tr.#{$prefix}--expandable-row[data-child-row]
95
+ td {
96
+ padding-inline-start: convert.to-rem(120px);
77
97
  }
78
98
 
79
99
  tr.#{$prefix}--parent-row.#{$prefix}--expandable-row
@@ -107,8 +127,9 @@
107
127
  tr.#{$prefix}--parent-row:not(.#{$prefix}--expandable-row) td,
108
128
  tr.#{$prefix}--parent-row.#{$prefix}--expandable-row td,
109
129
  tr.#{$prefix}--parent-row.#{$prefix}--expandable-row {
110
- transition: height $duration-moderate-02 motion(standard, productive),
111
- background-color $duration-fast-02 motion(standard, productive);
130
+ transition: height $duration-moderate-01 motion(standard, productive),
131
+ background-color $duration-fast-01 motion(standard, productive),
132
+ border-color $duration-fast-01 motion(standard, productive);
112
133
  }
113
134
 
114
135
  // hovering on collapsed parent
@@ -180,6 +201,14 @@
180
201
  padding-inline-start: convert.to-rem(6px);
181
202
  }
182
203
 
204
+ // Hide bottom border of checkbox column when expanded
205
+ .#{$prefix}--data-table
206
+ td.#{$prefix}--table-expand[data-previous-value='collapsed']
207
+ + .#{$prefix}--table-column-checkbox {
208
+ border-block-end: 1px solid transparent;
209
+ box-shadow: none;
210
+ }
211
+
183
212
  .#{$prefix}--data-table
184
213
  th.#{$prefix}--table-expand
185
214
  + .#{$prefix}--table-column-checkbox
@@ -272,7 +301,7 @@
272
301
  td.#{$prefix}--table-expand
273
302
  + td::after {
274
303
  position: absolute;
275
- background: $layer-accent;
304
+ background-color: $layer-accent;
276
305
  block-size: convert.to-rem(1px);
277
306
  content: '';
278
307
  inline-size: convert.to-rem(8px);
@@ -286,7 +315,7 @@
286
315
  tr.#{$prefix}--parent-row.#{$prefix}--expandable-row.#{$prefix}--expandable-row--hover
287
316
  td.#{$prefix}--table-expand
288
317
  + td::after {
289
- background: $layer-hover;
318
+ background-color: $layer-hover;
290
319
  }
291
320
 
292
321
  tr.#{$prefix}--parent-row.#{$prefix}--data-table--selected
@@ -316,8 +345,8 @@
316
345
  + tr[data-child-row]
317
346
  td {
318
347
  transition: transform $duration-moderate-01 motion(standard, productive),
319
- border-bottom $duration-moderate-01 motion(standard, productive),
320
- border-top $duration-moderate-01 motion(standard, productive);
348
+ border-bottom $duration-fast-01 motion(standard, productive),
349
+ border-top $duration-fast-01 motion(standard, productive);
321
350
  }
322
351
 
323
352
  .#{$prefix}--data-table--zebra tbody tr[data-parent-row]:hover td,
@@ -335,7 +364,7 @@
335
364
  .#{$prefix}--data-table--zebra
336
365
  tr.#{$prefix}--parent-row.#{$prefix}--expandable-row.#{$prefix}--expandable-row--hover
337
366
  td {
338
- background: $layer-hover;
367
+ background-color: $layer-hover;
339
368
  border-block-end: 1px solid $layer-hover;
340
369
  border-block-start: 1px solid $layer-hover;
341
370
  }
@@ -344,22 +373,23 @@
344
373
  // Selected
345
374
  //----------------------------------------------------------------------------
346
375
  // Parent collapsed
376
+
377
+ tr.#{$prefix}--parent-row.#{$prefix}--data-table--selected {
378
+ background-color: $layer-selected;
379
+ }
380
+
347
381
  tr.#{$prefix}--parent-row.#{$prefix}--data-table--selected:first-of-type td {
348
- background: $layer-selected;
349
- border-block-end: 1px solid $border-subtle;
350
382
  border-block-start: 1px solid $layer-active;
351
383
  box-shadow: 0 1px $layer-active;
352
384
  }
353
385
 
354
386
  tr.#{$prefix}--parent-row.#{$prefix}--data-table--selected td {
355
- background: $layer-selected;
356
- border-block-end: 1px solid transparent;
387
+ border-block-end: 1px solid $layer-active;
357
388
  box-shadow: 0 1px $layer-active;
358
389
  color: $text-primary;
359
390
  }
360
391
 
361
392
  tr.#{$prefix}--parent-row.#{$prefix}--data-table--selected:last-of-type td {
362
- background: $layer-selected;
363
393
  border-block-end: 1px solid transparent;
364
394
  box-shadow: 0 1px $border-subtle;
365
395
  }
@@ -369,7 +399,7 @@
369
399
  .#{$prefix}--expandable-row
370
400
  ):hover
371
401
  td {
372
- background: $layer-selected-hover;
402
+ background-color: $layer-selected-hover;
373
403
  border-block-end: 1px solid $border-subtle;
374
404
  border-block-start: 1px solid $layer-selected-hover;
375
405
  box-shadow: 0 1px $layer-selected-hover;
@@ -394,7 +424,7 @@
394
424
  td,
395
425
  tr.#{$prefix}--parent-row.#{$prefix}--data-table--selected.#{$prefix}--expandable-row--hover
396
426
  td:first-of-type {
397
- background: $layer-selected-hover;
427
+ background-color: $layer-selected-hover;
398
428
  border-block-end: 1px solid transparent;
399
429
  border-block-start: 1px solid $layer-selected-hover;
400
430
  box-shadow: 0 1px $layer-selected-hover;
@@ -425,7 +455,28 @@
425
455
  tr.#{$prefix}--parent-row.#{$prefix}--data-table--selected.#{$prefix}--expandable-row--hover
426
456
  + tr[data-child-row]
427
457
  td {
428
- background: $layer-selected;
458
+ background-color: $layer-selected;
459
+ }
460
+
461
+ // Slug styles
462
+ .#{$prefix}--parent-row .#{$prefix}--table-column-slug,
463
+ .#{$prefix}--parent-row
464
+ .#{$prefix}--table-column-slug
465
+ + td.cds--table-expand[data-previous-value='collapsed'] {
466
+ box-shadow: none;
467
+ }
468
+
469
+ .#{$prefix}--parent-row.#{$prefix}--expandable-row
470
+ .#{$prefix}--table-column-slug,
471
+ .#{$prefix}--parent-row.#{$prefix}--expandable-row
472
+ .#{$prefix}--table-column-slug
473
+ + td.cds--table-expand[data-previous-value='collapsed'] {
474
+ border-block-end: 1px solid transparent;
475
+ }
476
+
477
+ .#{$prefix}--parent-row--slug td,
478
+ .#{$prefix}--data-table tr.#{$prefix}--parent-row--slug:hover td {
479
+ border-block-start: 1px solid transparent;
429
480
  }
430
481
 
431
482
  // Windows HCM fix
@@ -248,6 +248,12 @@
248
248
  margin-block-start: convert.to-rem(13px);
249
249
  }
250
250
 
251
+ // Slug styles
252
+ .#{$prefix}--table-sort__header--slug .#{$prefix}--slug {
253
+ margin-inline-end: auto;
254
+ margin-inline-start: convert.to-rem(8px);
255
+ }
256
+
251
257
  // Windows HCM fix
252
258
  .#{$prefix}--table-sort__icon,
253
259
  .#{$prefix}--table-sort__icon-unsorted {
@@ -30,7 +30,8 @@
30
30
  .#{$prefix}--combo-box
31
31
  .#{$prefix}--text-input {
32
32
  overflow: hidden;
33
- padding: convert.to-rem(33px) $spacing-10 convert.to-rem(13px) $spacing-05;
33
+ padding-block: convert.to-rem(33px) convert.to-rem(13px);
34
+ padding-inline: $spacing-05 $spacing-10;
34
35
  text-overflow: ellipsis;
35
36
  transition: none;
36
37
  white-space: nowrap;
@@ -410,4 +410,16 @@
410
410
  .#{$prefix}--date-picker-input__wrapper--slug {
411
411
  @include ai-gradient;
412
412
  }
413
+
414
+ .#{$prefix}--date-picker--fluid
415
+ .#{$prefix}--date-picker-input__wrapper--slug
416
+ .#{$prefix}--date-picker__input,
417
+ .#{$prefix}--date-picker--fluid--invalid
418
+ .#{$prefix}--date-picker-input__wrapper--slug
419
+ .#{$prefix}--date-picker__input,
420
+ .#{$prefix}--date-picker--fluid--warn
421
+ .#{$prefix}--date-picker-input__wrapper--slug
422
+ .#{$prefix}--date-picker__input {
423
+ padding-inline-end: $spacing-10;
424
+ }
413
425
  }
@@ -122,7 +122,7 @@
122
122
  .#{$prefix}--list-box__wrapper--fluid
123
123
  :not(.#{$prefix}--list-box--up)
124
124
  .#{$prefix}--list-box__menu {
125
- inset-block-start: calc(100% + convert.to-rem(3px));
125
+ inset-block-start: calc(100% + convert.to-rem(1px));
126
126
  }
127
127
 
128
128
  // Invalid / Warning styles
@@ -277,4 +277,57 @@
277
277
  animation: 3000ms ease-in-out skeleton infinite;
278
278
  background: $skeleton-element;
279
279
  }
280
+
281
+ // Slug styles
282
+ .#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--slug
283
+ .#{$prefix}--slug {
284
+ inset-block-start: convert.to-rem(42px);
285
+ }
286
+
287
+ .#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--slug
288
+ .#{$prefix}--list-box--warning
289
+ .#{$prefix}--slug,
290
+ .#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--slug
291
+ .#{$prefix}--list-box--invalid
292
+ .#{$prefix}--slug {
293
+ inset-inline-end: $spacing-08;
294
+ }
295
+
296
+ .#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--slug
297
+ .#{$prefix}--list-box--warning
298
+ button.#{$prefix}--list-box__field,
299
+ .#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--fluid--invalid.#{$prefix}--list-box__wrapper--slug
300
+ .#{$prefix}--list-box--invalid[data-invalid]
301
+ button.#{$prefix}--list-box__field {
302
+ padding-inline-end: $spacing-10;
303
+ }
304
+
305
+ .#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--slug
306
+ .#{$prefix}--list-box--warning
307
+ .#{$prefix}--text-input:not(.#{$prefix}--text-input--empty),
308
+ .#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--slug.#{$prefix}--list-box__wrapper--fluid--invalid
309
+ .#{$prefix}--list-box--invalid
310
+ .#{$prefix}--text-input:not(.#{$prefix}--text-input--empty) {
311
+ padding-inline-end: convert.to-rem(88px);
312
+ }
313
+
314
+ .#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--slug
315
+ .#{$prefix}--list-box--warning
316
+ .#{$prefix}--list-box__field:has(
317
+ .#{$prefix}--text-input:not(.#{$prefix}--text-input--empty)
318
+ )
319
+ ~ .#{$prefix}--slug,
320
+ .#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--slug
321
+ .#{$prefix}--list-box--invalid
322
+ .#{$prefix}--list-box__field:has(
323
+ .#{$prefix}--text-input:not(.#{$prefix}--text-input--empty)
324
+ )
325
+ ~ .#{$prefix}--slug {
326
+ inset-inline-end: $spacing-10;
327
+ }
328
+
329
+ .#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--slug
330
+ .#{$prefix}--text-input:not(.#{$prefix}--text-input--empty) {
331
+ padding-inline-end: $spacing-12;
332
+ }
280
333
  }
@@ -282,6 +282,27 @@
282
282
  inset-block-start: convert.to-rem(43px);
283
283
  }
284
284
 
285
+ .#{$prefix}--number-input--fluid.#{$prefix}--number-input--fluid--invalid
286
+ .#{$prefix}--number__input-wrapper--slug
287
+ .#{$prefix}--slug,
288
+ .#{$prefix}--number-input--fluid
289
+ .#{$prefix}--number__input-wrapper--slug.#{$prefix}--number__input-wrapper--warning
290
+ .#{$prefix}--slug {
291
+ inset-inline-end: convert.to-rem(88px);
292
+ }
293
+
294
+ .#{$prefix}--number-input--fluid
295
+ .#{$prefix}--number__input-wrapper--slug
296
+ input,
297
+ .#{$prefix}--number-input--fluid.#{$prefix}--number-input--fluid--invalid
298
+ .#{$prefix}--number__input-wrapper--slug
299
+ input[data-invalid],
300
+ .#{$prefix}--number-input--fluid
301
+ .#{$prefix}--number__input-wrapper--slug.#{$prefix}--number__input-wrapper--warning
302
+ input {
303
+ padding-inline-end: convert.to-rem(120px);
304
+ }
305
+
285
306
  .#{$prefix}--number-input--fluid .#{$prefix}--number__input-wrapper--slug {
286
307
  @include ai-gradient;
287
308
  }
@@ -63,7 +63,8 @@
63
63
 
64
64
  .#{$prefix}--select--fluid .#{$prefix}--select__arrow {
65
65
  block-size: 1rem;
66
- inset-block-start: $spacing-07;
66
+ inset-block-start: convert.to-rem(34px);
67
+ inset-inline-end: $spacing-04;
67
68
  }
68
69
 
69
70
  .#{$prefix}--select--fluid .#{$prefix}--select__divider {
@@ -195,4 +196,16 @@
195
196
  svg {
196
197
  fill: $icon-disabled;
197
198
  }
199
+
200
+ // Slug styles
201
+ .#{$prefix}--select--fluid .#{$prefix}--select--slug .#{$prefix}--slug {
202
+ inset-block-start: convert.to-rem(42px);
203
+ inset-inline-end: $spacing-08;
204
+ }
205
+
206
+ .#{$prefix}--select--fluid
207
+ .#{$prefix}--select--slug
208
+ .#{$prefix}--select-input {
209
+ padding-inline-end: $spacing-10;
210
+ }
198
211
  }
@@ -42,7 +42,7 @@
42
42
  align-items: center;
43
43
  margin: 0;
44
44
  block-size: convert.to-rem(16px);
45
- inline-size: calc(100% - 2rem);
45
+ inline-size: auto;
46
46
  inset-block-start: convert.to-rem(13px);
47
47
  inset-inline-start: $spacing-05;
48
48
  }
@@ -222,4 +222,15 @@
222
222
  .#{$prefix}--text-area--fluid .#{$prefix}--text-area__wrapper--slug {
223
223
  @include ai-gradient;
224
224
  }
225
+
226
+ .#{$prefix}--text-area--fluid
227
+ .#{$prefix}--text-area__wrapper--slug
228
+ .#{$prefix}--text-area--invalid
229
+ ~ .#{$prefix}--slug,
230
+ .#{$prefix}--text-area--fluid
231
+ .#{$prefix}--text-area__wrapper--slug
232
+ .#{$prefix}--text-area--warn
233
+ ~ .#{$prefix}--slug {
234
+ inset-inline-end: $spacing-05;
235
+ }
225
236
  }
@@ -92,10 +92,10 @@
92
92
 
93
93
  .#{$prefix}--text-input--fluid
94
94
  .#{$prefix}--text-input--invalid
95
- + .#{$prefix}--text-input__divider,
95
+ ~ .#{$prefix}--text-input__divider,
96
96
  .#{$prefix}--text-input--fluid
97
97
  .#{$prefix}--text-input--warning
98
- + .#{$prefix}--text-input__divider {
98
+ ~ .#{$prefix}--text-input__divider {
99
99
  display: block;
100
100
  border-style: solid;
101
101
  border-color: $border-subtle;
@@ -190,6 +190,27 @@
190
190
  .#{$prefix}--text-input--fluid
191
191
  .#{$prefix}--text-input__field-wrapper--slug
192
192
  .#{$prefix}--slug {
193
- inset-block-start: convert.to-rem(43px);
193
+ inset-block-start: convert.to-rem(42px);
194
+ }
195
+
196
+ .#{$prefix}--text-input--fluid
197
+ .#{$prefix}--text-input--invalid
198
+ ~ .#{$prefix}--slug,
199
+ .#{$prefix}--text-input--fluid
200
+ .#{$prefix}--text-input--warning
201
+ ~ .#{$prefix}--slug {
202
+ inset-inline-end: $spacing-05;
203
+ }
204
+
205
+ .#{$prefix}--text-input--fluid
206
+ .#{$prefix}--text-input__field-wrapper--slug
207
+ .#{$prefix}--text-input,
208
+ .#{$prefix}--text-input--fluid
209
+ .#{$prefix}--text-input__field-wrapper--slug
210
+ .#{$prefix}--text-input--invalid,
211
+ .#{$prefix}--text-input--fluid
212
+ .#{$prefix}--text-input__field-wrapper--slug
213
+ .#{$prefix}--text-input--warning {
214
+ padding-inline-end: $spacing-08;
194
215
  }
195
216
  }
@@ -112,7 +112,9 @@
112
112
  padding-block-start: convert.to-rem(30px);
113
113
  }
114
114
 
115
- .#{$prefix}--select--fluid:last-of-type .#{$prefix}--select-input {
115
+ .#{$prefix}--time-picker--fluid
116
+ .#{$prefix}--select--fluid:last-of-type
117
+ .#{$prefix}--select-input {
116
118
  border-inline-end: 2px solid transparent;
117
119
  }
118
120
 
@@ -369,7 +369,7 @@ $list-box-menu-width: convert.to-rem(300px);
369
369
  .#{$prefix}--list-box--warning
370
370
  .#{$prefix}--list-box__field
371
371
  .#{$prefix}--text-input--empty {
372
- padding-inline-end: carbon--mini-units(9);
372
+ padding-inline-end: $spacing-10;
373
373
  }
374
374
 
375
375
  .#{$prefix}--list-box[data-invalid]
@@ -902,19 +902,39 @@ $list-box-menu-width: convert.to-rem(300px);
902
902
  }
903
903
 
904
904
  .#{$prefix}--list-box__wrapper--slug .#{$prefix}--list-box__field,
905
- .#{$prefix}--list-box__wrapper--slug .#{$prefix}--text-input {
905
+ .#{$prefix}--list-box__wrapper--slug .#{$prefix}--text-input--empty {
906
906
  padding-inline-end: $spacing-10;
907
907
  }
908
908
 
909
909
  .#{$prefix}--list-box__wrapper--slug
910
- .#{$prefix}--list-box--invalid
910
+ .#{$prefix}--text-input:not(.#{$prefix}--text-input--empty) {
911
+ padding-inline-end: $spacing-12;
912
+ }
913
+
914
+ .#{$prefix}--list-box__wrapper--slug
915
+ .#{$prefix}--list-box--invalid[data-invalid]
916
+ .#{$prefix}--text-input--empty,
917
+ .#{$prefix}--list-box__wrapper--slug
918
+ .#{$prefix}--list-box--invalid[data-invalid]
911
919
  .#{$prefix}--list-box__field,
920
+ .#{$prefix}--list-box__wrapper--slug
921
+ .#{$prefix}--list-box--warning
922
+ .#{$prefix}--text-input--empty,
912
923
  .#{$prefix}--list-box__wrapper--slug
913
924
  .#{$prefix}--list-box--warning
914
925
  .#{$prefix}--list-box__field {
915
926
  padding-inline-end: $spacing-12;
916
927
  }
917
928
 
929
+ .#{$prefix}--list-box__wrapper--slug
930
+ .#{$prefix}--list-box--invalid[data-invalid]
931
+ .#{$prefix}--text-input:not(.#{$prefix}--text-input--empty),
932
+ .#{$prefix}--list-box__wrapper--slug
933
+ .#{$prefix}--list-box--warning
934
+ .#{$prefix}--text-input:not(.#{$prefix}--text-input--empty) {
935
+ padding-inline-end: convert.to-rem(120px);
936
+ }
937
+
918
938
  .#{$prefix}--list-box__wrapper--slug
919
939
  .#{$prefix}--list-box--invalid
920
940
  .#{$prefix}--slug,