@carbon/styles 1.44.0-rc.0 → 1.45.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.
- package/css/styles.css +472 -110
- package/css/styles.min.css +1 -1
- package/package.json +3 -3
- package/scss/__tests__/theme-test.js +10 -0
- package/scss/components/accordion/_accordion.scss +13 -37
- package/scss/components/checkbox/_checkbox.scss +20 -0
- package/scss/components/data-table/_data-table.scss +81 -10
- package/scss/components/data-table/expandable/_data-table-expandable.scss +71 -20
- package/scss/components/data-table/sort/_data-table-sort.scss +6 -0
- package/scss/components/fluid-combo-box/_fluid-combo-box.scss +2 -1
- package/scss/components/fluid-date-picker/_fluid-date-picker.scss +12 -0
- package/scss/components/fluid-list-box/_fluid-list-box.scss +54 -1
- package/scss/components/fluid-number-input/_fluid-number-input.scss +21 -0
- package/scss/components/fluid-select/_fluid-select.scss +14 -1
- package/scss/components/fluid-text-area/_fluid-text-area.scss +12 -1
- package/scss/components/fluid-text-input/_fluid-text-input.scss +24 -3
- package/scss/components/fluid-time-picker/_fluid-time-picker.scss +3 -1
- package/scss/components/list-box/_list-box.scss +23 -3
- package/scss/components/menu/_menu.scss +11 -1
- package/scss/components/notification/_actionable-notification.scss +4 -0
- package/scss/components/number-input/_number-input.scss +2 -1
- package/scss/components/popover/_popover.scss +1 -1
- package/scss/components/radio-button/_radio-button.scss +23 -0
- package/scss/components/slider/_slider.scss +126 -32
- package/scss/components/slug/_slug.scss +3 -12
- package/scss/components/tile/_tile.scss +102 -0
- package/scss/utilities/_ai-gradient.scss +56 -2
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.
|
|
4
|
+
"version": "1.45.0-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@carbon/grid": "^11.21.0",
|
|
44
44
|
"@carbon/layout": "^11.20.0",
|
|
45
45
|
"@carbon/motion": "^11.16.0",
|
|
46
|
-
"@carbon/themes": "^11.
|
|
46
|
+
"@carbon/themes": "^11.28.0",
|
|
47
47
|
"@carbon/type": "^11.25.0",
|
|
48
48
|
"@ibm/plex": "6.0.0-next.6"
|
|
49
49
|
},
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"scss/**/*.css",
|
|
66
66
|
"css/**/*.css"
|
|
67
67
|
],
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "451ce652bb9e0fcd30fc28a41ddee1a1daedfd34"
|
|
69
69
|
}
|
|
@@ -136,6 +136,16 @@ describe('@carbon/styles/scss/theme', () => {
|
|
|
136
136
|
"slug-callout-gradient-bottom",
|
|
137
137
|
"slug-callout-aura-start",
|
|
138
138
|
"slug-callout-aura-end",
|
|
139
|
+
"slug-callout-gradient-top-hover",
|
|
140
|
+
"slug-callout-gradient-bottom-hover",
|
|
141
|
+
"slug-callout-aura-start-hover-01",
|
|
142
|
+
"slug-callout-aura-start-hover-02",
|
|
143
|
+
"slug-callout-aura-end-hover-01",
|
|
144
|
+
"slug-callout-aura-end-hover-02",
|
|
145
|
+
"slug-callout-gradient-top-selected",
|
|
146
|
+
"slug-callout-gradient-bottom-selected",
|
|
147
|
+
"slug-callout-aura-start-selected",
|
|
148
|
+
"slug-callout-aura-end-selected",
|
|
139
149
|
"ai-gradient-start-01",
|
|
140
150
|
"ai-gradient-start-02",
|
|
141
151
|
"ai-gradient-end",
|
|
@@ -59,7 +59,6 @@ $content-padding: 0 0 0 $spacing-05 !default;
|
|
|
59
59
|
display: list-item;
|
|
60
60
|
overflow: visible;
|
|
61
61
|
border-block-start: 1px solid $border-subtle;
|
|
62
|
-
transition: all $duration-fast-02 motion(standard, productive);
|
|
63
62
|
|
|
64
63
|
&:last-child {
|
|
65
64
|
border-block-end: 1px solid $border-subtle;
|
|
@@ -144,11 +143,18 @@ $content-padding: 0 0 0 $spacing-05 !default;
|
|
|
144
143
|
text-align: start;
|
|
145
144
|
}
|
|
146
145
|
|
|
146
|
+
.#{$prefix}--accordion__wrapper {
|
|
147
|
+
// Properties for when the accordion closes
|
|
148
|
+
padding: 0;
|
|
149
|
+
max-block-size: 0;
|
|
150
|
+
opacity: 0;
|
|
151
|
+
transition: all $duration-fast-02 motion(entrance, productive);
|
|
152
|
+
writing-mode: horizontal-tb;
|
|
153
|
+
}
|
|
154
|
+
|
|
147
155
|
.#{$prefix}--accordion__content {
|
|
148
|
-
|
|
156
|
+
overflow: hidden;
|
|
149
157
|
padding-inline: layout.density('padding-inline');
|
|
150
|
-
// Transition property for when the accordion closes
|
|
151
|
-
transition: padding motion(standard, productive) $duration-fast-02;
|
|
152
158
|
|
|
153
159
|
// Custom breakpoints based on issue #4993
|
|
154
160
|
@include breakpoint-up(480px) {
|
|
@@ -189,44 +195,14 @@ $content-padding: 0 0 0 $spacing-05 !default;
|
|
|
189
195
|
display: block;
|
|
190
196
|
}
|
|
191
197
|
|
|
192
|
-
@keyframes collapse-accordion {
|
|
193
|
-
0% {
|
|
194
|
-
@include -content-visible;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
100% {
|
|
198
|
-
@include -content-hidden;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
@keyframes expand-accordion {
|
|
203
|
-
0% {
|
|
204
|
-
@include -content-hidden;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
100% {
|
|
208
|
-
@include -content-visible;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.#{$prefix}--accordion__item--collapsing .#{$prefix}--accordion__content {
|
|
213
|
-
animation: $duration-fast-02 motion(standard, productive) collapse-accordion;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
.#{$prefix}--accordion__item--expanding .#{$prefix}--accordion__content {
|
|
217
|
-
animation: $duration-fast-02 motion(standard, productive) expand-accordion;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
198
|
.#{$prefix}--accordion__item--active {
|
|
221
199
|
overflow: visible;
|
|
222
200
|
|
|
223
|
-
.#{$prefix}--
|
|
224
|
-
|
|
201
|
+
.#{$prefix}--accordion__wrapper {
|
|
202
|
+
// Properties for when the accordion opens
|
|
203
|
+
opacity: 1;
|
|
225
204
|
padding-block: $spacing-03;
|
|
226
205
|
padding-block-end: $spacing-06;
|
|
227
|
-
// Transition property for when the accordion opens
|
|
228
|
-
transition: padding-top motion(entrance, productive) $duration-fast-02,
|
|
229
|
-
padding-bottom motion(entrance, productive) $duration-fast-02;
|
|
230
206
|
}
|
|
231
207
|
|
|
232
208
|
.#{$prefix}--accordion__arrow {
|
|
@@ -361,4 +361,24 @@
|
|
|
361
361
|
.#{$prefix}--checkbox-label[data-contained-checkbox-state='true']::after {
|
|
362
362
|
transform: scale(1.2) rotate3d(0.5, 1, 0, 158deg);
|
|
363
363
|
}
|
|
364
|
+
|
|
365
|
+
// Slug styles
|
|
366
|
+
.#{$prefix}--checkbox-group--slug legend.#{$prefix}--label,
|
|
367
|
+
.#{$prefix}--checkbox-wrapper--slug .#{$prefix}--checkbox-label-text {
|
|
368
|
+
display: flex;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.#{$prefix}--checkbox-group--slug legend.#{$prefix}--label .#{$prefix}--slug,
|
|
372
|
+
.#{$prefix}--checkbox-wrapper--slug
|
|
373
|
+
.#{$prefix}--checkbox-label-text
|
|
374
|
+
.#{$prefix}--slug {
|
|
375
|
+
margin-inline-start: $spacing-03;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.#{$prefix}--checkbox-wrapper--slug
|
|
379
|
+
.#{$prefix}--checkbox-label-text
|
|
380
|
+
.#{$prefix}--slug__button--inline {
|
|
381
|
+
line-height: inherit;
|
|
382
|
+
margin-block-start: convert.to-rem(-1px);
|
|
383
|
+
}
|
|
364
384
|
}
|
|
@@ -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
|
-
|
|
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-
|
|
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-
|
|
75
|
-
|
|
76
|
-
|
|
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-
|
|
111
|
-
background-color $duration-fast-
|
|
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-
|
|
320
|
-
border-top $duration-
|
|
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
|
-
|
|
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)
|
|
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(
|
|
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:
|
|
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
|
}
|