@carbon/styles 1.37.0 → 1.38.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 +2588 -2403
- package/css/styles.min.css +1 -1
- package/package.json +5 -5
- package/scss/components/accordion/_accordion.scss +47 -35
- package/scss/components/aspect-ratio/_aspect-ratio.scss +7 -4
- package/scss/components/breadcrumb/_breadcrumb.scss +26 -20
- package/scss/components/button/_button.scss +16 -11
- package/scss/components/button/_mixins.scss +12 -12
- package/scss/components/checkbox/_checkbox.scss +55 -40
- package/scss/components/code-snippet/_code-snippet.scss +74 -59
- package/scss/components/code-snippet/_mixins.scss +2 -2
- package/scss/components/combo-box/_combo-box.scss +2 -2
- package/scss/components/combo-button/_combo-button.scss +2 -2
- package/scss/components/contained-list/_contained-list.scss +41 -22
- package/scss/components/content-switcher/_content-switcher.scss +32 -32
- package/scss/components/data-table/_data-table.scss +150 -144
- package/scss/components/data-table/_mixins.scss +3 -3
- package/scss/components/data-table/action/_data-table-action.scss +83 -81
- package/scss/components/data-table/expandable/_data-table-expandable.scss +60 -60
- package/scss/components/data-table/skeleton/_data-table-skeleton.scss +10 -8
- package/scss/components/data-table/sort/_data-table-sort.scss +38 -38
- package/scss/components/date-picker/_date-picker.scss +21 -20
- package/scss/components/date-picker/_flatpickr.scss +51 -51
- package/scss/components/dropdown/_dropdown.scss +49 -49
- package/scss/components/file-uploader/_file-uploader.scss +37 -37
- package/scss/components/fluid-combo-box/_fluid-combo-box.scss +4 -4
- package/scss/components/fluid-date-picker/_fluid-date-picker.scss +54 -54
- package/scss/components/fluid-list-box/_fluid-list-box.scss +33 -33
- package/scss/components/fluid-multiselect/_fluid-multiselect.scss +2 -2
- package/scss/components/fluid-number-input/_fluid-number-input.scss +30 -30
- package/scss/components/fluid-search/_fluid-search.scss +17 -17
- package/scss/components/fluid-select/_fluid-select.scss +17 -17
- package/scss/components/fluid-text-area/_fluid-text-area.scss +21 -21
- package/scss/components/fluid-text-input/_fluid-text-input.scss +26 -26
- package/scss/components/fluid-time-picker/_fluid-time-picker.scss +23 -23
- package/scss/components/form/_form.scss +16 -15
- package/scss/components/inline-loading/_inline-loading.scss +9 -9
- package/scss/components/link/_link.scss +1 -1
- package/scss/components/list/_list.scss +7 -7
- package/scss/components/list-box/_list-box.scss +109 -107
- package/scss/components/loading/_loading.scss +10 -9
- package/scss/components/menu/_menu.scss +7 -7
- package/scss/components/menu-button/_menu-button.scss +1 -1
- package/scss/components/modal/_modal.scss +72 -72
- package/scss/components/multiselect/_multiselect.scss +11 -11
- package/scss/components/notification/_actionable-notification.scss +37 -39
- package/scss/components/notification/_inline-notification.scss +26 -26
- package/scss/components/notification/_mixins.scss +3 -3
- package/scss/components/notification/_toast-notification.scss +16 -18
- package/scss/components/number-input/_number-input.scss +70 -70
- package/scss/components/overflow-menu/_overflow-menu.scss +50 -50
- package/scss/components/pagination/_pagination.scss +46 -34
- package/scss/components/pagination/_unstable_pagination.scss +26 -24
- package/scss/components/pagination-nav/_mixins.scss +6 -6
- package/scss/components/pagination-nav/_pagination-nav.scss +16 -11
- package/scss/components/popover/_popover.scss +201 -63
- package/scss/components/progress-bar/_progress-bar.scss +33 -11
- package/scss/components/progress-indicator/_progress-indicator.scss +46 -42
- package/scss/components/radio-button/_radio-button.scss +24 -23
- package/scss/components/search/_search.scss +35 -34
- package/scss/components/select/_select.scss +31 -29
- package/scss/components/skeleton-styles/_skeleton-styles.scss +10 -8
- package/scss/components/slider/_slider.scss +28 -28
- package/scss/components/structured-list/_mixins.scss +4 -4
- package/scss/components/structured-list/_structured-list.scss +16 -16
- package/scss/components/tabs/_tabs.scss +50 -50
- package/scss/components/tag/_tag.scss +22 -20
- package/scss/components/text-area/_text-area.scss +17 -15
- package/scss/components/text-input/_text-input.scss +43 -41
- package/scss/components/tile/_tile.scss +11 -11
- package/scss/components/time-picker/_time-picker.scss +17 -17
- package/scss/components/toggle/_toggle.scss +37 -24
- package/scss/components/toggletip/_toggletip.scss +3 -2
- package/scss/components/tooltip/_tooltip.scss +7 -5
- package/scss/components/treeview/_treeview.scss +27 -27
- package/scss/components/ui-shell/content/_content.scss +3 -3
- package/scss/components/ui-shell/header/_header.scss +47 -47
- package/scss/components/ui-shell/header-panel/_header-panel.scss +7 -7
- package/scss/components/ui-shell/side-nav/_side-nav.scss +65 -65
- package/scss/components/ui-shell/switcher/_switcher.scss +6 -6
- package/scss/utilities/_button-reset.scss +1 -1
- package/scss/utilities/_skeleton.scss +4 -4
- package/scss/utilities/_text-overflow.scss +1 -1
- package/scss/utilities/_text-truncate.scss +2 -2
- package/scss/utilities/_tooltip.scss +44 -46
- package/scss/utilities/_visually-hidden.scss +4 -4
|
@@ -67,7 +67,7 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.#{$prefix}--form__helper-text {
|
|
70
|
-
max-
|
|
70
|
+
max-inline-size: none;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.#{$prefix}--form-requirement {
|
|
@@ -79,14 +79,14 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
79
79
|
@include reset;
|
|
80
80
|
|
|
81
81
|
position: relative;
|
|
82
|
-
width: $list-box-width;
|
|
83
|
-
height: convert.to-rem(40px);
|
|
84
|
-
max-height: convert.to-rem(40px);
|
|
85
82
|
border: none;
|
|
86
|
-
border-bottom: 1px solid $border-strong;
|
|
87
83
|
background-color: $field;
|
|
84
|
+
block-size: convert.to-rem(40px);
|
|
85
|
+
border-block-end: 1px solid $border-strong;
|
|
88
86
|
color: $text-primary;
|
|
89
87
|
cursor: pointer;
|
|
88
|
+
inline-size: $list-box-width;
|
|
89
|
+
max-block-size: convert.to-rem(40px);
|
|
90
90
|
transition: all $duration-fast-01 motion(standard, productive);
|
|
91
91
|
|
|
92
92
|
&:hover {
|
|
@@ -95,25 +95,25 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
.#{$prefix}--list-box--lg {
|
|
98
|
-
|
|
99
|
-
max-
|
|
98
|
+
block-size: convert.to-rem(48px);
|
|
99
|
+
max-block-size: convert.to-rem(48px);
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
.#{$prefix}--list-box--sm {
|
|
103
|
-
|
|
104
|
-
max-
|
|
103
|
+
block-size: convert.to-rem(32px);
|
|
104
|
+
max-block-size: convert.to-rem(32px);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
.#{$prefix}--list-box--expanded {
|
|
108
|
-
border-
|
|
108
|
+
border-block-end-color: $border-subtle-01;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
.#{$prefix}--layer-two .#{$prefix}--list-box--expanded {
|
|
112
|
-
border-
|
|
112
|
+
border-block-end-color: $border-subtle-02;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
.#{$prefix}--layer-three .#{$prefix}--list-box--expanded {
|
|
116
|
-
border-
|
|
116
|
+
border-block-end-color: $border-subtle-03;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
.#{$prefix}--list-box--expanded:hover {
|
|
@@ -126,16 +126,16 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
.#{$prefix}--list-box .#{$prefix}--text-input {
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
block-size: 100%;
|
|
130
|
+
min-inline-size: 0;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
// invalid states
|
|
134
134
|
.#{$prefix}--list-box__invalid-icon {
|
|
135
135
|
position: absolute;
|
|
136
|
-
top: 50%;
|
|
137
|
-
right: $spacing-08;
|
|
138
136
|
fill: $support-error;
|
|
137
|
+
inset-block-start: 50%;
|
|
138
|
+
inset-inline-end: $spacing-08;
|
|
139
139
|
transform: translateY(-50%);
|
|
140
140
|
}
|
|
141
141
|
|
|
@@ -151,15 +151,15 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
151
151
|
.#{$prefix}--list-box[data-invalid] .#{$prefix}--list-box__field,
|
|
152
152
|
.#{$prefix}--list-box.#{$prefix}--list-box--warning
|
|
153
153
|
.#{$prefix}--list-box__field {
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
border-block-end: 0;
|
|
155
|
+
padding-inline-end: $spacing-10;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
.#{$prefix}--list-box[data-invalid].#{$prefix}--list-box--inline
|
|
159
159
|
.#{$prefix}--list-box__field,
|
|
160
160
|
.#{$prefix}--list-box.#{$prefix}--list-box--warning.#{$prefix}--list-box--inline
|
|
161
161
|
.#{$prefix}--list-box__field {
|
|
162
|
-
padding-
|
|
162
|
+
padding-inline-end: convert.to-rem(56px);
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
// V11: Possibly deprecate
|
|
@@ -179,11 +179,11 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
179
179
|
|
|
180
180
|
// V11: Possibly deprecate
|
|
181
181
|
.#{$prefix}--list-box--light .#{$prefix}--list-box__menu-item__option {
|
|
182
|
-
border-
|
|
182
|
+
border-block-start-color: $border-subtle;
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
.#{$prefix}--list-box--light.#{$prefix}--list-box--expanded {
|
|
186
|
-
border-
|
|
186
|
+
border-block-end-color: transparent;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
// Disabled state for `list-box`
|
|
@@ -199,7 +199,7 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
199
199
|
.#{$prefix}--list-box--disabled,
|
|
200
200
|
.#{$prefix}--list-box--disabled .#{$prefix}--list-box__field,
|
|
201
201
|
.#{$prefix}--list-box--disabled .#{$prefix}--list-box__field:focus {
|
|
202
|
-
border-
|
|
202
|
+
border-block-end-color: transparent;
|
|
203
203
|
outline: none;
|
|
204
204
|
}
|
|
205
205
|
|
|
@@ -235,12 +235,12 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
235
235
|
// disabled && invalid
|
|
236
236
|
.#{$prefix}--list-box--disabled.#{$prefix}--list-box[data-invalid]
|
|
237
237
|
.#{$prefix}--list-box__field {
|
|
238
|
-
padding-
|
|
238
|
+
padding-inline-end: $spacing-09;
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
.#{$prefix}--list-box--disabled.#{$prefix}--list-box[data-invalid].#{$prefix}--list-box--inline
|
|
242
242
|
.#{$prefix}--list-box__field {
|
|
243
|
-
padding-
|
|
243
|
+
padding-inline-end: $spacing-07;
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
// Inline variant for a `list-box`
|
|
@@ -254,7 +254,7 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
.#{$prefix}--list-box.#{$prefix}--list-box--inline.#{$prefix}--list-box--expanded {
|
|
257
|
-
border-
|
|
257
|
+
border-block-end-width: 0;
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
.#{$prefix}--list-box.#{$prefix}--list-box--inline.#{$prefix}--list-box--expanded
|
|
@@ -274,12 +274,12 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
274
274
|
|
|
275
275
|
.#{$prefix}--list-box.#{$prefix}--list-box--inline
|
|
276
276
|
.#{$prefix}--list-box__menu-icon {
|
|
277
|
-
|
|
277
|
+
inset-inline-end: $spacing-03;
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
.#{$prefix}--list-box.#{$prefix}--list-box--inline
|
|
281
281
|
.#{$prefix}--list-box__invalid-icon {
|
|
282
|
-
|
|
282
|
+
inset-inline-end: $spacing-07;
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
.#{$prefix}--list-box--inline .#{$prefix}--list-box__label {
|
|
@@ -287,16 +287,16 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
.#{$prefix}--list-box--inline .#{$prefix}--list-box__field {
|
|
290
|
-
|
|
290
|
+
block-size: 100%;
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
.#{$prefix}--dropdown--inline .#{$prefix}--list-box__field {
|
|
294
|
-
max-
|
|
294
|
+
max-inline-size: convert.to-rem(480px);
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
.#{$prefix}--dropdown--inline .#{$prefix}--list-box__menu {
|
|
298
|
-
|
|
299
|
-
|
|
298
|
+
max-inline-size: convert.to-rem(480px);
|
|
299
|
+
min-inline-size: convert.to-rem(288px);
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
// The field we use for input, showing selection, etc.
|
|
@@ -306,12 +306,14 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
306
306
|
position: relative;
|
|
307
307
|
display: inline-flex;
|
|
308
308
|
overflow: hidden;
|
|
309
|
-
// Account for the border in `.bx--list-box`
|
|
310
|
-
height: calc(100% + 1px);
|
|
311
309
|
align-items: center;
|
|
312
|
-
|
|
310
|
+
// Account for the border in `.bx--list-box`
|
|
311
|
+
block-size: calc(100% + 1px);
|
|
313
312
|
cursor: pointer;
|
|
314
313
|
outline: none;
|
|
314
|
+
padding-block: 0;
|
|
315
|
+
padding-inline-end: $spacing-09;
|
|
316
|
+
padding-inline-start: $spacing-05;
|
|
315
317
|
text-overflow: ellipsis;
|
|
316
318
|
vertical-align: top;
|
|
317
319
|
white-space: nowrap;
|
|
@@ -328,7 +330,7 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
328
330
|
|
|
329
331
|
// populated input field
|
|
330
332
|
.#{$prefix}--list-box__field .#{$prefix}--text-input {
|
|
331
|
-
padding-
|
|
333
|
+
padding-inline-end: convert.to-rem(72px);
|
|
332
334
|
}
|
|
333
335
|
|
|
334
336
|
// invalid && populated input field
|
|
@@ -339,7 +341,7 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
339
341
|
.#{$prefix}--list-box__field
|
|
340
342
|
.#{$prefix}--text-input {
|
|
341
343
|
// to account for clear input button outline
|
|
342
|
-
padding-
|
|
344
|
+
padding-inline-end: convert.to-rem(98px);
|
|
343
345
|
}
|
|
344
346
|
|
|
345
347
|
.#{$prefix}--list-box[data-invalid]
|
|
@@ -351,12 +353,12 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
351
353
|
.#{$prefix}--text-input
|
|
352
354
|
+ .#{$prefix}--list-box__invalid-icon {
|
|
353
355
|
// to account for clear input button outline
|
|
354
|
-
|
|
356
|
+
inset-inline-end: convert.to-rem(66px);
|
|
355
357
|
}
|
|
356
358
|
|
|
357
359
|
// empty input field
|
|
358
360
|
.#{$prefix}--list-box__field .#{$prefix}--text-input--empty {
|
|
359
|
-
padding-
|
|
361
|
+
padding-inline-end: $spacing-09;
|
|
360
362
|
}
|
|
361
363
|
|
|
362
364
|
// invalid && empty input field
|
|
@@ -366,7 +368,7 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
366
368
|
.#{$prefix}--list-box--warning
|
|
367
369
|
.#{$prefix}--list-box__field
|
|
368
370
|
.#{$prefix}--text-input--empty {
|
|
369
|
-
padding-
|
|
371
|
+
padding-inline-end: carbon--mini-units(9);
|
|
370
372
|
}
|
|
371
373
|
|
|
372
374
|
.#{$prefix}--list-box[data-invalid]
|
|
@@ -378,7 +380,7 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
378
380
|
.#{$prefix}--text-input--empty
|
|
379
381
|
+ .#{$prefix}--list-box__invalid-icon {
|
|
380
382
|
// to account for clear input button outline
|
|
381
|
-
|
|
383
|
+
inset-inline-end: convert.to-rem(40px);
|
|
382
384
|
}
|
|
383
385
|
|
|
384
386
|
// Label for a `list-box__field`
|
|
@@ -397,13 +399,13 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
397
399
|
@include button-reset.reset($width: false);
|
|
398
400
|
|
|
399
401
|
position: absolute;
|
|
400
|
-
right: $spacing-05;
|
|
401
402
|
display: flex;
|
|
402
|
-
width: convert.to-rem(24px);
|
|
403
|
-
height: convert.to-rem(24px);
|
|
404
403
|
align-items: center;
|
|
405
404
|
justify-content: center;
|
|
405
|
+
block-size: convert.to-rem(24px);
|
|
406
406
|
cursor: pointer;
|
|
407
|
+
inline-size: convert.to-rem(24px);
|
|
408
|
+
inset-inline-end: $spacing-05;
|
|
407
409
|
outline: none;
|
|
408
410
|
transition: transform $duration-fast-01 motion(standard, productive);
|
|
409
411
|
}
|
|
@@ -413,8 +415,8 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
413
415
|
}
|
|
414
416
|
|
|
415
417
|
.#{$prefix}--list-box__menu-icon--open {
|
|
416
|
-
width: convert.to-rem(24px);
|
|
417
418
|
justify-content: center;
|
|
419
|
+
inline-size: convert.to-rem(24px);
|
|
418
420
|
transform: rotate(180deg);
|
|
419
421
|
}
|
|
420
422
|
|
|
@@ -423,15 +425,15 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
423
425
|
@include button-reset.reset($width: false);
|
|
424
426
|
|
|
425
427
|
position: absolute;
|
|
426
|
-
top: 50%;
|
|
427
|
-
/* to preserve .5rem space between icons according to spec top/transform used to center the combobox clear selection icon in IE11 */
|
|
428
|
-
right: convert.to-rem(36px);
|
|
429
428
|
display: flex;
|
|
430
|
-
width: convert.to-rem(24px);
|
|
431
|
-
height: convert.to-rem(24px);
|
|
432
429
|
align-items: center;
|
|
433
430
|
justify-content: center;
|
|
431
|
+
block-size: convert.to-rem(24px);
|
|
434
432
|
cursor: pointer;
|
|
433
|
+
inline-size: convert.to-rem(24px);
|
|
434
|
+
inset-block-start: 50%;
|
|
435
|
+
/* to preserve .5rem space between icons according to spec top/transform used to center the combobox clear selection icon in IE11 */
|
|
436
|
+
inset-inline-end: convert.to-rem(36px);
|
|
435
437
|
transform: translateY(-50%);
|
|
436
438
|
transition: background-color $duration-fast-01 motion(standard, productive);
|
|
437
439
|
user-select: none;
|
|
@@ -458,29 +460,29 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
458
460
|
@include type-style('label-01');
|
|
459
461
|
|
|
460
462
|
position: static;
|
|
461
|
-
top: auto;
|
|
462
463
|
display: flex;
|
|
463
|
-
width: auto;
|
|
464
|
-
height: convert.to-rem(24px);
|
|
465
464
|
align-items: center;
|
|
466
465
|
justify-content: space-between;
|
|
467
466
|
padding: convert.to-rem(8px);
|
|
468
|
-
// Align with hover circle of X button
|
|
469
|
-
padding-right: convert.to-rem(2px);
|
|
470
|
-
margin-right: convert.to-rem(10px);
|
|
471
467
|
background-color: $background-inverse;
|
|
468
|
+
block-size: convert.to-rem(24px);
|
|
472
469
|
border-radius: convert.to-rem(12px);
|
|
473
470
|
color: $text-inverse;
|
|
471
|
+
inline-size: auto;
|
|
472
|
+
inset-block-start: auto;
|
|
474
473
|
line-height: 0;
|
|
474
|
+
margin-inline-end: convert.to-rem(10px);
|
|
475
|
+
// Align with hover circle of X button
|
|
476
|
+
padding-inline-end: convert.to-rem(2px);
|
|
475
477
|
transform: none;
|
|
476
478
|
}
|
|
477
479
|
|
|
478
480
|
.#{$prefix}--list-box__selection--multi > svg {
|
|
479
|
-
width: convert.to-rem(20px);
|
|
480
|
-
height: convert.to-rem(20px);
|
|
481
481
|
padding: convert.to-rem(2px);
|
|
482
|
-
|
|
482
|
+
block-size: convert.to-rem(20px);
|
|
483
483
|
fill: $icon-inverse;
|
|
484
|
+
inline-size: convert.to-rem(20px);
|
|
485
|
+
margin-inline-start: convert.to-rem(4px);
|
|
484
486
|
|
|
485
487
|
&:hover {
|
|
486
488
|
background-color: $button-secondary-hover;
|
|
@@ -510,11 +512,11 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
510
512
|
|
|
511
513
|
position: absolute;
|
|
512
514
|
z-index: z('dropdown');
|
|
513
|
-
right: 0;
|
|
514
|
-
left: 0;
|
|
515
515
|
display: none;
|
|
516
|
-
width: $list-box-width;
|
|
517
516
|
background-color: $layer;
|
|
517
|
+
inline-size: $list-box-width;
|
|
518
|
+
inset-inline-end: 0;
|
|
519
|
+
inset-inline-start: 0;
|
|
518
520
|
overflow-y: auto;
|
|
519
521
|
transition: max-height $duration-fast-02 motion(standard, productive);
|
|
520
522
|
|
|
@@ -527,7 +529,7 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
527
529
|
.#{$prefix}--list-box .#{$prefix}--list-box__field[aria-expanded='false'] {
|
|
528
530
|
.#{$prefix}--list-box__menu {
|
|
529
531
|
display: none;
|
|
530
|
-
max-
|
|
532
|
+
max-block-size: 0;
|
|
531
533
|
visibility: hidden;
|
|
532
534
|
}
|
|
533
535
|
}
|
|
@@ -535,19 +537,19 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
535
537
|
.#{$prefix}--list-box--expanded .#{$prefix}--list-box__menu {
|
|
536
538
|
display: block;
|
|
537
539
|
// 40px item height * 5.5 items shown
|
|
538
|
-
max-
|
|
540
|
+
max-block-size: convert.to-rem(220px);
|
|
539
541
|
}
|
|
540
542
|
|
|
541
543
|
.#{$prefix}--list-box--expanded.#{$prefix}--list-box--lg
|
|
542
544
|
.#{$prefix}--list-box__menu {
|
|
543
545
|
// 48px item height * 5.5 items shown
|
|
544
|
-
max-
|
|
546
|
+
max-block-size: convert.to-rem(264px);
|
|
545
547
|
}
|
|
546
548
|
|
|
547
549
|
.#{$prefix}--list-box--expanded.#{$prefix}--list-box--sm
|
|
548
550
|
.#{$prefix}--list-box__menu {
|
|
549
551
|
// 32px item height * 5.5 items shown
|
|
550
|
-
max-
|
|
552
|
+
max-block-size: convert.to-rem(176px);
|
|
551
553
|
}
|
|
552
554
|
|
|
553
555
|
// Descendant of a `list-box__menu` that represents a selection for a control
|
|
@@ -555,7 +557,7 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
555
557
|
@include type-style('body-compact-01');
|
|
556
558
|
|
|
557
559
|
position: relative;
|
|
558
|
-
|
|
560
|
+
block-size: convert.to-rem(40px);
|
|
559
561
|
color: $text-secondary;
|
|
560
562
|
cursor: pointer;
|
|
561
563
|
transition: background $duration-fast-01 motion(standard, productive);
|
|
@@ -576,11 +578,11 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
576
578
|
}
|
|
577
579
|
|
|
578
580
|
.#{$prefix}--list-box--sm .#{$prefix}--list-box__menu-item {
|
|
579
|
-
|
|
581
|
+
block-size: convert.to-rem(32px);
|
|
580
582
|
}
|
|
581
583
|
|
|
582
584
|
.#{$prefix}--list-box--lg .#{$prefix}--list-box__menu-item {
|
|
583
|
-
|
|
585
|
+
block-size: convert.to-rem(48px);
|
|
584
586
|
}
|
|
585
587
|
|
|
586
588
|
.#{$prefix}--list-box--disabled .#{$prefix}--list-box__menu-item:hover {
|
|
@@ -594,24 +596,24 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
594
596
|
|
|
595
597
|
.#{$prefix}--list-box--disabled
|
|
596
598
|
.#{$prefix}--list-box__menu-item__option:hover {
|
|
597
|
-
border-
|
|
599
|
+
border-block-start-color: $border-subtle-01;
|
|
598
600
|
}
|
|
599
601
|
|
|
600
602
|
.#{$prefix}--layer-two
|
|
601
603
|
.#{$prefix}--list-box--disabled
|
|
602
604
|
.#{$prefix}--list-box__menu-item__option:hover {
|
|
603
|
-
border-
|
|
605
|
+
border-block-start-color: $border-subtle-02;
|
|
604
606
|
}
|
|
605
607
|
|
|
606
608
|
.#{$prefix}--layer-three
|
|
607
609
|
.#{$prefix}--list-box--disabled
|
|
608
610
|
.#{$prefix}--list-box__menu-item__option:hover {
|
|
609
|
-
border-
|
|
611
|
+
border-block-start-color: $border-subtle-03;
|
|
610
612
|
}
|
|
611
613
|
|
|
612
614
|
.#{$prefix}--list-box__menu-item:first-of-type
|
|
613
615
|
.#{$prefix}--list-box__menu-item__option {
|
|
614
|
-
border-
|
|
616
|
+
border-block-start-color: transparent;
|
|
615
617
|
}
|
|
616
618
|
|
|
617
619
|
.#{$prefix}--list-box__menu-item:hover
|
|
@@ -623,7 +625,7 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
623
625
|
.#{$prefix}--list-box__menu-item:hover
|
|
624
626
|
+ .#{$prefix}--list-box__menu-item
|
|
625
627
|
.#{$prefix}--list-box__menu-item__option {
|
|
626
|
-
border-
|
|
628
|
+
border-block-start-color: $border-subtle-01;
|
|
627
629
|
}
|
|
628
630
|
|
|
629
631
|
.#{$prefix}--layer-two
|
|
@@ -631,7 +633,7 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
631
633
|
.#{$prefix}--list-box__menu-item:hover
|
|
632
634
|
+ .#{$prefix}--list-box__menu-item
|
|
633
635
|
.#{$prefix}--list-box__menu-item__option {
|
|
634
|
-
border-
|
|
636
|
+
border-block-start-color: $border-subtle-02;
|
|
635
637
|
}
|
|
636
638
|
|
|
637
639
|
.#{$prefix}--layer-three
|
|
@@ -639,15 +641,15 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
639
641
|
.#{$prefix}--list-box__menu-item:hover
|
|
640
642
|
+ .#{$prefix}--list-box__menu-item
|
|
641
643
|
.#{$prefix}--list-box__menu-item__option {
|
|
642
|
-
border-
|
|
644
|
+
border-block-start-color: $border-subtle-03;
|
|
643
645
|
}
|
|
644
646
|
|
|
645
647
|
.#{$prefix}--layer-two .#{$prefix}--list-box__menu-item__option {
|
|
646
|
-
border-
|
|
648
|
+
border-block-start-color: $border-subtle-02;
|
|
647
649
|
}
|
|
648
650
|
|
|
649
651
|
.#{$prefix}--layer-three .#{$prefix}--list-box__menu-item__option {
|
|
650
|
-
border-
|
|
652
|
+
border-block-start-color: $border-subtle-03;
|
|
651
653
|
}
|
|
652
654
|
|
|
653
655
|
.#{$prefix}--list-box__menu-item__option {
|
|
@@ -656,16 +658,16 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
656
658
|
|
|
657
659
|
display: block;
|
|
658
660
|
overflow: hidden;
|
|
659
|
-
height: convert.to-rem(40px);
|
|
660
661
|
padding: convert.to-rem(11px) 0;
|
|
661
|
-
padding-right: $spacing-06;
|
|
662
|
-
border-top: 1px solid transparent;
|
|
663
|
-
border-top-color: $border-subtle-01;
|
|
664
|
-
border-bottom: 1px solid transparent;
|
|
665
662
|
margin: 0 $spacing-05;
|
|
663
|
+
block-size: convert.to-rem(40px);
|
|
664
|
+
border-block-end: 1px solid transparent;
|
|
665
|
+
border-block-start: 1px solid transparent;
|
|
666
|
+
border-block-start-color: $border-subtle-01;
|
|
666
667
|
color: $text-secondary;
|
|
667
668
|
font-weight: normal;
|
|
668
669
|
line-height: 1rem;
|
|
670
|
+
padding-inline-end: $spacing-06;
|
|
669
671
|
text-decoration: none;
|
|
670
672
|
text-overflow: ellipsis;
|
|
671
673
|
transition: border-color $duration-fast-01 motion(standard, productive),
|
|
@@ -687,15 +689,15 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
687
689
|
}
|
|
688
690
|
|
|
689
691
|
.#{$prefix}--list-box--sm .#{$prefix}--list-box__menu-item__option {
|
|
690
|
-
|
|
691
|
-
padding-
|
|
692
|
-
padding-
|
|
692
|
+
block-size: convert.to-rem(32px);
|
|
693
|
+
padding-block-end: convert.to-rem(7px);
|
|
694
|
+
padding-block-start: convert.to-rem(7px);
|
|
693
695
|
}
|
|
694
696
|
|
|
695
697
|
.#{$prefix}--list-box--lg .#{$prefix}--list-box__menu-item__option {
|
|
696
|
-
|
|
697
|
-
padding-
|
|
698
|
-
padding-
|
|
698
|
+
block-size: convert.to-rem(48px);
|
|
699
|
+
padding-block-end: convert.to-rem(15px);
|
|
700
|
+
padding-block-start: convert.to-rem(15px);
|
|
699
701
|
}
|
|
700
702
|
|
|
701
703
|
.#{$prefix}--list-box--disabled
|
|
@@ -729,7 +731,7 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
729
731
|
.#{$prefix}--list-box__menu-item[disabled]:hover
|
|
730
732
|
+ .#{$prefix}--list-box__menu-item
|
|
731
733
|
.#{$prefix}--list-box__menu-item__option {
|
|
732
|
-
border-
|
|
734
|
+
border-block-start-color: $border-subtle-01;
|
|
733
735
|
}
|
|
734
736
|
|
|
735
737
|
.#{$prefix}--layer-two
|
|
@@ -739,7 +741,7 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
739
741
|
.#{$prefix}--list-box__menu-item[disabled]:hover
|
|
740
742
|
+ .#{$prefix}--list-box__menu-item
|
|
741
743
|
.#{$prefix}--list-box__menu-item__option {
|
|
742
|
-
border-
|
|
744
|
+
border-block-start-color: $border-subtle-02;
|
|
743
745
|
}
|
|
744
746
|
|
|
745
747
|
.#{$prefix}--layer-three
|
|
@@ -749,7 +751,7 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
749
751
|
.#{$prefix}--list-box__menu-item[disabled]:hover
|
|
750
752
|
+ .#{$prefix}--list-box__menu-item
|
|
751
753
|
.#{$prefix}--list-box__menu-item__option {
|
|
752
|
-
border-
|
|
754
|
+
border-block-start-color: $border-subtle-03;
|
|
753
755
|
}
|
|
754
756
|
|
|
755
757
|
.#{$prefix}--list-box__menu-item--active
|
|
@@ -758,7 +760,7 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
758
760
|
.#{$prefix}--list-box__menu-item:hover
|
|
759
761
|
+ .#{$prefix}--list-box__menu-item
|
|
760
762
|
.#{$prefix}--list-box__menu-item__option {
|
|
761
|
-
border-
|
|
763
|
+
border-block-start-color: transparent;
|
|
762
764
|
}
|
|
763
765
|
|
|
764
766
|
.#{$prefix}--list-box.#{$prefix}--list-box--inline
|
|
@@ -766,9 +768,9 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
766
768
|
margin: 0 $spacing-03;
|
|
767
769
|
|
|
768
770
|
&:focus {
|
|
769
|
-
padding-right: $spacing-03;
|
|
770
|
-
padding-left: $spacing-03;
|
|
771
771
|
margin: 0;
|
|
772
|
+
padding-inline-end: $spacing-03;
|
|
773
|
+
padding-inline-start: $spacing-03;
|
|
772
774
|
}
|
|
773
775
|
}
|
|
774
776
|
|
|
@@ -783,7 +785,7 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
783
785
|
.#{$prefix}--list-box__menu-item--highlighted
|
|
784
786
|
+ .#{$prefix}--list-box__menu-item
|
|
785
787
|
.#{$prefix}--list-box__menu-item__option {
|
|
786
|
-
border-
|
|
788
|
+
border-block-start-color: transparent;
|
|
787
789
|
}
|
|
788
790
|
|
|
789
791
|
.#{$prefix}--list-box__menu-item--highlighted
|
|
@@ -792,20 +794,20 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
792
794
|
}
|
|
793
795
|
|
|
794
796
|
.#{$prefix}--list-box__menu-item--active {
|
|
795
|
-
border-bottom-color: $layer-selected;
|
|
796
797
|
background-color: $layer-selected;
|
|
798
|
+
border-block-end-color: $layer-selected;
|
|
797
799
|
color: $text-primary;
|
|
798
800
|
}
|
|
799
801
|
|
|
800
802
|
// V11: Possibly deprecate
|
|
801
803
|
.#{$prefix}--list-box--light .#{$prefix}--list-box__menu-item--active {
|
|
802
|
-
border-bottom-color: $layer-selected;
|
|
803
804
|
background-color: $layer-selected;
|
|
805
|
+
border-block-end-color: $layer-selected;
|
|
804
806
|
}
|
|
805
807
|
|
|
806
808
|
.#{$prefix}--list-box__menu-item--active:hover {
|
|
807
|
-
border-bottom-color: $layer-selected-hover;
|
|
808
809
|
background-color: $layer-selected-hover;
|
|
810
|
+
border-block-end-color: $layer-selected-hover;
|
|
809
811
|
}
|
|
810
812
|
|
|
811
813
|
.#{$prefix}--list-box__menu-item--active
|
|
@@ -817,21 +819,21 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
817
819
|
.#{$prefix}--list-box__menu-item--active
|
|
818
820
|
+ .#{$prefix}--list-box__menu-item
|
|
819
821
|
> .#{$prefix}--list-box__menu-item__option {
|
|
820
|
-
border-
|
|
822
|
+
border-block-start-color: transparent;
|
|
821
823
|
}
|
|
822
824
|
|
|
823
825
|
.#{$prefix}--list-box__menu-item__selected-icon {
|
|
824
826
|
position: absolute;
|
|
825
|
-
top: 50%;
|
|
826
|
-
right: convert.to-rem(16px);
|
|
827
827
|
display: none;
|
|
828
828
|
fill: $icon-primary;
|
|
829
|
+
inset-block-start: 50%;
|
|
830
|
+
inset-inline-end: convert.to-rem(16px);
|
|
829
831
|
transform: translateY(-50%);
|
|
830
832
|
}
|
|
831
833
|
|
|
832
834
|
.#{$prefix}--list-box--inline
|
|
833
835
|
.#{$prefix}--list-box__menu-item__selected-icon {
|
|
834
|
-
|
|
836
|
+
inset-inline-end: convert.to-rem(8px);
|
|
835
837
|
}
|
|
836
838
|
|
|
837
839
|
.#{$prefix}--list-box__menu-item--active
|
|
@@ -840,7 +842,7 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
840
842
|
}
|
|
841
843
|
|
|
842
844
|
.#{$prefix}--list-box__menu-item .#{$prefix}--checkbox-label {
|
|
843
|
-
|
|
845
|
+
inline-size: 100%;
|
|
844
846
|
}
|
|
845
847
|
|
|
846
848
|
.#{$prefix}--list-box__menu-item .#{$prefix}--checkbox-label-text {
|
|
@@ -851,7 +853,7 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
851
853
|
|
|
852
854
|
// Dropdown top orientation modifiers
|
|
853
855
|
.#{$prefix}--list-box--up .#{$prefix}--list-box__menu {
|
|
854
|
-
|
|
856
|
+
inset-block-end: 2.5rem;
|
|
855
857
|
}
|
|
856
858
|
|
|
857
859
|
.#{$prefix}--list-box--up.#{$prefix}--dropdown--sm
|
|
@@ -861,7 +863,7 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
861
863
|
.#{$prefix}--list-box--up
|
|
862
864
|
.#{$prefix}--list-box--sm
|
|
863
865
|
.#{$prefix}--list-box__menu {
|
|
864
|
-
|
|
866
|
+
inset-block-end: 2rem;
|
|
865
867
|
}
|
|
866
868
|
|
|
867
869
|
.#{$prefix}--list-box--up.#{$prefix}--dropdown--lg
|
|
@@ -871,7 +873,7 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
871
873
|
.#{$prefix}--list-box--up
|
|
872
874
|
.#{$prefix}--list-box--lg
|
|
873
875
|
.#{$prefix}--list-box__menu {
|
|
874
|
-
|
|
876
|
+
inset-block-end: 3rem;
|
|
875
877
|
}
|
|
876
878
|
|
|
877
879
|
// Tweaks for descendants
|
|
@@ -881,8 +883,8 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
881
883
|
// TODO: remove [role='combobox'] in v11
|
|
882
884
|
.#{$prefix}--list-box input[role='combobox'],
|
|
883
885
|
.#{$prefix}--list-box input[type='text'] {
|
|
884
|
-
min-width: 0;
|
|
885
886
|
background-color: inherit;
|
|
887
|
+
min-inline-size: 0;
|
|
886
888
|
text-overflow: ellipsis;
|
|
887
889
|
}
|
|
888
890
|
|