@slotted/styles 0.1.0-beta.3 → 0.1.0-beta.31
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 +13 -1
- package/src/accordion/accordion.css +11 -11
- package/src/action-bar/action-bar.css +47 -44
- package/src/action-bar/action-bar.tokens.json +1 -0
- package/src/action-sheet/action-sheet.css +39 -39
- package/src/alert/alert.css +97 -97
- package/src/alert/alert.tokens.json +6 -1
- package/src/app-shell/app-shell.css +456 -329
- package/src/app-shell/app-shell.tokens.json +6 -3
- package/src/aspect-ratio/aspect-ratio.css +9 -9
- package/src/attachment/attachment.css +118 -114
- package/src/avatar/avatar.css +96 -66
- package/src/avatar/avatar.tokens.json +7 -0
- package/src/avatar-group/avatar-group.css +22 -23
- package/src/badge/badge.css +54 -46
- package/src/badge/badge.tokens.json +5 -0
- package/src/breadcrumb/breadcrumb.css +52 -52
- package/src/button/button.css +137 -89
- package/src/button/button.tokens.json +5 -0
- package/src/button-group/button-group.css +80 -79
- package/src/button-group/button-group.tokens.json +1 -0
- package/src/calendar/calendar.css +139 -109
- package/src/calendar/calendar.tokens.json +5 -1
- package/src/card/card.css +70 -67
- package/src/card/card.tokens.json +1 -0
- package/src/carousel/carousel.css +158 -169
- package/src/cascader/cascader.css +161 -159
- package/src/cascader/cascader.tokens.json +2 -0
- package/src/chart/chart.css +288 -267
- package/src/chart/chart.tokens.json +4 -0
- package/src/checkbox/checkbox.css +143 -148
- package/src/checkbox-group/checkbox-group.css +7 -7
- package/src/code-block/code-block.css +85 -89
- package/src/collapsible/collapsible.css +81 -80
- package/src/collapsible/collapsible.tokens.json +1 -0
- package/src/color-picker/color-picker.css +106 -114
- package/src/column-manager/column-manager.css +111 -119
- package/src/combobox/combobox.css +206 -132
- package/src/combobox/combobox.tokens.json +4 -0
- package/src/command-palette/command-palette.css +155 -102
- package/src/command-palette/command-palette.tokens.json +2 -0
- package/src/container/container.css +27 -27
- package/src/context-menu/context-menu.css +9 -9
- package/src/currency-field/currency-field.css +119 -119
- package/src/currency-field/currency-field.tokens.json +1 -0
- package/src/dashboard-grid/dashboard-grid.css +204 -115
- package/src/data-grid/data-grid.css +598 -496
- package/src/data-grid/data-grid.tokens.json +5 -1
- package/src/data-list/data-list.css +82 -71
- package/src/data-list/data-list.tokens.json +2 -1
- package/src/date-field/date-field.css +62 -57
- package/src/date-field/date-field.tokens.json +1 -0
- package/src/date-picker/date-picker.css +117 -58
- package/src/date-picker/date-picker.tokens.json +5 -0
- package/src/date-range-picker/date-range-picker.css +157 -127
- package/src/date-range-picker/date-range-picker.tokens.json +4 -0
- package/src/datetime-field/datetime-field.css +90 -90
- package/src/datetime-field/datetime-field.tokens.json +1 -0
- package/src/datetime-picker/datetime-picker.css +123 -70
- package/src/datetime-picker/datetime-picker.tokens.json +4 -1
- package/src/datetime-range-picker/datetime-range-picker.css +191 -163
- package/src/datetime-range-picker/datetime-range-picker.tokens.json +4 -0
- package/src/description-list/description-list.css +105 -75
- package/src/description-list/description-list.tokens.json +1 -0
- package/src/detail-panel/detail-panel.css +86 -71
- package/src/detail-panel/detail-panel.tokens.json +2 -0
- package/src/dialog/dialog.css +435 -199
- package/src/dialog/dialog.tokens.json +9 -0
- package/src/divider/divider.css +20 -20
- package/src/drawer/drawer.css +598 -237
- package/src/drawer/drawer.tokens.json +14 -0
- package/src/entity-picker/entity-picker.css +326 -272
- package/src/entity-picker/entity-picker.tokens.json +4 -0
- package/src/event-calendar/event-calendar.css +357 -399
- package/src/field/field.css +106 -93
- package/src/field/field.tokens.json +2 -0
- package/src/field-group/field-group.css +43 -33
- package/src/field-group/field-group.tokens.json +3 -0
- package/src/filter-bar/filter-bar.css +200 -216
- package/src/form/form.css +100 -26
- package/src/form/form.tokens.json +6 -1
- package/src/fullscreen/fullscreen.css +26 -27
- package/src/grid/grid.css +29 -29
- package/src/highlight/highlight.css +11 -11
- package/src/hover-card/hover-card.css +9 -9
- package/src/icon/icon.css +67 -20
- package/src/icon/icon.tokens.json +1 -0
- package/src/image/image.css +42 -42
- package/src/import-export-center/import-export-center.css +147 -168
- package/src/import-export-center/import-export-center.tokens.json +1 -0
- package/src/inline/inline.css +28 -28
- package/src/inline-message/inline-message.css +162 -86
- package/src/inline-message/inline-message.tokens.json +4 -0
- package/src/kbd/kbd.css +62 -50
- package/src/kbd/kbd.tokens.json +3 -0
- package/src/link/link.css +54 -33
- package/src/link/link.tokens.json +4 -0
- package/src/list/list.css +23 -23
- package/src/list-item/list-item.css +89 -75
- package/src/list-item/list-item.tokens.json +7 -0
- package/src/listbox/listbox.css +71 -70
- package/src/listbox/listbox.tokens.json +0 -1
- package/src/loading-overlay/loading-overlay.css +86 -103
- package/src/markdown/markdown.css +20 -20
- package/src/media-viewer/media-viewer.css +790 -0
- package/src/media-viewer/media-viewer.tokens.json +53 -0
- package/src/menu/menu.css +166 -83
- package/src/menu/menu.tokens.json +3 -1
- package/src/menubar/menubar.css +16 -16
- package/src/message/message.css +1253 -1246
- package/src/message/message.tokens.json +5 -0
- package/src/message-scroller/message-scroller.css +323 -320
- package/src/multi-select/multi-select.css +233 -174
- package/src/multi-select/multi-select.tokens.json +3 -0
- package/src/navigation-menu/navigation-menu.css +170 -191
- package/src/navigation-menu/navigation-menu.tokens.json +1 -0
- package/src/notification-center/notification-center.css +155 -163
- package/src/notification-center/notification-center.tokens.json +4 -0
- package/src/number-field/number-field.css +93 -93
- package/src/number-field/number-field.tokens.json +1 -0
- package/src/otp-input/otp-input.css +74 -64
- package/src/otp-input/otp-input.tokens.json +1 -0
- package/src/page/page.css +41 -27
- package/src/page/page.tokens.json +1 -0
- package/src/page-header/page-header.css +342 -287
- package/src/page-header/page-header.tokens.json +6 -1
- package/src/pagination/pagination.css +75 -79
- package/src/popover/popover.css +85 -65
- package/src/popover/popover.tokens.json +2 -0
- package/src/progress-indicator/progress-indicator.css +192 -136
- package/src/progress-indicator/progress-indicator.tokens.json +1 -0
- package/src/prompt-composer/prompt-composer.css +260 -113
- package/src/prompt-composer/prompt-composer.tokens.json +15 -0
- package/src/prose/prose.css +77 -82
- package/src/radio-group/radio-group.css +107 -112
- package/src/rating/rating.css +146 -142
- package/src/rating/rating.tokens.json +1 -0
- package/src/result-state/result-state.css +95 -102
- package/src/result-state/result-state.tokens.json +1 -0
- package/src/runtime-properties.mjs +19 -6
- package/src/saved-views/saved-views.css +43 -49
- package/src/scroll-area/scroll-area.css +50 -37
- package/src/section/section.css +179 -44
- package/src/section/section.tokens.json +9 -3
- package/src/segmented-control/segmented-control.css +210 -133
- package/src/segmented-control/segmented-control.tokens.json +7 -11
- package/src/select/select.css +213 -149
- package/src/select/select.tokens.json +4 -0
- package/src/side-navigation/side-navigation.css +201 -198
- package/src/side-navigation/side-navigation.tokens.json +1 -0
- package/src/skeleton/skeleton.css +57 -58
- package/src/slider/slider.css +101 -103
- package/src/sparkline/sparkline.css +75 -53
- package/src/sparkline/sparkline.tokens.json +2 -0
- package/src/spinner/spinner.css +83 -180
- package/src/spinner/spinner.tokens.json +0 -1
- package/src/split-button/split-button.css +34 -35
- package/src/split-button/split-button.tokens.json +1 -0
- package/src/splitter/splitter.css +47 -48
- package/src/stack/stack.css +25 -25
- package/src/stat-card/stat-card.css +415 -245
- package/src/stat-card/stat-card.tokens.json +8 -0
- package/src/status-indicator/status-indicator.css +124 -100
- package/src/status-indicator/status-indicator.tokens.json +0 -3
- package/src/stepper/stepper.css +78 -82
- package/src/switch/switch.css +100 -106
- package/src/table/table.css +270 -198
- package/src/table/table.tokens.json +2 -0
- package/src/table-of-contents/table-of-contents.css +60 -59
- package/src/table-of-contents/table-of-contents.tokens.json +1 -0
- package/src/tabs/tabs.css +327 -294
- package/src/tabs/tabs.tokens.json +7 -1
- package/src/tag/tag.css +109 -88
- package/src/tag/tag.tokens.json +10 -0
- package/src/tags-input/tags-input.css +152 -87
- package/src/tags-input/tags-input.tokens.json +7 -1
- package/src/text-field/text-field.css +146 -148
- package/src/text-field/text-field.tokens.json +1 -0
- package/src/textarea/textarea.css +38 -33
- package/src/textarea/textarea.tokens.json +1 -0
- package/src/time-field/time-field.css +82 -77
- package/src/time-field/time-field.tokens.json +1 -0
- package/src/time-picker/time-picker.css +116 -64
- package/src/time-picker/time-picker.tokens.json +4 -1
- package/src/time-range-picker/time-range-picker.css +168 -140
- package/src/time-range-picker/time-range-picker.tokens.json +4 -0
- package/src/timeline/timeline.css +280 -292
- package/src/timeline/timeline.tokens.json +5 -0
- package/src/toast/toast.css +139 -122
- package/src/toast/toast.tokens.json +7 -0
- package/src/toggle/toggle.css +34 -38
- package/src/toggle-group/toggle-group.css +73 -77
- package/src/toolbar/toolbar.css +33 -38
- package/src/tooltip/tooltip.css +65 -39
- package/src/tooltip/tooltip.tokens.json +1 -0
- package/src/top-navigation/top-navigation.css +252 -268
- package/src/tour/tour.css +68 -74
- package/src/tour/tour.tokens.json +1 -0
- package/src/transfer/transfer.css +164 -168
- package/src/tree/tree.css +113 -121
- package/src/typography/typography.css +42 -38
- package/src/typography/typography.tokens.json +1 -0
- package/src/upload/upload.css +256 -257
- package/src/visually-hidden/visually-hidden.css +1 -1
- package/src/wizard/wizard.css +187 -199
package/src/select/select.css
CHANGED
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
|
|
75
75
|
/* ── The control ──────────────────────────────────────────────────────── */
|
|
76
76
|
|
|
77
|
-
[data-ui
|
|
77
|
+
[data-ui-select][data-part-root] {
|
|
78
78
|
/**
|
|
79
79
|
* Type, height, inline padding, gap and glyph size come from the control
|
|
80
80
|
* scales — the only ones the theme restates per density — so a select in a
|
|
@@ -125,6 +125,8 @@
|
|
|
125
125
|
font-family: var(--slotted-control-font-family, system-ui, sans-serif);
|
|
126
126
|
font-size: var(--_font-size);
|
|
127
127
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
128
|
+
/* In a flex row the item's basis is its content, not the whole row. */
|
|
129
|
+
flex-basis: content;
|
|
128
130
|
inline-size: 100%;
|
|
129
131
|
/* A control in a grid track narrower than its intrinsic width would
|
|
130
132
|
otherwise refuse to shrink and take the row's edge with it. */
|
|
@@ -144,7 +146,7 @@
|
|
|
144
146
|
}
|
|
145
147
|
|
|
146
148
|
/* And the clear button's own lane, before the chevron's, when there is one. */
|
|
147
|
-
[data-ui
|
|
149
|
+
[data-ui-select][data-part-root]:has(> [data-part-clear]) {
|
|
148
150
|
grid-template-columns: minmax(0, 1fr) auto auto;
|
|
149
151
|
}
|
|
150
152
|
|
|
@@ -153,7 +155,7 @@
|
|
|
153
155
|
* value, which is what a filter beside a table needs and what a field never
|
|
154
156
|
* does — hence the default the contract states, `fullWidth: true`.
|
|
155
157
|
*/
|
|
156
|
-
[data-ui
|
|
158
|
+
[data-ui-select][data-part-root]:not([data-full-width]) {
|
|
157
159
|
inline-size: auto;
|
|
158
160
|
}
|
|
159
161
|
|
|
@@ -177,7 +179,7 @@
|
|
|
177
179
|
* the chevron still lands on the button that opens the popup — which is why
|
|
178
180
|
* the chevron can be inert and the arrangement costs nothing.
|
|
179
181
|
*/
|
|
180
|
-
[data-ui
|
|
182
|
+
[data-ui-select] > [data-part-trigger] {
|
|
181
183
|
align-items: center;
|
|
182
184
|
appearance: none;
|
|
183
185
|
background-color: transparent;
|
|
@@ -218,7 +220,7 @@
|
|
|
218
220
|
}
|
|
219
221
|
|
|
220
222
|
/* And the clear button's own box, plus a second gap, when there is one. */
|
|
221
|
-
[data-ui
|
|
223
|
+
[data-ui-select][data-part-root]:has(> [data-part-clear]) > [data-part-trigger] {
|
|
222
224
|
padding-inline-end: calc(
|
|
223
225
|
var(--_padding-inline) + var(--_icon-size) + var(--_gap) + var(--_action-size) + var(--_gap)
|
|
224
226
|
);
|
|
@@ -229,7 +231,7 @@
|
|
|
229
231
|
* control's height as the reader chose, and a form that reflows on selection
|
|
230
232
|
* is a form that moves under the pointer.
|
|
231
233
|
*/
|
|
232
|
-
[data-ui
|
|
234
|
+
[data-ui-select] [data-part-value] {
|
|
233
235
|
flex: 1 1 auto;
|
|
234
236
|
min-inline-size: 0;
|
|
235
237
|
overflow: hidden;
|
|
@@ -241,7 +243,7 @@
|
|
|
241
243
|
* Nothing chosen yet. The same weight the reader will see once they choose,
|
|
242
244
|
* one step quieter, so the control does not change shape when it fills.
|
|
243
245
|
*/
|
|
244
|
-
[data-ui
|
|
246
|
+
[data-ui-select] [data-part-value][data-placeholder] {
|
|
245
247
|
color: var(--slotted-select-placeholder-color, var(--slotted-text-muted, GrayText));
|
|
246
248
|
}
|
|
247
249
|
|
|
@@ -252,7 +254,7 @@
|
|
|
252
254
|
* the same face and marked as unresolved for a stylesheet that wants to say
|
|
253
255
|
* more.
|
|
254
256
|
*/
|
|
255
|
-
[data-ui
|
|
257
|
+
[data-ui-select] [data-part-value][data-unmatched] {
|
|
256
258
|
font-variant-numeric: tabular-nums;
|
|
257
259
|
}
|
|
258
260
|
|
|
@@ -280,7 +282,7 @@
|
|
|
280
282
|
* trigger spanning underneath, so the frame still opens the popup everywhere
|
|
281
283
|
* a chip is not.
|
|
282
284
|
*/
|
|
283
|
-
[data-ui
|
|
285
|
+
[data-ui-select][data-part-root] > [data-part-tags] {
|
|
284
286
|
align-items: center;
|
|
285
287
|
display: flex;
|
|
286
288
|
gap: var(--slotted-space-2, 0.25rem);
|
|
@@ -293,7 +295,7 @@
|
|
|
293
295
|
* the rest of its own target from a transparent halo that stands outside
|
|
294
296
|
* the chip (TG2), and the clip below would otherwise cut that halo off at
|
|
295
297
|
* the chip's edge — the press area measured 24 × 22.8 inside the trigger
|
|
296
|
-
* and 24 × 24 everywhere else. The chips stay
|
|
298
|
+
* and 24 × 24 everywhere else. The chips stay centerd in it. It is never
|
|
297
299
|
* taller than the control's own inner box, so the height of the frame is
|
|
298
300
|
* the height of a select that chose one thing.
|
|
299
301
|
*/
|
|
@@ -308,7 +310,7 @@
|
|
|
308
310
|
pointer-events: none;
|
|
309
311
|
}
|
|
310
312
|
|
|
311
|
-
[data-ui
|
|
313
|
+
[data-ui-select] > [data-part-tags] > * {
|
|
312
314
|
/* Each chip takes its own presses back, and stands above the trigger that
|
|
313
315
|
spans the lane underneath it. */
|
|
314
316
|
pointer-events: auto;
|
|
@@ -321,7 +323,7 @@
|
|
|
321
323
|
* to be a count, and `createCollapse` can measure it the way it measures
|
|
322
324
|
* every other unit.
|
|
323
325
|
*/
|
|
324
|
-
[data-ui
|
|
326
|
+
[data-ui-select] > [data-part-tags] > [data-overflow] {
|
|
325
327
|
flex: none;
|
|
326
328
|
}
|
|
327
329
|
|
|
@@ -332,7 +334,7 @@
|
|
|
332
334
|
* shown: a button whose accessible name disappeared when the frame grew is a
|
|
333
335
|
* button that changes what it is called when the window is resized.
|
|
334
336
|
*/
|
|
335
|
-
[data-ui
|
|
337
|
+
[data-ui-select] [data-part-summary] {
|
|
336
338
|
display: block;
|
|
337
339
|
overflow: hidden;
|
|
338
340
|
text-overflow: ellipsis;
|
|
@@ -343,7 +345,7 @@
|
|
|
343
345
|
white-space: nowrap;
|
|
344
346
|
}
|
|
345
347
|
|
|
346
|
-
[data-ui
|
|
348
|
+
[data-ui-select][data-part-root]:not([data-narrow]) [data-part-summary] {
|
|
347
349
|
block-size: 1px;
|
|
348
350
|
clip-path: inset(50%);
|
|
349
351
|
inline-size: 1px;
|
|
@@ -351,7 +353,7 @@
|
|
|
351
353
|
white-space: nowrap;
|
|
352
354
|
}
|
|
353
355
|
|
|
354
|
-
[data-ui
|
|
356
|
+
[data-ui-select][data-part-root][data-narrow] > [data-part-tags] {
|
|
355
357
|
display: none;
|
|
356
358
|
}
|
|
357
359
|
|
|
@@ -361,7 +363,7 @@
|
|
|
361
363
|
* the popup opens: the one movement in the control, and the only thing on the
|
|
362
364
|
* closed control that says it opens at all.
|
|
363
365
|
*/
|
|
364
|
-
[data-ui
|
|
366
|
+
[data-ui-select] > [data-part-arrow] {
|
|
365
367
|
--slotted-icon-size: var(--_icon-size);
|
|
366
368
|
|
|
367
369
|
align-items: center;
|
|
@@ -378,12 +380,12 @@
|
|
|
378
380
|
pointer-events: none;
|
|
379
381
|
}
|
|
380
382
|
|
|
381
|
-
[data-ui
|
|
383
|
+
[data-ui-select] > [data-part-arrow] > [data-ui-icon] {
|
|
382
384
|
transition: rotate var(--slotted-control-transition-duration)
|
|
383
385
|
var(--slotted-control-transition-easing);
|
|
384
386
|
}
|
|
385
387
|
|
|
386
|
-
[data-ui
|
|
388
|
+
[data-ui-select][data-open] > [data-part-arrow] > [data-ui-icon] {
|
|
387
389
|
rotate: 180deg;
|
|
388
390
|
}
|
|
389
391
|
|
|
@@ -398,7 +400,7 @@
|
|
|
398
400
|
* All this rule does is stand it where the chevron stood and give it the
|
|
399
401
|
* chevron's size and ink, through the size token the shared sheet reads.
|
|
400
402
|
*/
|
|
401
|
-
[data-ui
|
|
403
|
+
[data-ui-select] > [data-part-busy] {
|
|
402
404
|
--slotted-spinner-size: var(--_icon-size);
|
|
403
405
|
|
|
404
406
|
color: var(--slotted-select-arrow-color, var(--slotted-text-muted, GrayText));
|
|
@@ -417,7 +419,7 @@
|
|
|
417
419
|
* *glyph* keeps the rhythm the value begins with. `text-field`'s arithmetic,
|
|
418
420
|
* stated in the terms a track states it.
|
|
419
421
|
*/
|
|
420
|
-
[data-ui
|
|
422
|
+
[data-ui-select] > [data-part-clear] {
|
|
421
423
|
align-items: center;
|
|
422
424
|
appearance: none;
|
|
423
425
|
background-color: transparent;
|
|
@@ -451,7 +453,7 @@
|
|
|
451
453
|
* it can also be 24. This grows the target back in both axes and leaves a
|
|
452
454
|
* larger one alone.
|
|
453
455
|
*/
|
|
454
|
-
[data-ui
|
|
456
|
+
[data-ui-select] > [data-part-clear]::after {
|
|
455
457
|
content: '';
|
|
456
458
|
inset: min(0px, calc((100% - var(--slotted-target-min, 24px)) / 2));
|
|
457
459
|
position: absolute;
|
|
@@ -462,14 +464,14 @@
|
|
|
462
464
|
the hit area above grows to 44 pixels around them. It does not reach into
|
|
463
465
|
the chevron's lane after it, which is the trigger's to answer. */
|
|
464
466
|
@media (pointer: coarse) {
|
|
465
|
-
[data-ui
|
|
467
|
+
[data-ui-select] > [data-part-clear]::after {
|
|
466
468
|
inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
|
|
467
469
|
inset-inline-end: 0;
|
|
468
470
|
}
|
|
469
471
|
}
|
|
470
472
|
|
|
471
473
|
/* The cross is a `Glyph` the binding draws, at the chevron's size. */
|
|
472
|
-
[data-ui
|
|
474
|
+
[data-ui-select] > [data-part-clear] {
|
|
473
475
|
--slotted-icon-size: var(--_icon-size);
|
|
474
476
|
}
|
|
475
477
|
|
|
@@ -481,7 +483,7 @@
|
|
|
481
483
|
* and a control disagreeing about one row.
|
|
482
484
|
*/
|
|
483
485
|
|
|
484
|
-
[data-ui
|
|
486
|
+
[data-ui-select][data-part-root][data-size='sm'] {
|
|
485
487
|
--_font-size: var(--slotted-control-font-size-sm, 12px);
|
|
486
488
|
--_height: var(--slotted-control-height-sm, 30px);
|
|
487
489
|
--_padding-inline: var(--slotted-control-padding-inline-sm, 10px);
|
|
@@ -490,7 +492,7 @@
|
|
|
490
492
|
--_inner-size: var(--slotted-control-inner-size-sm, 22px);
|
|
491
493
|
}
|
|
492
494
|
|
|
493
|
-
[data-ui
|
|
495
|
+
[data-ui-select][data-part-root][data-size='md'] {
|
|
494
496
|
--_font-size: var(--slotted-control-font-size-md, 13px);
|
|
495
497
|
--_height: var(--slotted-control-height-md, 34px);
|
|
496
498
|
--_padding-inline: var(--slotted-control-padding-inline-md, 13px);
|
|
@@ -499,7 +501,7 @@
|
|
|
499
501
|
--_inner-size: var(--slotted-control-inner-size-md, 24px);
|
|
500
502
|
}
|
|
501
503
|
|
|
502
|
-
[data-ui
|
|
504
|
+
[data-ui-select][data-part-root][data-size='lg'] {
|
|
503
505
|
--_font-size: var(--slotted-control-font-size-lg, 14px);
|
|
504
506
|
--_height: var(--slotted-control-height-lg, 38px);
|
|
505
507
|
--_padding-inline: var(--slotted-control-padding-inline-lg, 16px);
|
|
@@ -517,7 +519,7 @@
|
|
|
517
519
|
* does not reflow when the pointer crosses it.
|
|
518
520
|
*/
|
|
519
521
|
|
|
520
|
-
[data-ui
|
|
522
|
+
[data-ui-select][data-part-root][data-variant='subtle'] {
|
|
521
523
|
background-color: var(
|
|
522
524
|
--slotted-select-subtle-background,
|
|
523
525
|
var(--slotted-surface-sunken, Canvas)
|
|
@@ -531,7 +533,7 @@
|
|
|
531
533
|
/* No edge, no lift, no ground and no corner of its own: the cell it sits in
|
|
532
534
|
is the box, the row is the ground, a cell has no corner, and the resting
|
|
533
535
|
shadow would draw the cell where there is none. */
|
|
534
|
-
[data-ui
|
|
536
|
+
[data-ui-select][data-part-root][data-variant='plain'] {
|
|
535
537
|
background-color: transparent;
|
|
536
538
|
border-color: transparent;
|
|
537
539
|
border-radius: var(--slotted-radius-none, 0px);
|
|
@@ -540,11 +542,11 @@
|
|
|
540
542
|
|
|
541
543
|
/**
|
|
542
544
|
* The one rule the theme cannot write for the family. A transparent border
|
|
543
|
-
* has no system
|
|
545
|
+
* has no system color to be remapped to, so the `plain` control would lose
|
|
544
546
|
* its only edge exactly where an edge matters most.
|
|
545
547
|
*/
|
|
546
548
|
@media (forced-colors: active) {
|
|
547
|
-
[data-ui
|
|
549
|
+
[data-ui-select][data-part-root][data-variant='plain'] {
|
|
548
550
|
border-color: ButtonBorder;
|
|
549
551
|
}
|
|
550
552
|
}
|
|
@@ -555,13 +557,13 @@
|
|
|
555
557
|
* it can meet, which is the order `STATE_PRECEDENCE` sets.
|
|
556
558
|
*/
|
|
557
559
|
|
|
558
|
-
[data-ui
|
|
560
|
+
[data-ui-select][data-part-root]:hover:not([data-disabled]):not([data-readonly]):not(
|
|
559
561
|
[data-invalid]
|
|
560
562
|
) {
|
|
561
563
|
border-color: var(--slotted-select-hover-border-color, var(--slotted-tone-accent-border));
|
|
562
564
|
}
|
|
563
565
|
|
|
564
|
-
[data-ui
|
|
566
|
+
[data-ui-select][data-part-root][data-variant='subtle']:hover:not([data-disabled]):not(
|
|
565
567
|
[data-readonly]
|
|
566
568
|
):not([data-invalid]) {
|
|
567
569
|
background-color: var(
|
|
@@ -570,7 +572,7 @@
|
|
|
570
572
|
);
|
|
571
573
|
}
|
|
572
574
|
|
|
573
|
-
[data-ui
|
|
575
|
+
[data-ui-select][data-part-root][data-variant='plain']:hover:not([data-disabled]):not(
|
|
574
576
|
[data-readonly]
|
|
575
577
|
):not([data-invalid]) {
|
|
576
578
|
background-color: var(
|
|
@@ -587,13 +589,13 @@
|
|
|
587
589
|
* press, which is exactly right here: a reader who pressed the control can
|
|
588
590
|
* see where they pressed, and the popup is already open under it.
|
|
589
591
|
*/
|
|
590
|
-
[data-ui
|
|
591
|
-
/* The resting shadow,
|
|
592
|
-
ink is the ring's, so the lift and the outline are one
|
|
592
|
+
[data-ui-select][data-part-root]:has(> [data-part-trigger]:focus-visible) {
|
|
593
|
+
/* The resting shadow, recolored: the geometry is the foundation's and the
|
|
594
|
+
ink is the ring's, so the lift and the outline are one color. */
|
|
593
595
|
box-shadow: var(--slotted-control-shadow-focus-geometry, 0 1px 4px -1px)
|
|
594
596
|
var(--slotted-focus-ring-color, Highlight);
|
|
595
597
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
596
|
-
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
598
|
+
outline-offset: var(--slotted-control-focus-ring-offset, var(--slotted-focus-ring-offset, 2px));
|
|
597
599
|
}
|
|
598
600
|
|
|
599
601
|
/**
|
|
@@ -603,9 +605,7 @@
|
|
|
603
605
|
* shadow that appears only under focus is a cell that changes size when it
|
|
604
606
|
* is used.
|
|
605
607
|
*/
|
|
606
|
-
[data-ui
|
|
607
|
-
> [data-part='trigger']:focus-visible
|
|
608
|
-
) {
|
|
608
|
+
[data-ui-select][data-part-root][data-variant='plain']:has(> [data-part-trigger]:focus-visible) {
|
|
609
609
|
box-shadow: none;
|
|
610
610
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
611
611
|
}
|
|
@@ -615,7 +615,7 @@
|
|
|
615
615
|
* it. A popup hanging off a control with a resting border reads as two
|
|
616
616
|
* elements that happen to be adjacent.
|
|
617
617
|
*/
|
|
618
|
-
[data-ui
|
|
618
|
+
[data-ui-select][data-part-root][data-open]:not([data-disabled]) {
|
|
619
619
|
border-color: var(--slotted-select-open-border-color, var(--slotted-tone-accent-border));
|
|
620
620
|
}
|
|
621
621
|
|
|
@@ -624,9 +624,9 @@
|
|
|
624
624
|
* reporting an error should not stop looking wrong because it was opened.
|
|
625
625
|
* The ring is retargeted rather than repainted — every rule that draws focus
|
|
626
626
|
* reads `--slotted-focus-ring-color`, so pointing that one name at the
|
|
627
|
-
* invalid
|
|
627
|
+
* invalid color moves the outline and the shadow together.
|
|
628
628
|
*/
|
|
629
|
-
[data-ui
|
|
629
|
+
[data-ui-select][data-part-root][data-invalid] {
|
|
630
630
|
--slotted-focus-ring-color: var(
|
|
631
631
|
--slotted-select-invalid-focus-ring-color,
|
|
632
632
|
var(--slotted-focus-ring-color-invalid, Highlight)
|
|
@@ -643,7 +643,7 @@
|
|
|
643
643
|
|
|
644
644
|
border-color: var(--slotted-select-invalid-border-color, var(--slotted-tone-danger-border));
|
|
645
645
|
/*
|
|
646
|
-
* Width as well as
|
|
646
|
+
* Width as well as color (WCAG 1.4.1), the edge `text-field` draws: in
|
|
647
647
|
* `high-contrast` the danger border is the resting edge's black. The line
|
|
648
648
|
* is a shadow inside the border, so neither box nor text moves, and it
|
|
649
649
|
* takes the resting lift's place.
|
|
@@ -651,15 +651,15 @@
|
|
|
651
651
|
box-shadow: var(--_invalid-edge);
|
|
652
652
|
}
|
|
653
653
|
|
|
654
|
-
[data-ui
|
|
654
|
+
[data-ui-select][data-part-root][data-invalid]:has(> [data-part-trigger]:focus-visible) {
|
|
655
655
|
box-shadow:
|
|
656
656
|
var(--_invalid-edge),
|
|
657
657
|
var(--slotted-control-shadow-focus-geometry, 0 1px 4px -1px)
|
|
658
658
|
var(--slotted-focus-ring-color, Highlight);
|
|
659
659
|
}
|
|
660
660
|
|
|
661
|
-
[data-ui
|
|
662
|
-
> [data-part
|
|
661
|
+
[data-ui-select][data-part-root][data-variant='plain'][data-invalid]:has(
|
|
662
|
+
> [data-part-trigger]:focus-visible
|
|
663
663
|
) {
|
|
664
664
|
/* The ring lies inside the box here, over the border and an edge as wide as
|
|
665
665
|
it; the edge reaches past the ring. */
|
|
@@ -672,26 +672,29 @@
|
|
|
672
672
|
}
|
|
673
673
|
|
|
674
674
|
/*
|
|
675
|
-
* Forced
|
|
675
|
+
* Forced colors remove every box shadow, and the edge with them. The
|
|
676
676
|
* width comes back as an outline inside the border, and a focused invalid
|
|
677
677
|
* control draws its ring double, which a valid ring is not.
|
|
678
678
|
*/
|
|
679
679
|
@media (forced-colors: active) {
|
|
680
|
-
[data-ui
|
|
680
|
+
[data-ui-select][data-part-root][data-invalid] {
|
|
681
681
|
outline: var(--_invalid-edge-width) solid CanvasText;
|
|
682
682
|
outline-offset: calc(
|
|
683
683
|
-1 * (var(--slotted-control-border-width, 1px) + var(--_invalid-edge-width))
|
|
684
684
|
);
|
|
685
685
|
}
|
|
686
686
|
|
|
687
|
-
[data-ui
|
|
687
|
+
[data-ui-select][data-part-root][data-invalid]:has(> [data-part-trigger]:focus-visible) {
|
|
688
688
|
outline: calc(var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)) double
|
|
689
689
|
var(--slotted-focus-ring-color, Highlight);
|
|
690
|
-
outline-offset: var(
|
|
690
|
+
outline-offset: var(
|
|
691
|
+
--slotted-control-focus-ring-offset,
|
|
692
|
+
var(--slotted-focus-ring-offset, 2px)
|
|
693
|
+
);
|
|
691
694
|
}
|
|
692
695
|
|
|
693
|
-
[data-ui
|
|
694
|
-
> [data-part
|
|
696
|
+
[data-ui-select][data-part-root][data-variant='plain'][data-invalid]:has(
|
|
697
|
+
> [data-part-trigger]:focus-visible
|
|
695
698
|
) {
|
|
696
699
|
outline: calc(var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)) double
|
|
697
700
|
var(--slotted-focus-ring-color, Highlight);
|
|
@@ -708,14 +711,14 @@
|
|
|
708
711
|
* `role="combobox"` has a readonly the platform enforces, so the family
|
|
709
712
|
* refuses the change itself and this is what the refusal looks like.
|
|
710
713
|
*/
|
|
711
|
-
[data-ui
|
|
714
|
+
[data-ui-select][data-part-root][data-readonly] {
|
|
712
715
|
background-color: var(
|
|
713
716
|
--slotted-select-readonly-background,
|
|
714
717
|
var(--slotted-tone-secondary-subtle-hover)
|
|
715
718
|
);
|
|
716
719
|
}
|
|
717
720
|
|
|
718
|
-
[data-ui
|
|
721
|
+
[data-ui-select][data-part-root][data-readonly] [data-part-arrow] {
|
|
719
722
|
opacity: 0.5;
|
|
720
723
|
}
|
|
721
724
|
|
|
@@ -726,30 +729,30 @@
|
|
|
726
729
|
* way to say. The attribute alone left such a control looking operable and
|
|
727
730
|
* answering nothing.
|
|
728
731
|
*/
|
|
729
|
-
[data-ui
|
|
730
|
-
[data-ui
|
|
732
|
+
[data-ui-select][data-part-root][data-disabled],
|
|
733
|
+
[data-ui-select][data-part-root]:has(> [data-part-trigger]:disabled) {
|
|
731
734
|
background-color: var(--slotted-select-disabled-background, var(--slotted-disabled-background));
|
|
732
735
|
border-color: var(--slotted-select-disabled-border-color, var(--slotted-disabled-border));
|
|
733
736
|
/* Nothing a person cannot reach is lifted off the page. */
|
|
734
737
|
box-shadow: none;
|
|
735
|
-
/* Muted to the
|
|
738
|
+
/* Muted to the color the theme measures rather than faded by opacity: a
|
|
736
739
|
value nobody can read is a field nobody can check. */
|
|
737
740
|
color: var(--slotted-select-disabled-color, var(--slotted-disabled-foreground));
|
|
738
741
|
}
|
|
739
742
|
|
|
740
|
-
[data-ui
|
|
741
|
-
[data-ui
|
|
743
|
+
[data-ui-select][data-part-root][data-disabled] > [data-part-trigger],
|
|
744
|
+
[data-ui-select][data-part-root] > [data-part-trigger]:disabled {
|
|
742
745
|
cursor: not-allowed;
|
|
743
746
|
}
|
|
744
747
|
|
|
745
|
-
[data-ui
|
|
748
|
+
[data-ui-select] > [data-part-clear]:hover:not(:disabled):not([data-disabled]) {
|
|
746
749
|
background-color: var(
|
|
747
750
|
--slotted-select-action-hover-background,
|
|
748
751
|
var(--slotted-tone-secondary-subtle-hover)
|
|
749
752
|
);
|
|
750
753
|
}
|
|
751
754
|
|
|
752
|
-
[data-ui
|
|
755
|
+
[data-ui-select] > [data-part-clear]:active:not(:disabled):not([data-disabled]) {
|
|
753
756
|
background-color: var(
|
|
754
757
|
--slotted-select-action-active-background,
|
|
755
758
|
var(--slotted-tone-secondary-subtle-active)
|
|
@@ -761,7 +764,7 @@
|
|
|
761
764
|
* Tabbing from the trigger to it has to move something visible, and a ring
|
|
762
765
|
* around the whole frame would sit still while focus moved inside it.
|
|
763
766
|
*/
|
|
764
|
-
[data-ui
|
|
767
|
+
[data-ui-select] > [data-part-clear]:focus-visible {
|
|
765
768
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
766
769
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
767
770
|
}
|
|
@@ -774,7 +777,7 @@
|
|
|
774
777
|
* purpose. The painted surface is one element in, as `tooltip`, `popover` and
|
|
775
778
|
* `menu` are built.
|
|
776
779
|
*/
|
|
777
|
-
[data-ui
|
|
780
|
+
[data-ui-select][data-part-positioner] {
|
|
778
781
|
--_surface: var(--slotted-select-surface, var(--slotted-surface-raised, #ffffff));
|
|
779
782
|
--_text: var(--slotted-select-content-text, var(--slotted-text, #0f172a));
|
|
780
783
|
--_muted: var(--slotted-select-content-text-muted, var(--slotted-text-muted, #5b6b7f));
|
|
@@ -805,7 +808,11 @@
|
|
|
805
808
|
--_inset-inline: var(--slotted-select-content-padding-inline, var(--slotted-space-2, 0.25rem));
|
|
806
809
|
--_item-inset: var(--slotted-control-padding-inline-md, 0.8125rem);
|
|
807
810
|
--_item-height: var(--slotted-control-height-md, 34px);
|
|
808
|
-
|
|
811
|
+
/* Concentric with the panel: its radius less the inset, floored at 0. */
|
|
812
|
+
--_item-radius: var(
|
|
813
|
+
--slotted-select-item-radius,
|
|
814
|
+
max(0px, calc(var(--_radius) - var(--_inset-inline)))
|
|
815
|
+
);
|
|
809
816
|
--_content-font-size: var(--slotted-control-font-size-md, 13px);
|
|
810
817
|
--_secondary-font-size: var(--slotted-control-font-size-sm, 12px);
|
|
811
818
|
--_content-icon-size: var(--slotted-control-icon-size-md, 16px);
|
|
@@ -833,7 +840,6 @@
|
|
|
833
840
|
pointer, and the frame must not swallow a press meant for the page. */
|
|
834
841
|
pointer-events: none;
|
|
835
842
|
|
|
836
|
-
opacity: 0;
|
|
837
843
|
/**
|
|
838
844
|
* R7: the layer arrives along the axis it opens on — from one space step
|
|
839
845
|
* above its place when it opens downward, from one step below when it
|
|
@@ -843,17 +849,15 @@
|
|
|
843
849
|
*/
|
|
844
850
|
--_enter-distance: var(--slotted-space-2, 0.25rem);
|
|
845
851
|
translate: 0 calc(-1 * var(--_enter-distance));
|
|
846
|
-
transition:
|
|
847
|
-
opacity var(--slotted-duration-short) var(--slotted-easing-exit),
|
|
848
|
-
translate var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
852
|
+
transition: translate var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
849
853
|
}
|
|
850
854
|
|
|
851
|
-
[data-ui
|
|
855
|
+
[data-ui-select][data-part-positioner][data-side='top'] {
|
|
852
856
|
translate: 0 var(--_enter-distance);
|
|
853
857
|
}
|
|
854
858
|
|
|
855
859
|
/* A lateral side has no block direction to arrive from, so it only fades. */
|
|
856
|
-
[data-ui
|
|
860
|
+
[data-ui-select][data-part-positioner]:is([data-side='left'], [data-side='right']) {
|
|
857
861
|
translate: 0 0;
|
|
858
862
|
}
|
|
859
863
|
|
|
@@ -866,8 +870,7 @@
|
|
|
866
870
|
* A keyframe states where it starts. The exit stays a transition: it
|
|
867
871
|
* leaves from wherever the layer is, on the closed rule's durations.
|
|
868
872
|
*/
|
|
869
|
-
[data-ui
|
|
870
|
-
opacity: 1;
|
|
873
|
+
[data-ui-select][data-part-positioner][data-open] {
|
|
871
874
|
translate: 0 0;
|
|
872
875
|
transition: none;
|
|
873
876
|
}
|
|
@@ -877,31 +880,22 @@
|
|
|
877
880
|
* with the side, and a layer written open in static markup — the harness,
|
|
878
881
|
* a docs snippet — is simply there, and is photographed where it stands.
|
|
879
882
|
*/
|
|
880
|
-
[data-ui
|
|
883
|
+
[data-ui-select][data-part-positioner][data-open][data-positioned] {
|
|
881
884
|
animation: slotted-select-enter-down var(--slotted-duration-medium) var(--slotted-easing-enter);
|
|
882
885
|
}
|
|
883
886
|
|
|
884
|
-
[data-ui
|
|
887
|
+
[data-ui-select][data-part-positioner][data-open][data-positioned][data-side='top'] {
|
|
885
888
|
animation-name: slotted-select-enter-up;
|
|
886
889
|
}
|
|
887
890
|
|
|
888
|
-
[data-ui='select'][data-part='positioner'][data-open][data-positioned]:is(
|
|
889
|
-
[data-side='left'],
|
|
890
|
-
[data-side='right']
|
|
891
|
-
) {
|
|
892
|
-
animation-name: slotted-select-fade;
|
|
893
|
-
}
|
|
894
|
-
|
|
895
891
|
@keyframes slotted-select-enter-down {
|
|
896
892
|
from {
|
|
897
|
-
opacity: 0;
|
|
898
893
|
translate: 0 calc(-1 * var(--_enter-distance));
|
|
899
894
|
}
|
|
900
895
|
}
|
|
901
896
|
|
|
902
897
|
@keyframes slotted-select-enter-up {
|
|
903
898
|
from {
|
|
904
|
-
opacity: 0;
|
|
905
899
|
translate: 0 var(--_enter-distance);
|
|
906
900
|
}
|
|
907
901
|
}
|
|
@@ -912,27 +906,48 @@
|
|
|
912
906
|
}
|
|
913
907
|
}
|
|
914
908
|
|
|
909
|
+
/**
|
|
910
|
+
* The fade belongs to the part that paints the surface, and the layer only
|
|
911
|
+
* moves. In Chromium an ancestor with `opacity` below one is the Backdrop Root
|
|
912
|
+
* of what it holds, so a `backdrop-filter` on the content blurs nothing until
|
|
913
|
+
* the layer is opaque and then appears at once. The content's own opacity
|
|
914
|
+
* leaves its own filter drawn on every frame of the motion.
|
|
915
|
+
*/
|
|
916
|
+
[data-ui-select][data-part-positioner] > [data-part-content] {
|
|
917
|
+
opacity: 0;
|
|
918
|
+
transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
[data-ui-select][data-part-positioner][data-open] > [data-part-content] {
|
|
922
|
+
opacity: 1;
|
|
923
|
+
transition: none;
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
[data-ui-select][data-part-positioner][data-open][data-positioned] > [data-part-content] {
|
|
927
|
+
animation: slotted-select-fade var(--slotted-duration-medium) var(--slotted-easing-enter);
|
|
928
|
+
}
|
|
929
|
+
|
|
915
930
|
/* Stillness keeps the fade and drops the movement (R7). */
|
|
916
931
|
@media (prefers-reduced-motion: reduce) {
|
|
917
|
-
[data-ui
|
|
918
|
-
[data-ui
|
|
919
|
-
[data-ui
|
|
920
|
-
[data-ui
|
|
932
|
+
[data-ui-select][data-part-positioner],
|
|
933
|
+
[data-ui-select][data-part-positioner][data-side='top'],
|
|
934
|
+
[data-ui-select][data-part-positioner][data-side='left'],
|
|
935
|
+
[data-ui-select][data-part-positioner][data-side='right'] {
|
|
921
936
|
translate: 0 0;
|
|
922
|
-
transition:
|
|
937
|
+
transition: translate var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
923
938
|
}
|
|
924
939
|
|
|
925
|
-
[data-ui
|
|
926
|
-
[data-ui
|
|
927
|
-
[data-ui
|
|
928
|
-
[data-ui
|
|
929
|
-
animation-name:
|
|
940
|
+
[data-ui-select][data-part-positioner][data-open][data-positioned],
|
|
941
|
+
[data-ui-select][data-part-positioner][data-open][data-positioned][data-side='top'],
|
|
942
|
+
[data-ui-select][data-part-positioner][data-open][data-positioned][data-side='left'],
|
|
943
|
+
[data-ui-select][data-part-positioner][data-open][data-positioned][data-side='right'] {
|
|
944
|
+
animation-name: none;
|
|
930
945
|
}
|
|
931
946
|
}
|
|
932
947
|
|
|
933
948
|
/* The anchor scrolled out of its own clipper. The popup is still open and
|
|
934
949
|
its options still belong to a control the reader can no longer see. */
|
|
935
|
-
[data-ui
|
|
950
|
+
[data-ui-select][data-part-positioner][data-detached] {
|
|
936
951
|
visibility: hidden;
|
|
937
952
|
}
|
|
938
953
|
|
|
@@ -942,11 +957,11 @@
|
|
|
942
957
|
* narrow control does not wrap its option labels. `anchor` pins the popup to
|
|
943
958
|
* the control's width exactly.
|
|
944
959
|
*/
|
|
945
|
-
[data-ui
|
|
960
|
+
[data-ui-select][data-part-positioner][data-width='anchor'] {
|
|
946
961
|
inline-size: var(--slotted-positioner-anchor-width, auto);
|
|
947
962
|
}
|
|
948
963
|
|
|
949
|
-
[data-ui
|
|
964
|
+
[data-ui-select][data-part-positioner][data-width='content'] {
|
|
950
965
|
inline-size: max-content;
|
|
951
966
|
max-inline-size: min(var(--_measure), var(--slotted-positioner-available-width, 100vw));
|
|
952
967
|
/* Never narrower than the control it belongs to: a popup that shrank under
|
|
@@ -954,7 +969,7 @@
|
|
|
954
969
|
min-inline-size: var(--slotted-positioner-anchor-width, auto);
|
|
955
970
|
}
|
|
956
971
|
|
|
957
|
-
[data-ui
|
|
972
|
+
[data-ui-select][data-part-positioner][data-size='sm'] {
|
|
958
973
|
--_item-inset: var(--slotted-control-padding-inline-sm, 0.625rem);
|
|
959
974
|
--_item-height: var(--slotted-control-height-sm, 30px);
|
|
960
975
|
--_content-font-size: var(--slotted-control-font-size-sm, 12px);
|
|
@@ -963,7 +978,7 @@
|
|
|
963
978
|
--_column-gap: var(--slotted-control-gap-sm, 0.375rem);
|
|
964
979
|
}
|
|
965
980
|
|
|
966
|
-
[data-ui
|
|
981
|
+
[data-ui-select][data-part-positioner][data-size='lg'] {
|
|
967
982
|
--_item-inset: var(--slotted-control-padding-inline-lg, 1rem);
|
|
968
983
|
--_item-height: var(--slotted-control-height-lg, 38px);
|
|
969
984
|
--_content-font-size: var(--slotted-control-font-size-lg, 14px);
|
|
@@ -981,7 +996,7 @@
|
|
|
981
996
|
* the screen. `overscroll-behavior` keeps the page still once the surface has
|
|
982
997
|
* scrolled to its end.
|
|
983
998
|
*/
|
|
984
|
-
[data-ui
|
|
999
|
+
[data-ui-select] > [data-part-content] {
|
|
985
1000
|
background: var(--_surface);
|
|
986
1001
|
border: var(--_border-width) solid var(--_border-color);
|
|
987
1002
|
border-radius: var(--_radius);
|
|
@@ -990,11 +1005,22 @@
|
|
|
990
1005
|
color: var(--_text);
|
|
991
1006
|
font-family: var(--slotted-font-family-sans);
|
|
992
1007
|
font-size: var(--_content-font-size);
|
|
993
|
-
max-block-size:
|
|
994
|
-
var(--slotted-
|
|
1008
|
+
max-block-size: min(
|
|
1009
|
+
var(--slotted-overlay-max-block-size, 100vh),
|
|
1010
|
+
calc(var(--slotted-positioner-available-height, 100vh) - var(--slotted-space-5, 0.75rem))
|
|
995
1011
|
);
|
|
996
1012
|
outline: none;
|
|
997
1013
|
pointer-events: auto;
|
|
1014
|
+
/* A theme that paints this surface as a translucent material blurs what moves behind it. */
|
|
1015
|
+
-webkit-backdrop-filter: var(--slotted-select-content-backdrop-filter, none);
|
|
1016
|
+
backdrop-filter: var(--slotted-select-content-backdrop-filter, none);
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
|
|
1020
|
+
[data-ui-select] > [data-part-content] {
|
|
1021
|
+
-webkit-backdrop-filter: none;
|
|
1022
|
+
backdrop-filter: none;
|
|
1023
|
+
}
|
|
998
1024
|
}
|
|
999
1025
|
|
|
1000
1026
|
/**
|
|
@@ -1010,8 +1036,8 @@
|
|
|
1010
1036
|
* `overscroll-behavior` keeps the page still once the scroller has reached
|
|
1011
1037
|
* its end.
|
|
1012
1038
|
*/
|
|
1013
|
-
[data-ui
|
|
1014
|
-
[data-ui
|
|
1039
|
+
[data-ui-select] > [data-part-content]:not([data-search]),
|
|
1040
|
+
[data-ui-select] [data-part-list] {
|
|
1015
1041
|
display: grid;
|
|
1016
1042
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
1017
1043
|
overflow-y: auto;
|
|
@@ -1020,7 +1046,7 @@
|
|
|
1020
1046
|
padding-inline: var(--_inset-inline);
|
|
1021
1047
|
}
|
|
1022
1048
|
|
|
1023
|
-
[data-ui
|
|
1049
|
+
[data-ui-select] > [data-part-content][data-search] {
|
|
1024
1050
|
display: flex;
|
|
1025
1051
|
flex-direction: column;
|
|
1026
1052
|
/* The field draws to the surface's own edges and the list keeps the inset,
|
|
@@ -1030,7 +1056,7 @@
|
|
|
1030
1056
|
|
|
1031
1057
|
/* `auto` as the flex basis measures the whole list and refuses to shrink;
|
|
1032
1058
|
the surface is what holds the height, and the list is what gives. */
|
|
1033
|
-
[data-ui
|
|
1059
|
+
[data-ui-select] [data-part-list] {
|
|
1034
1060
|
flex: 1 1 auto;
|
|
1035
1061
|
min-block-size: 0;
|
|
1036
1062
|
}
|
|
@@ -1052,7 +1078,7 @@
|
|
|
1052
1078
|
* rhythm, with the rule under it drawn from the border scale rather than
|
|
1053
1079
|
* from a shadow — the same rule the `chosen` band draws above the list.
|
|
1054
1080
|
*/
|
|
1055
|
-
[data-ui
|
|
1081
|
+
[data-ui-select] [data-part-search] {
|
|
1056
1082
|
align-items: center;
|
|
1057
1083
|
border-block-end: var(--_border-width) solid var(--_border-color);
|
|
1058
1084
|
box-sizing: border-box;
|
|
@@ -1073,7 +1099,7 @@
|
|
|
1073
1099
|
* bare line of placeholder text at the top of a panel reads as a title, and
|
|
1074
1100
|
* a reader does not type into a title.
|
|
1075
1101
|
*/
|
|
1076
|
-
[data-ui
|
|
1102
|
+
[data-ui-select] [data-part-search-icon] {
|
|
1077
1103
|
--slotted-icon-size: var(--_content-icon-size);
|
|
1078
1104
|
|
|
1079
1105
|
align-items: center;
|
|
@@ -1097,7 +1123,7 @@
|
|
|
1097
1123
|
* rather than a state, and the one thing on the surface that never changes
|
|
1098
1124
|
* would be the loudest. What says where focus is, is the caret.
|
|
1099
1125
|
*/
|
|
1100
|
-
[data-ui
|
|
1126
|
+
[data-ui-select] [data-part-search-input] {
|
|
1101
1127
|
background-color: transparent;
|
|
1102
1128
|
border: 0;
|
|
1103
1129
|
color: inherit;
|
|
@@ -1111,7 +1137,7 @@
|
|
|
1111
1137
|
text-overflow: ellipsis;
|
|
1112
1138
|
}
|
|
1113
1139
|
|
|
1114
|
-
[data-ui
|
|
1140
|
+
[data-ui-select] [data-part-search-input]::placeholder {
|
|
1115
1141
|
color: var(--slotted-select-placeholder-color, var(--_muted));
|
|
1116
1142
|
text-overflow: ellipsis;
|
|
1117
1143
|
}
|
|
@@ -1131,7 +1157,7 @@
|
|
|
1131
1157
|
* to the surface's own edges, which is where the rule between it and the list
|
|
1132
1158
|
* has to end — a rule from the border scale, not a shadow.
|
|
1133
1159
|
*/
|
|
1134
|
-
[data-ui
|
|
1160
|
+
[data-ui-select] [data-part-chosen] {
|
|
1135
1161
|
background: var(--_surface);
|
|
1136
1162
|
border-block-end: var(--_border-width) solid var(--_border-color);
|
|
1137
1163
|
box-sizing: border-box;
|
|
@@ -1161,7 +1187,8 @@
|
|
|
1161
1187
|
padding-block: var(--_inset-block);
|
|
1162
1188
|
padding-inline: var(--_inset-inline);
|
|
1163
1189
|
position: sticky;
|
|
1164
|
-
|
|
1190
|
+
/* Above a group label stuck to the same edge. */
|
|
1191
|
+
z-index: 2;
|
|
1165
1192
|
}
|
|
1166
1193
|
|
|
1167
1194
|
/**
|
|
@@ -1169,7 +1196,7 @@
|
|
|
1169
1196
|
* interaction — the highlight is `aria-activedescendant`, not focus — so a
|
|
1170
1197
|
* ring here would draw a box around something nobody is operating.
|
|
1171
1198
|
*/
|
|
1172
|
-
[data-ui
|
|
1199
|
+
[data-ui-select] > [data-part-content]:focus-visible {
|
|
1173
1200
|
outline: none;
|
|
1174
1201
|
}
|
|
1175
1202
|
|
|
@@ -1180,7 +1207,7 @@
|
|
|
1180
1207
|
* surface's columns instead of starting a second set. Without the subgrid a
|
|
1181
1208
|
* group would align its own labels and disagree with the options outside it.
|
|
1182
1209
|
*/
|
|
1183
|
-
[data-ui
|
|
1210
|
+
[data-ui-select] [data-part-group] {
|
|
1184
1211
|
display: grid;
|
|
1185
1212
|
grid-column: 1 / -1;
|
|
1186
1213
|
grid-template-columns: subgrid;
|
|
@@ -1194,19 +1221,56 @@
|
|
|
1194
1221
|
* author rule wins over the user agent sheet. Without this the search
|
|
1195
1222
|
* filtered nothing the reader could see.
|
|
1196
1223
|
*/
|
|
1197
|
-
[data-ui
|
|
1198
|
-
[data-ui
|
|
1224
|
+
[data-ui-select] [data-part-item][hidden],
|
|
1225
|
+
[data-ui-select] [data-part-group][hidden] {
|
|
1199
1226
|
display: none;
|
|
1200
1227
|
}
|
|
1201
1228
|
|
|
1202
|
-
|
|
1229
|
+
/**
|
|
1230
|
+
* A group's label stays at the top of the list while its group is in view.
|
|
1231
|
+
* The group is the label's containing block, so the next label pushes it out
|
|
1232
|
+
* and a group scrolled past takes its label with it. It sticks to the
|
|
1233
|
+
* scrollport's edge rather than the padding's, on the surface's ground, above
|
|
1234
|
+
* the items and below the parts the surface draws over them.
|
|
1235
|
+
*/
|
|
1236
|
+
[data-ui-select] [data-part-group-label] {
|
|
1237
|
+
background: var(--_surface);
|
|
1238
|
+
box-sizing: border-box;
|
|
1203
1239
|
color: var(--_muted);
|
|
1204
1240
|
font-size: var(--_secondary-font-size);
|
|
1205
1241
|
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
1206
1242
|
grid-column: 1 / -1;
|
|
1243
|
+
inset-block-start: calc(-1 * var(--_inset-block));
|
|
1207
1244
|
line-height: var(--slotted-line-height-sm, 1.45);
|
|
1245
|
+
min-block-size: var(--_group-label-height);
|
|
1208
1246
|
padding-block: var(--slotted-space-2, 0.25rem);
|
|
1209
1247
|
padding-inline: var(--_item-inset);
|
|
1248
|
+
position: sticky;
|
|
1249
|
+
z-index: 1;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
@media (forced-colors: active) {
|
|
1253
|
+
[data-ui-select] [data-part-group-label] {
|
|
1254
|
+
background: Canvas;
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
/**
|
|
1259
|
+
* The label's height, which the list keeps clear above an item the keys
|
|
1260
|
+
* bring into view (`revealWithin` reads the scroll padding), so the item is
|
|
1261
|
+
* never drawn under a label stuck to the top.
|
|
1262
|
+
*/
|
|
1263
|
+
[data-ui-select] > [data-part-content]:not([data-search]):has([data-part-group-label]),
|
|
1264
|
+
[data-ui-select] [data-part-list]:has([data-part-group-label]) {
|
|
1265
|
+
--_group-label-height: var(
|
|
1266
|
+
--slotted-select-group-label-height,
|
|
1267
|
+
calc(
|
|
1268
|
+
var(--_secondary-font-size) * var(--slotted-line-height-sm, 1.45) + 2 *
|
|
1269
|
+
var(--slotted-space-2, 0.25rem)
|
|
1270
|
+
)
|
|
1271
|
+
);
|
|
1272
|
+
|
|
1273
|
+
scroll-padding-block-start: var(--_group-label-height);
|
|
1210
1274
|
}
|
|
1211
1275
|
|
|
1212
1276
|
/* ── Options ──────────────────────────────────────────────────────────── */
|
|
@@ -1221,7 +1285,7 @@
|
|
|
1221
1285
|
* `min-block-size` rather than a height, because an option with a
|
|
1222
1286
|
* description is two lines tall and still has to clear the target minimum.
|
|
1223
1287
|
*/
|
|
1224
|
-
[data-ui
|
|
1288
|
+
[data-ui-select] [data-part-item] {
|
|
1225
1289
|
align-content: center;
|
|
1226
1290
|
border-radius: var(--_item-radius);
|
|
1227
1291
|
box-sizing: border-box;
|
|
@@ -1268,7 +1332,7 @@
|
|
|
1268
1332
|
* whichever device is driving, and the state a screen reader announces and
|
|
1269
1333
|
* the state the eye sees are the same state.
|
|
1270
1334
|
*/
|
|
1271
|
-
[data-ui
|
|
1335
|
+
[data-ui-select] [data-part-item][data-current] {
|
|
1272
1336
|
background-color: var(--_highlight);
|
|
1273
1337
|
/**
|
|
1274
1338
|
* A ring as well as a ground, because the ground alone carries the whole
|
|
@@ -1285,17 +1349,17 @@
|
|
|
1285
1349
|
var(--slotted-select-highlight-ring, var(--slotted-tone-accent-border));
|
|
1286
1350
|
}
|
|
1287
1351
|
|
|
1288
|
-
[data-ui
|
|
1352
|
+
[data-ui-select] [data-part-item]:not([data-disabled]):active {
|
|
1289
1353
|
background-color: var(--_highlight-active);
|
|
1290
1354
|
}
|
|
1291
1355
|
|
|
1292
1356
|
/**
|
|
1293
1357
|
* Chosen, which is not the same as highlighted. The check in the last column
|
|
1294
|
-
* is the primary signal — it survives forced
|
|
1358
|
+
* is the primary signal — it survives forced colors, where every tone ground
|
|
1295
1359
|
* becomes `Canvas` — and the accent ink is the secondary one, so the row a
|
|
1296
1360
|
* reader is looking for is findable at a glance in a list of forty.
|
|
1297
1361
|
*/
|
|
1298
|
-
[data-ui
|
|
1362
|
+
[data-ui-select] [data-part-item][data-selected] {
|
|
1299
1363
|
color: var(--_selected-color);
|
|
1300
1364
|
}
|
|
1301
1365
|
|
|
@@ -1308,17 +1372,17 @@
|
|
|
1308
1372
|
* selection begins and ends. `select` and `combobox` draw the same ground
|
|
1309
1373
|
* and answer the same way; `selection-block.test.mjs` holds the three to it.
|
|
1310
1374
|
*/
|
|
1311
|
-
[data-ui
|
|
1375
|
+
[data-ui-select] [data-part-item][data-selected] + [data-part-item][data-selected] {
|
|
1312
1376
|
border-start-end-radius: 0;
|
|
1313
1377
|
border-start-start-radius: 0;
|
|
1314
1378
|
}
|
|
1315
1379
|
|
|
1316
|
-
[data-ui
|
|
1380
|
+
[data-ui-select] [data-part-item][data-selected]:has(+ [data-part-item][data-selected]) {
|
|
1317
1381
|
border-end-end-radius: 0;
|
|
1318
1382
|
border-end-start-radius: 0;
|
|
1319
1383
|
}
|
|
1320
1384
|
|
|
1321
|
-
[data-ui
|
|
1385
|
+
[data-ui-select] [data-part-item][data-selected] > [data-part-label] {
|
|
1322
1386
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
1323
1387
|
}
|
|
1324
1388
|
|
|
@@ -1329,7 +1393,7 @@
|
|
|
1329
1393
|
* disabled surface rather than the highlight, and the text stays legible
|
|
1330
1394
|
* instead of being faded toward it.
|
|
1331
1395
|
*/
|
|
1332
|
-
[data-ui
|
|
1396
|
+
[data-ui-select] [data-part-item][data-disabled] {
|
|
1333
1397
|
color: var(--slotted-disabled-foreground, #64748b);
|
|
1334
1398
|
cursor: not-allowed;
|
|
1335
1399
|
}
|
|
@@ -1355,7 +1419,7 @@
|
|
|
1355
1419
|
* would watch it disappear. A cursor lifts, always. What the row cannot do is
|
|
1356
1420
|
* said by the ink and by the ring, which both step down to the disabled pair.
|
|
1357
1421
|
*/
|
|
1358
|
-
[data-ui
|
|
1422
|
+
[data-ui-select] [data-part-item][data-disabled][data-current] {
|
|
1359
1423
|
box-shadow: inset 0 0 0 var(--slotted-border-width-thin, 1px)
|
|
1360
1424
|
var(--slotted-disabled-border, #cbd5e1);
|
|
1361
1425
|
color: var(--slotted-disabled-foreground, #64748b);
|
|
@@ -1369,7 +1433,7 @@
|
|
|
1369
1433
|
* states the line box every cell inherits, exactly as tall as the line it
|
|
1370
1434
|
* sits beside.
|
|
1371
1435
|
*/
|
|
1372
|
-
[data-ui
|
|
1436
|
+
[data-ui-select] :is([data-part-indicator], [data-part-icon]) {
|
|
1373
1437
|
block-size: 1lh;
|
|
1374
1438
|
}
|
|
1375
1439
|
|
|
@@ -1379,10 +1443,10 @@
|
|
|
1379
1443
|
* not a given option fills it.
|
|
1380
1444
|
*
|
|
1381
1445
|
* The box holds content and paints none: a `Glyph` in an `Icon` box, or
|
|
1382
|
-
* artwork of the consumer's own,
|
|
1446
|
+
* artwork of the consumer's own, centerd and sized from the column through
|
|
1383
1447
|
* `--slotted-icon-size`. No stylesheet fills it.
|
|
1384
1448
|
*/
|
|
1385
|
-
[data-ui
|
|
1449
|
+
[data-ui-select] [data-part-icon] {
|
|
1386
1450
|
--slotted-icon-size: var(--_content-icon-size);
|
|
1387
1451
|
|
|
1388
1452
|
align-items: center;
|
|
@@ -1398,7 +1462,7 @@
|
|
|
1398
1462
|
/* Column two, and the only column that gives way. It is scoped to the option
|
|
1399
1463
|
rather than to the family: a chip in the control carries a `label` of its
|
|
1400
1464
|
own, and this rule would have put it in the popup's second column (SL4). */
|
|
1401
|
-
[data-ui
|
|
1465
|
+
[data-ui-select] [data-part-item] > [data-part-label] {
|
|
1402
1466
|
grid-column: 2;
|
|
1403
1467
|
grid-row: 1;
|
|
1404
1468
|
min-inline-size: 0;
|
|
@@ -1419,7 +1483,7 @@
|
|
|
1419
1483
|
overflow-wrap: anywhere;
|
|
1420
1484
|
}
|
|
1421
1485
|
|
|
1422
|
-
[data-ui
|
|
1486
|
+
[data-ui-select] [data-part-description] {
|
|
1423
1487
|
color: var(--_muted);
|
|
1424
1488
|
font-size: var(--_secondary-font-size);
|
|
1425
1489
|
grid-column: 2;
|
|
@@ -1429,7 +1493,7 @@
|
|
|
1429
1493
|
overflow-wrap: anywhere;
|
|
1430
1494
|
}
|
|
1431
1495
|
|
|
1432
|
-
[data-ui
|
|
1496
|
+
[data-ui-select] [data-part-item][data-disabled] > [data-part-description] {
|
|
1433
1497
|
color: inherit;
|
|
1434
1498
|
}
|
|
1435
1499
|
|
|
@@ -1438,7 +1502,7 @@
|
|
|
1438
1502
|
* reserved whether or not the check is drawn, so a list does not shift by
|
|
1439
1503
|
* sixteen pixels as the reader moves through it.
|
|
1440
1504
|
*/
|
|
1441
|
-
[data-ui
|
|
1505
|
+
[data-ui-select] [data-part-indicator] {
|
|
1442
1506
|
--slotted-icon-size: var(--_content-icon-size);
|
|
1443
1507
|
|
|
1444
1508
|
align-items: center;
|
|
@@ -1455,13 +1519,13 @@
|
|
|
1455
1519
|
transition: opacity var(--slotted-duration-short) var(--slotted-easing-standard);
|
|
1456
1520
|
}
|
|
1457
1521
|
|
|
1458
|
-
[data-ui
|
|
1522
|
+
[data-ui-select] [data-part-item][data-selected] > [data-part-indicator] {
|
|
1459
1523
|
opacity: 1;
|
|
1460
1524
|
}
|
|
1461
1525
|
|
|
1462
1526
|
/* ── Separator, empty, status ─────────────────────────────────────────── */
|
|
1463
1527
|
|
|
1464
|
-
[data-ui
|
|
1528
|
+
[data-ui-select] [data-part-separator] {
|
|
1465
1529
|
background-color: var(--slotted-select-separator-color, var(--_border-color));
|
|
1466
1530
|
block-size: var(--_border-width);
|
|
1467
1531
|
border: 0;
|
|
@@ -1477,7 +1541,7 @@
|
|
|
1477
1541
|
* refuses to open on an empty collection and Radix paints nothing; the popup
|
|
1478
1542
|
* here opens onto a sentence.
|
|
1479
1543
|
*/
|
|
1480
|
-
[data-ui
|
|
1544
|
+
[data-ui-select] :is([data-part-empty], [data-part-status]) {
|
|
1481
1545
|
color: var(--_muted);
|
|
1482
1546
|
/**
|
|
1483
1547
|
* Its own bidi run, ordered by its own content. "3 results" is a European
|
|
@@ -1487,7 +1551,7 @@
|
|
|
1487
1551
|
* takes the direction from the sentence's own first strong character, so an
|
|
1488
1552
|
* English count reads as itself and a translated one reads as itself — the
|
|
1489
1553
|
* same repair `text-field` makes for an adornment, and for the same reason.
|
|
1490
|
-
* These two parts are
|
|
1554
|
+
* These two parts are centerd, so taking their own direction costs no
|
|
1491
1555
|
* alignment; an option's label is the consumer's content and keeps the
|
|
1492
1556
|
* document's direction unless the consumer says otherwise.
|
|
1493
1557
|
*/
|
|
@@ -1512,7 +1576,7 @@
|
|
|
1512
1576
|
* takes the same space as the empty message beside it. `combobox` draws the
|
|
1513
1577
|
* count the same way, in the same place, for the same reason.
|
|
1514
1578
|
*/
|
|
1515
|
-
[data-ui
|
|
1579
|
+
[data-ui-select] [data-part-status]:empty {
|
|
1516
1580
|
display: none;
|
|
1517
1581
|
}
|
|
1518
1582
|
|
|
@@ -1528,7 +1592,7 @@
|
|
|
1528
1592
|
* hidden from assistive technology: the `status` row beside them is the live
|
|
1529
1593
|
* region and it already says what is happening.
|
|
1530
1594
|
*/
|
|
1531
|
-
[data-ui
|
|
1595
|
+
[data-ui-select] [data-part-placeholder] {
|
|
1532
1596
|
display: grid;
|
|
1533
1597
|
/* The surface is a grid of option columns; the rows span all of them, as
|
|
1534
1598
|
the status and empty rows do. */
|
|
@@ -1537,7 +1601,7 @@
|
|
|
1537
1601
|
padding-inline: var(--_item-inset);
|
|
1538
1602
|
}
|
|
1539
1603
|
|
|
1540
|
-
[data-ui
|
|
1604
|
+
[data-ui-select] [data-part-placeholder] > [data-ui-skeleton] {
|
|
1541
1605
|
align-self: center;
|
|
1542
1606
|
}
|
|
1543
1607
|
|
|
@@ -1545,17 +1609,17 @@
|
|
|
1545
1609
|
* Each row is an option: the same minimum height, so three of them measure
|
|
1546
1610
|
* what three options measure and the popup does not resize when they land.
|
|
1547
1611
|
*/
|
|
1548
|
-
[data-ui
|
|
1612
|
+
[data-ui-select] [data-part-placeholder] > * {
|
|
1549
1613
|
align-items: center;
|
|
1550
1614
|
display: flex;
|
|
1551
1615
|
min-block-size: var(--_item-height);
|
|
1552
1616
|
}
|
|
1553
1617
|
|
|
1554
|
-
[data-ui
|
|
1618
|
+
[data-ui-select] [data-part-placeholder] > :nth-child(2) [data-ui-skeleton] {
|
|
1555
1619
|
inline-size: 78%;
|
|
1556
1620
|
}
|
|
1557
1621
|
|
|
1558
|
-
[data-ui
|
|
1622
|
+
[data-ui-select] [data-part-placeholder] > :nth-child(3) [data-ui-skeleton] {
|
|
1559
1623
|
inline-size: 56%;
|
|
1560
1624
|
}
|
|
1561
1625
|
|
|
@@ -1566,26 +1630,26 @@
|
|
|
1566
1630
|
* many for one wait (SL6).
|
|
1567
1631
|
*/
|
|
1568
1632
|
|
|
1569
|
-
[data-ui
|
|
1633
|
+
[data-ui-select] > [data-part-content][data-loading] {
|
|
1570
1634
|
cursor: progress;
|
|
1571
1635
|
}
|
|
1572
1636
|
|
|
1573
|
-
/* ── Forced
|
|
1637
|
+
/* ── Forced colors ───────────────────────────────────────────────────── */
|
|
1574
1638
|
|
|
1575
1639
|
/**
|
|
1576
1640
|
* The one thing the theme cannot reach. Every tone surface becomes `Canvas`
|
|
1577
|
-
* under forced
|
|
1641
|
+
* under forced colors, so the highlight — which is this family's answer to
|
|
1578
1642
|
* "which option am I on", not decoration — would disappear and leave a reader
|
|
1579
1643
|
* with no way to tell.
|
|
1580
1644
|
*/
|
|
1581
1645
|
@media (forced-colors: active) {
|
|
1582
|
-
[data-ui
|
|
1646
|
+
[data-ui-select] [data-part-item][data-current] {
|
|
1583
1647
|
background-color: Highlight;
|
|
1584
1648
|
color: HighlightText;
|
|
1585
1649
|
forced-color-adjust: none;
|
|
1586
1650
|
}
|
|
1587
1651
|
|
|
1588
|
-
[data-ui
|
|
1652
|
+
[data-ui-select] [data-part-item][data-disabled][data-current] {
|
|
1589
1653
|
background-color: Highlight;
|
|
1590
1654
|
color: GrayText;
|
|
1591
1655
|
}
|