@slotted/styles 0.1.0-beta.2 → 0.1.0-beta.20

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.
Files changed (191) hide show
  1. package/package.json +1 -1
  2. package/src/accordion/accordion.css +10 -10
  3. package/src/action-bar/action-bar.css +45 -42
  4. package/src/action-bar/action-bar.tokens.json +1 -0
  5. package/src/action-sheet/action-sheet.css +36 -36
  6. package/src/alert/alert.css +68 -67
  7. package/src/alert/alert.tokens.json +5 -0
  8. package/src/app-shell/app-shell.css +452 -314
  9. package/src/app-shell/app-shell.tokens.json +5 -2
  10. package/src/aspect-ratio/aspect-ratio.css +9 -9
  11. package/src/attachment/attachment.css +91 -99
  12. package/src/avatar/avatar.css +71 -41
  13. package/src/avatar/avatar.tokens.json +7 -0
  14. package/src/avatar-group/avatar-group.css +21 -22
  15. package/src/badge/badge.css +45 -37
  16. package/src/badge/badge.tokens.json +5 -0
  17. package/src/breadcrumb/breadcrumb.css +37 -37
  18. package/src/button/button.css +149 -68
  19. package/src/button/button.tokens.json +10 -0
  20. package/src/button-group/button-group.css +79 -74
  21. package/src/button-group/button-group.tokens.json +2 -0
  22. package/src/calendar/calendar.css +133 -103
  23. package/src/calendar/calendar.tokens.json +5 -1
  24. package/src/card/card.css +54 -61
  25. package/src/carousel/carousel.css +150 -161
  26. package/src/cascader/cascader.css +152 -153
  27. package/src/cascader/cascader.tokens.json +1 -0
  28. package/src/chart/chart.css +258 -248
  29. package/src/chart/chart.tokens.json +1 -0
  30. package/src/checkbox/checkbox.css +119 -124
  31. package/src/checkbox-group/checkbox-group.css +7 -7
  32. package/src/code-block/code-block.css +81 -85
  33. package/src/collapsible/collapsible.css +72 -76
  34. package/src/color-picker/color-picker.css +83 -91
  35. package/src/column-manager/column-manager.css +106 -114
  36. package/src/combobox/combobox.css +155 -124
  37. package/src/combobox/combobox.tokens.json +2 -0
  38. package/src/command-palette/command-palette.css +103 -90
  39. package/src/command-palette/command-palette.tokens.json +1 -0
  40. package/src/container/container.css +24 -24
  41. package/src/context-menu/context-menu.css +8 -8
  42. package/src/currency-field/currency-field.css +210 -88
  43. package/src/currency-field/currency-field.tokens.json +13 -0
  44. package/src/dashboard-grid/dashboard-grid.css +184 -114
  45. package/src/data-grid/data-grid.css +535 -470
  46. package/src/data-grid/data-grid.tokens.json +4 -0
  47. package/src/data-list/data-list.css +81 -70
  48. package/src/data-list/data-list.tokens.json +2 -1
  49. package/src/date-field/date-field.css +55 -52
  50. package/src/date-field/date-field.tokens.json +1 -0
  51. package/src/date-picker/date-picker.css +75 -59
  52. package/src/date-picker/date-picker.tokens.json +1 -0
  53. package/src/date-range-picker/date-range-picker.css +114 -118
  54. package/src/datetime-field/datetime-field.css +78 -80
  55. package/src/datetime-field/datetime-field.tokens.json +1 -0
  56. package/src/datetime-picker/datetime-picker.css +61 -63
  57. package/src/datetime-range-picker/datetime-range-picker.css +149 -156
  58. package/src/description-list/description-list.css +80 -65
  59. package/src/detail-panel/detail-panel.css +86 -71
  60. package/src/detail-panel/detail-panel.tokens.json +2 -0
  61. package/src/dialog/dialog.css +376 -153
  62. package/src/dialog/dialog.tokens.json +6 -0
  63. package/src/divider/divider.css +18 -18
  64. package/src/drawer/drawer.css +513 -217
  65. package/src/drawer/drawer.tokens.json +6 -0
  66. package/src/entity-picker/entity-picker.css +271 -256
  67. package/src/entity-picker/entity-picker.tokens.json +2 -0
  68. package/src/event-calendar/event-calendar.css +343 -385
  69. package/src/field/field.css +74 -78
  70. package/src/field-group/field-group.css +22 -25
  71. package/src/filter-bar/filter-bar.css +193 -209
  72. package/src/form/form.css +34 -24
  73. package/src/form/form.tokens.json +1 -0
  74. package/src/fullscreen/fullscreen.css +24 -25
  75. package/src/grid/grid.css +28 -28
  76. package/src/highlight/highlight.css +6 -6
  77. package/src/hover-card/hover-card.css +6 -6
  78. package/src/icon/icon.css +62 -15
  79. package/src/icon/icon.tokens.json +1 -0
  80. package/src/image/image.css +39 -39
  81. package/src/import-export-center/import-export-center.css +135 -156
  82. package/src/inline/inline.css +27 -27
  83. package/src/inline-message/inline-message.css +153 -77
  84. package/src/inline-message/inline-message.tokens.json +4 -0
  85. package/src/kbd/kbd.css +48 -36
  86. package/src/kbd/kbd.tokens.json +3 -0
  87. package/src/link/link.css +36 -15
  88. package/src/link/link.tokens.json +4 -0
  89. package/src/list/list.css +44 -17
  90. package/src/list/list.tokens.json +4 -0
  91. package/src/list-item/list-item.css +80 -66
  92. package/src/list-item/list-item.tokens.json +7 -0
  93. package/src/listbox/listbox.css +56 -59
  94. package/src/loading-overlay/loading-overlay.css +75 -92
  95. package/src/markdown/markdown.css +17 -17
  96. package/src/menu/menu.css +117 -74
  97. package/src/menu/menu.tokens.json +1 -0
  98. package/src/menubar/menubar.css +13 -13
  99. package/src/message/message.css +192 -202
  100. package/src/message/message.tokens.json +5 -0
  101. package/src/message-scroller/message-scroller.css +41 -42
  102. package/src/multi-select/multi-select.css +175 -160
  103. package/src/multi-select/multi-select.tokens.json +1 -0
  104. package/src/navigation-menu/navigation-menu.css +167 -188
  105. package/src/notification-center/notification-center.css +140 -148
  106. package/src/notification-center/notification-center.tokens.json +3 -0
  107. package/src/number-field/number-field.css +81 -83
  108. package/src/number-field/number-field.tokens.json +1 -0
  109. package/src/otp-input/otp-input.css +67 -57
  110. package/src/otp-input/otp-input.tokens.json +1 -0
  111. package/src/page/page.css +39 -23
  112. package/src/page/page.tokens.json +1 -0
  113. package/src/page-header/page-header.css +339 -284
  114. package/src/page-header/page-header.tokens.json +5 -0
  115. package/src/pagination/pagination.css +68 -72
  116. package/src/popover/popover.css +73 -61
  117. package/src/popover/popover.tokens.json +1 -0
  118. package/src/progress-indicator/progress-indicator.css +169 -113
  119. package/src/progress-indicator/progress-indicator.tokens.json +1 -0
  120. package/src/prompt-composer/prompt-composer.css +251 -104
  121. package/src/prompt-composer/prompt-composer.tokens.json +15 -0
  122. package/src/prose/prose.css +71 -75
  123. package/src/radio-group/radio-group.css +98 -103
  124. package/src/rating/rating.css +136 -132
  125. package/src/rating/rating.tokens.json +1 -0
  126. package/src/result-state/result-state.css +74 -77
  127. package/src/runtime-properties.mjs +2 -0
  128. package/src/saved-views/saved-views.css +41 -47
  129. package/src/scroll-area/scroll-area.css +39 -32
  130. package/src/section/section.css +178 -43
  131. package/src/section/section.tokens.json +8 -2
  132. package/src/segmented-control/segmented-control.css +254 -97
  133. package/src/segmented-control/segmented-control.tokens.json +15 -11
  134. package/src/select/select.css +154 -133
  135. package/src/select/select.tokens.json +2 -0
  136. package/src/side-navigation/side-navigation.css +179 -182
  137. package/src/side-navigation/side-navigation.tokens.json +1 -0
  138. package/src/skeleton/skeleton.css +47 -48
  139. package/src/slider/slider.css +86 -88
  140. package/src/sparkline/sparkline.css +62 -40
  141. package/src/sparkline/sparkline.tokens.json +2 -0
  142. package/src/spinner/spinner.css +83 -180
  143. package/src/spinner/spinner.tokens.json +0 -1
  144. package/src/split-button/split-button.css +30 -31
  145. package/src/split-button/split-button.tokens.json +1 -0
  146. package/src/splitter/splitter.css +35 -35
  147. package/src/stack/stack.css +24 -24
  148. package/src/stat-card/stat-card.css +380 -241
  149. package/src/stat-card/stat-card.tokens.json +5 -0
  150. package/src/status-indicator/status-indicator.css +107 -82
  151. package/src/status-indicator/status-indicator.tokens.json +0 -3
  152. package/src/stepper/stepper.css +58 -62
  153. package/src/switch/switch.css +86 -92
  154. package/src/table/table.css +340 -175
  155. package/src/table/table.tokens.json +6 -0
  156. package/src/table-of-contents/table-of-contents.css +57 -56
  157. package/src/table-of-contents/table-of-contents.tokens.json +1 -0
  158. package/src/tabs/tabs.css +322 -289
  159. package/src/tabs/tabs.tokens.json +7 -1
  160. package/src/tag/tag.css +79 -71
  161. package/src/tag/tag.tokens.json +9 -0
  162. package/src/tags-input/tags-input.css +145 -82
  163. package/src/tags-input/tags-input.tokens.json +7 -1
  164. package/src/text-field/text-field.css +132 -136
  165. package/src/text-field/text-field.tokens.json +1 -0
  166. package/src/textarea/textarea.css +31 -28
  167. package/src/textarea/textarea.tokens.json +1 -0
  168. package/src/time-field/time-field.css +72 -69
  169. package/src/time-field/time-field.tokens.json +1 -0
  170. package/src/time-picker/time-picker.css +56 -58
  171. package/src/time-range-picker/time-range-picker.css +126 -133
  172. package/src/timeline/timeline.css +254 -266
  173. package/src/timeline/timeline.tokens.json +5 -0
  174. package/src/toast/toast.css +115 -98
  175. package/src/toast/toast.tokens.json +6 -0
  176. package/src/toggle/toggle.css +62 -25
  177. package/src/toggle/toggle.tokens.json +8 -0
  178. package/src/toggle-group/toggle-group.css +106 -60
  179. package/src/toggle-group/toggle-group.tokens.json +10 -0
  180. package/src/toolbar/toolbar.css +30 -35
  181. package/src/tooltip/tooltip.css +59 -38
  182. package/src/tooltip/tooltip.tokens.json +1 -0
  183. package/src/top-navigation/top-navigation.css +243 -259
  184. package/src/tour/tour.css +51 -60
  185. package/src/transfer/transfer.css +160 -164
  186. package/src/tree/tree.css +103 -111
  187. package/src/typography/typography.css +40 -36
  188. package/src/typography/typography.tokens.json +1 -0
  189. package/src/upload/upload.css +224 -224
  190. package/src/visually-hidden/visually-hidden.css +1 -1
  191. package/src/wizard/wizard.css +185 -197
@@ -74,7 +74,7 @@
74
74
 
75
75
  /* ── The control ──────────────────────────────────────────────────────── */
76
76
 
77
- [data-ui='select'][data-part='root'] {
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,7 +125,9 @@
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
- inline-size: 100%;
128
+ /* No `inline-size: 100%`: a block box fills its container on its own, and
129
+ in a flex row a percentage is every item's basis — beside a date picker
130
+ both claimed the whole row and the shrink clipped the date. */
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. */
131
133
  min-inline-size: 0;
@@ -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='select'][data-part='root']:has(> [data-part='clear']) {
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='select'][data-part='root']:not([data-full-width]) {
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='select'] > [data-part='trigger'] {
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='select'][data-part='root']:has(> [data-part='clear']) > [data-part='trigger'] {
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='select'] [data-part='value'] {
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='select'] [data-part='value'][data-placeholder] {
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='select'] [data-part='value'][data-unmatched] {
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='select'][data-part='root'] > [data-part='tags'] {
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);
@@ -308,7 +310,7 @@
308
310
  pointer-events: none;
309
311
  }
310
312
 
311
- [data-ui='select'] > [data-part='tags'] > * {
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='select'] > [data-part='tags'] > [data-overflow] {
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='select'] [data-part='summary'] {
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='select'][data-part='root']:not([data-narrow]) [data-part='summary'] {
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='select'][data-part='root'][data-narrow] > [data-part='tags'] {
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='select'] > [data-part='arrow'] {
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='select'] > [data-part='arrow'] > [data-ui='icon'] {
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='select'][data-open] > [data-part='arrow'] > [data-ui='icon'] {
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='select'] > [data-part='busy'] {
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='select'] > [data-part='clear'] {
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='select'] > [data-part='clear']::after {
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='select'] > [data-part='clear']::after {
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='select'] > [data-part='clear'] {
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='select'][data-part='root'][data-size='sm'] {
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='select'][data-part='root'][data-size='md'] {
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='select'][data-part='root'][data-size='lg'] {
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='select'][data-part='root'][data-variant='subtle'] {
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='select'][data-part='root'][data-variant='plain'] {
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);
@@ -544,7 +546,7 @@
544
546
  * its only edge exactly where an edge matters most.
545
547
  */
546
548
  @media (forced-colors: active) {
547
- [data-ui='select'][data-part='root'][data-variant='plain'] {
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='select'][data-part='root']:hover:not([data-disabled]):not([data-readonly]):not(
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='select'][data-part='root'][data-variant='subtle']:hover:not([data-disabled]):not(
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='select'][data-part='root'][data-variant='plain']:hover:not([data-disabled]):not(
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='select'][data-part='root']:has(> [data-part='trigger']:focus-visible) {
592
+ [data-ui-select][data-part-root]:has(> [data-part-trigger]:focus-visible) {
591
593
  /* The resting shadow, recoloured: the geometry is the foundation's and the
592
594
  ink is the ring's, so the lift and the outline are one colour. */
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='select'][data-part='root'][data-variant='plain']:has(
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='select'][data-part='root'][data-open]:not([data-disabled]) {
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
 
@@ -626,7 +626,7 @@
626
626
  * reads `--slotted-focus-ring-color`, so pointing that one name at the
627
627
  * invalid colour moves the outline and the shadow together.
628
628
  */
629
- [data-ui='select'][data-part='root'][data-invalid] {
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)
@@ -651,15 +651,15 @@
651
651
  box-shadow: var(--_invalid-edge);
652
652
  }
653
653
 
654
- [data-ui='select'][data-part='root'][data-invalid]:has(> [data-part='trigger']:focus-visible) {
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='select'][data-part='root'][data-variant='plain'][data-invalid]:has(
662
- > [data-part='trigger']:focus-visible
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. */
@@ -677,21 +677,24 @@
677
677
  * control draws its ring double, which a valid ring is not.
678
678
  */
679
679
  @media (forced-colors: active) {
680
- [data-ui='select'][data-part='root'][data-invalid] {
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='select'][data-part='root'][data-invalid]:has(> [data-part='trigger']:focus-visible) {
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(--slotted-focus-ring-offset, 2px);
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='select'][data-part='root'][data-variant='plain'][data-invalid]:has(
694
- > [data-part='trigger']:focus-visible
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='select'][data-part='root'][data-readonly] {
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='select'][data-part='root'][data-readonly] [data-part='arrow'] {
721
+ [data-ui-select][data-part-root][data-readonly] [data-part-arrow] {
719
722
  opacity: 0.5;
720
723
  }
721
724
 
@@ -726,8 +729,8 @@
726
729
  * way to say. The attribute alone left such a control looking operable and
727
730
  * answering nothing.
728
731
  */
729
- [data-ui='select'][data-part='root'][data-disabled],
730
- [data-ui='select'][data-part='root']:has(> [data-part='trigger']:disabled) {
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. */
@@ -737,19 +740,19 @@
737
740
  color: var(--slotted-select-disabled-color, var(--slotted-disabled-foreground));
738
741
  }
739
742
 
740
- [data-ui='select'][data-part='root'][data-disabled] > [data-part='trigger'],
741
- [data-ui='select'][data-part='root'] > [data-part='trigger']:disabled {
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='select'] > [data-part='clear']:hover:not(:disabled):not([data-disabled]) {
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='select'] > [data-part='clear']:active:not(:disabled):not([data-disabled]) {
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='select'] > [data-part='clear']:focus-visible {
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='select'][data-part='positioner'] {
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));
@@ -833,7 +836,6 @@
833
836
  pointer, and the frame must not swallow a press meant for the page. */
834
837
  pointer-events: none;
835
838
 
836
- opacity: 0;
837
839
  /**
838
840
  * R7: the layer arrives along the axis it opens on — from one space step
839
841
  * above its place when it opens downward, from one step below when it
@@ -843,17 +845,15 @@
843
845
  */
844
846
  --_enter-distance: var(--slotted-space-2, 0.25rem);
845
847
  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);
848
+ transition: translate var(--slotted-duration-short) var(--slotted-easing-exit);
849
849
  }
850
850
 
851
- [data-ui='select'][data-part='positioner'][data-side='top'] {
851
+ [data-ui-select][data-part-positioner][data-side='top'] {
852
852
  translate: 0 var(--_enter-distance);
853
853
  }
854
854
 
855
855
  /* A lateral side has no block direction to arrive from, so it only fades. */
856
- [data-ui='select'][data-part='positioner']:is([data-side='left'], [data-side='right']) {
856
+ [data-ui-select][data-part-positioner]:is([data-side='left'], [data-side='right']) {
857
857
  translate: 0 0;
858
858
  }
859
859
 
@@ -866,8 +866,7 @@
866
866
  * A keyframe states where it starts. The exit stays a transition: it
867
867
  * leaves from wherever the layer is, on the closed rule's durations.
868
868
  */
869
- [data-ui='select'][data-part='positioner'][data-open] {
870
- opacity: 1;
869
+ [data-ui-select][data-part-positioner][data-open] {
871
870
  translate: 0 0;
872
871
  transition: none;
873
872
  }
@@ -877,31 +876,22 @@
877
876
  * with the side, and a layer written open in static markup — the harness,
878
877
  * a docs snippet — is simply there, and is photographed where it stands.
879
878
  */
880
- [data-ui='select'][data-part='positioner'][data-open][data-positioned] {
879
+ [data-ui-select][data-part-positioner][data-open][data-positioned] {
881
880
  animation: slotted-select-enter-down var(--slotted-duration-medium) var(--slotted-easing-enter);
882
881
  }
883
882
 
884
- [data-ui='select'][data-part='positioner'][data-open][data-positioned][data-side='top'] {
883
+ [data-ui-select][data-part-positioner][data-open][data-positioned][data-side='top'] {
885
884
  animation-name: slotted-select-enter-up;
886
885
  }
887
886
 
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
887
  @keyframes slotted-select-enter-down {
896
888
  from {
897
- opacity: 0;
898
889
  translate: 0 calc(-1 * var(--_enter-distance));
899
890
  }
900
891
  }
901
892
 
902
893
  @keyframes slotted-select-enter-up {
903
894
  from {
904
- opacity: 0;
905
895
  translate: 0 var(--_enter-distance);
906
896
  }
907
897
  }
@@ -912,27 +902,48 @@
912
902
  }
913
903
  }
914
904
 
905
+ /**
906
+ * The fade belongs to the part that paints the surface, and the layer only
907
+ * moves. In Chromium an ancestor with `opacity` below one is the Backdrop Root
908
+ * of what it holds, so a `backdrop-filter` on the content blurs nothing until
909
+ * the layer is opaque and then appears at once. The content's own opacity
910
+ * leaves its own filter drawn on every frame of the motion.
911
+ */
912
+ [data-ui-select][data-part-positioner] > [data-part-content] {
913
+ opacity: 0;
914
+ transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
915
+ }
916
+
917
+ [data-ui-select][data-part-positioner][data-open] > [data-part-content] {
918
+ opacity: 1;
919
+ transition: none;
920
+ }
921
+
922
+ [data-ui-select][data-part-positioner][data-open][data-positioned] > [data-part-content] {
923
+ animation: slotted-select-fade var(--slotted-duration-medium) var(--slotted-easing-enter);
924
+ }
925
+
915
926
  /* Stillness keeps the fade and drops the movement (R7). */
916
927
  @media (prefers-reduced-motion: reduce) {
917
- [data-ui='select'][data-part='positioner'],
918
- [data-ui='select'][data-part='positioner'][data-side='top'],
919
- [data-ui='select'][data-part='positioner'][data-side='left'],
920
- [data-ui='select'][data-part='positioner'][data-side='right'] {
928
+ [data-ui-select][data-part-positioner],
929
+ [data-ui-select][data-part-positioner][data-side='top'],
930
+ [data-ui-select][data-part-positioner][data-side='left'],
931
+ [data-ui-select][data-part-positioner][data-side='right'] {
921
932
  translate: 0 0;
922
- transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
933
+ transition: translate var(--slotted-duration-short) var(--slotted-easing-exit);
923
934
  }
924
935
 
925
- [data-ui='select'][data-part='positioner'][data-open][data-positioned],
926
- [data-ui='select'][data-part='positioner'][data-open][data-positioned][data-side='top'],
927
- [data-ui='select'][data-part='positioner'][data-open][data-positioned][data-side='left'],
928
- [data-ui='select'][data-part='positioner'][data-open][data-positioned][data-side='right'] {
929
- animation-name: slotted-select-fade;
936
+ [data-ui-select][data-part-positioner][data-open][data-positioned],
937
+ [data-ui-select][data-part-positioner][data-open][data-positioned][data-side='top'],
938
+ [data-ui-select][data-part-positioner][data-open][data-positioned][data-side='left'],
939
+ [data-ui-select][data-part-positioner][data-open][data-positioned][data-side='right'] {
940
+ animation-name: none;
930
941
  }
931
942
  }
932
943
 
933
944
  /* The anchor scrolled out of its own clipper. The popup is still open and
934
945
  its options still belong to a control the reader can no longer see. */
935
- [data-ui='select'][data-part='positioner'][data-detached] {
946
+ [data-ui-select][data-part-positioner][data-detached] {
936
947
  visibility: hidden;
937
948
  }
938
949
 
@@ -942,11 +953,11 @@
942
953
  * narrow control does not wrap its option labels. `anchor` pins the popup to
943
954
  * the control's width exactly.
944
955
  */
945
- [data-ui='select'][data-part='positioner'][data-width='anchor'] {
956
+ [data-ui-select][data-part-positioner][data-width='anchor'] {
946
957
  inline-size: var(--slotted-positioner-anchor-width, auto);
947
958
  }
948
959
 
949
- [data-ui='select'][data-part='positioner'][data-width='content'] {
960
+ [data-ui-select][data-part-positioner][data-width='content'] {
950
961
  inline-size: max-content;
951
962
  max-inline-size: min(var(--_measure), var(--slotted-positioner-available-width, 100vw));
952
963
  /* Never narrower than the control it belongs to: a popup that shrank under
@@ -954,7 +965,7 @@
954
965
  min-inline-size: var(--slotted-positioner-anchor-width, auto);
955
966
  }
956
967
 
957
- [data-ui='select'][data-part='positioner'][data-size='sm'] {
968
+ [data-ui-select][data-part-positioner][data-size='sm'] {
958
969
  --_item-inset: var(--slotted-control-padding-inline-sm, 0.625rem);
959
970
  --_item-height: var(--slotted-control-height-sm, 30px);
960
971
  --_content-font-size: var(--slotted-control-font-size-sm, 12px);
@@ -963,7 +974,7 @@
963
974
  --_column-gap: var(--slotted-control-gap-sm, 0.375rem);
964
975
  }
965
976
 
966
- [data-ui='select'][data-part='positioner'][data-size='lg'] {
977
+ [data-ui-select][data-part-positioner][data-size='lg'] {
967
978
  --_item-inset: var(--slotted-control-padding-inline-lg, 1rem);
968
979
  --_item-height: var(--slotted-control-height-lg, 38px);
969
980
  --_content-font-size: var(--slotted-control-font-size-lg, 14px);
@@ -981,7 +992,7 @@
981
992
  * the screen. `overscroll-behavior` keeps the page still once the surface has
982
993
  * scrolled to its end.
983
994
  */
984
- [data-ui='select'] > [data-part='content'] {
995
+ [data-ui-select] > [data-part-content] {
985
996
  background: var(--_surface);
986
997
  border: var(--_border-width) solid var(--_border-color);
987
998
  border-radius: var(--_radius);
@@ -995,6 +1006,16 @@
995
1006
  );
996
1007
  outline: none;
997
1008
  pointer-events: auto;
1009
+ /* A theme that paints this surface as a translucent material blurs what moves behind it. */
1010
+ -webkit-backdrop-filter: var(--slotted-select-content-backdrop-filter, none);
1011
+ backdrop-filter: var(--slotted-select-content-backdrop-filter, none);
1012
+ }
1013
+
1014
+ @media (prefers-reduced-transparency: reduce), (forced-colors: active) {
1015
+ [data-ui-select] > [data-part-content] {
1016
+ -webkit-backdrop-filter: none;
1017
+ backdrop-filter: none;
1018
+ }
998
1019
  }
999
1020
 
1000
1021
  /**
@@ -1010,8 +1031,8 @@
1010
1031
  * `overscroll-behavior` keeps the page still once the scroller has reached
1011
1032
  * its end.
1012
1033
  */
1013
- [data-ui='select'] > [data-part='content']:not([data-search]),
1014
- [data-ui='select'] [data-part='list'] {
1034
+ [data-ui-select] > [data-part-content]:not([data-search]),
1035
+ [data-ui-select] [data-part-list] {
1015
1036
  display: grid;
1016
1037
  grid-template-columns: auto minmax(0, 1fr) auto;
1017
1038
  overflow-y: auto;
@@ -1020,7 +1041,7 @@
1020
1041
  padding-inline: var(--_inset-inline);
1021
1042
  }
1022
1043
 
1023
- [data-ui='select'] > [data-part='content'][data-search] {
1044
+ [data-ui-select] > [data-part-content][data-search] {
1024
1045
  display: flex;
1025
1046
  flex-direction: column;
1026
1047
  /* The field draws to the surface's own edges and the list keeps the inset,
@@ -1030,7 +1051,7 @@
1030
1051
 
1031
1052
  /* `auto` as the flex basis measures the whole list and refuses to shrink;
1032
1053
  the surface is what holds the height, and the list is what gives. */
1033
- [data-ui='select'] [data-part='list'] {
1054
+ [data-ui-select] [data-part-list] {
1034
1055
  flex: 1 1 auto;
1035
1056
  min-block-size: 0;
1036
1057
  }
@@ -1052,7 +1073,7 @@
1052
1073
  * rhythm, with the rule under it drawn from the border scale rather than
1053
1074
  * from a shadow — the same rule the `chosen` band draws above the list.
1054
1075
  */
1055
- [data-ui='select'] [data-part='search'] {
1076
+ [data-ui-select] [data-part-search] {
1056
1077
  align-items: center;
1057
1078
  border-block-end: var(--_border-width) solid var(--_border-color);
1058
1079
  box-sizing: border-box;
@@ -1073,7 +1094,7 @@
1073
1094
  * bare line of placeholder text at the top of a panel reads as a title, and
1074
1095
  * a reader does not type into a title.
1075
1096
  */
1076
- [data-ui='select'] [data-part='search-icon'] {
1097
+ [data-ui-select] [data-part-search-icon] {
1077
1098
  --slotted-icon-size: var(--_content-icon-size);
1078
1099
 
1079
1100
  align-items: center;
@@ -1097,7 +1118,7 @@
1097
1118
  * rather than a state, and the one thing on the surface that never changes
1098
1119
  * would be the loudest. What says where focus is, is the caret.
1099
1120
  */
1100
- [data-ui='select'] [data-part='search-input'] {
1121
+ [data-ui-select] [data-part-search-input] {
1101
1122
  background-color: transparent;
1102
1123
  border: 0;
1103
1124
  color: inherit;
@@ -1111,7 +1132,7 @@
1111
1132
  text-overflow: ellipsis;
1112
1133
  }
1113
1134
 
1114
- [data-ui='select'] [data-part='search-input']::placeholder {
1135
+ [data-ui-select] [data-part-search-input]::placeholder {
1115
1136
  color: var(--slotted-select-placeholder-color, var(--_muted));
1116
1137
  text-overflow: ellipsis;
1117
1138
  }
@@ -1131,7 +1152,7 @@
1131
1152
  * to the surface's own edges, which is where the rule between it and the list
1132
1153
  * has to end — a rule from the border scale, not a shadow.
1133
1154
  */
1134
- [data-ui='select'] [data-part='chosen'] {
1155
+ [data-ui-select] [data-part-chosen] {
1135
1156
  background: var(--_surface);
1136
1157
  border-block-end: var(--_border-width) solid var(--_border-color);
1137
1158
  box-sizing: border-box;
@@ -1169,7 +1190,7 @@
1169
1190
  * interaction — the highlight is `aria-activedescendant`, not focus — so a
1170
1191
  * ring here would draw a box around something nobody is operating.
1171
1192
  */
1172
- [data-ui='select'] > [data-part='content']:focus-visible {
1193
+ [data-ui-select] > [data-part-content]:focus-visible {
1173
1194
  outline: none;
1174
1195
  }
1175
1196
 
@@ -1180,7 +1201,7 @@
1180
1201
  * surface's columns instead of starting a second set. Without the subgrid a
1181
1202
  * group would align its own labels and disagree with the options outside it.
1182
1203
  */
1183
- [data-ui='select'] [data-part='group'] {
1204
+ [data-ui-select] [data-part-group] {
1184
1205
  display: grid;
1185
1206
  grid-column: 1 / -1;
1186
1207
  grid-template-columns: subgrid;
@@ -1194,12 +1215,12 @@
1194
1215
  * author rule wins over the user agent sheet. Without this the search
1195
1216
  * filtered nothing the reader could see.
1196
1217
  */
1197
- [data-ui='select'] [data-part='item'][hidden],
1198
- [data-ui='select'] [data-part='group'][hidden] {
1218
+ [data-ui-select] [data-part-item][hidden],
1219
+ [data-ui-select] [data-part-group][hidden] {
1199
1220
  display: none;
1200
1221
  }
1201
1222
 
1202
- [data-ui='select'] [data-part='group-label'] {
1223
+ [data-ui-select] [data-part-group-label] {
1203
1224
  color: var(--_muted);
1204
1225
  font-size: var(--_secondary-font-size);
1205
1226
  font-weight: var(--slotted-font-weight-semibold, 600);
@@ -1221,7 +1242,7 @@
1221
1242
  * `min-block-size` rather than a height, because an option with a
1222
1243
  * description is two lines tall and still has to clear the target minimum.
1223
1244
  */
1224
- [data-ui='select'] [data-part='item'] {
1245
+ [data-ui-select] [data-part-item] {
1225
1246
  align-content: center;
1226
1247
  border-radius: var(--_item-radius);
1227
1248
  box-sizing: border-box;
@@ -1268,7 +1289,7 @@
1268
1289
  * whichever device is driving, and the state a screen reader announces and
1269
1290
  * the state the eye sees are the same state.
1270
1291
  */
1271
- [data-ui='select'] [data-part='item'][data-current] {
1292
+ [data-ui-select] [data-part-item][data-current] {
1272
1293
  background-color: var(--_highlight);
1273
1294
  /**
1274
1295
  * A ring as well as a ground, because the ground alone carries the whole
@@ -1285,7 +1306,7 @@
1285
1306
  var(--slotted-select-highlight-ring, var(--slotted-tone-accent-border));
1286
1307
  }
1287
1308
 
1288
- [data-ui='select'] [data-part='item']:not([data-disabled]):active {
1309
+ [data-ui-select] [data-part-item]:not([data-disabled]):active {
1289
1310
  background-color: var(--_highlight-active);
1290
1311
  }
1291
1312
 
@@ -1295,7 +1316,7 @@
1295
1316
  * becomes `Canvas` — and the accent ink is the secondary one, so the row a
1296
1317
  * reader is looking for is findable at a glance in a list of forty.
1297
1318
  */
1298
- [data-ui='select'] [data-part='item'][data-selected] {
1319
+ [data-ui-select] [data-part-item][data-selected] {
1299
1320
  color: var(--_selected-color);
1300
1321
  }
1301
1322
 
@@ -1308,17 +1329,17 @@
1308
1329
  * selection begins and ends. `select` and `combobox` draw the same ground
1309
1330
  * and answer the same way; `selection-block.test.mjs` holds the three to it.
1310
1331
  */
1311
- [data-ui='select'] [data-part='item'][data-selected] + [data-part='item'][data-selected] {
1332
+ [data-ui-select] [data-part-item][data-selected] + [data-part-item][data-selected] {
1312
1333
  border-start-end-radius: 0;
1313
1334
  border-start-start-radius: 0;
1314
1335
  }
1315
1336
 
1316
- [data-ui='select'] [data-part='item'][data-selected]:has(+ [data-part='item'][data-selected]) {
1337
+ [data-ui-select] [data-part-item][data-selected]:has(+ [data-part-item][data-selected]) {
1317
1338
  border-end-end-radius: 0;
1318
1339
  border-end-start-radius: 0;
1319
1340
  }
1320
1341
 
1321
- [data-ui='select'] [data-part='item'][data-selected] > [data-part='label'] {
1342
+ [data-ui-select] [data-part-item][data-selected] > [data-part-label] {
1322
1343
  font-weight: var(--slotted-font-weight-medium, 500);
1323
1344
  }
1324
1345
 
@@ -1329,7 +1350,7 @@
1329
1350
  * disabled surface rather than the highlight, and the text stays legible
1330
1351
  * instead of being faded toward it.
1331
1352
  */
1332
- [data-ui='select'] [data-part='item'][data-disabled] {
1353
+ [data-ui-select] [data-part-item][data-disabled] {
1333
1354
  color: var(--slotted-disabled-foreground, #64748b);
1334
1355
  cursor: not-allowed;
1335
1356
  }
@@ -1355,7 +1376,7 @@
1355
1376
  * would watch it disappear. A cursor lifts, always. What the row cannot do is
1356
1377
  * said by the ink and by the ring, which both step down to the disabled pair.
1357
1378
  */
1358
- [data-ui='select'] [data-part='item'][data-disabled][data-current] {
1379
+ [data-ui-select] [data-part-item][data-disabled][data-current] {
1359
1380
  box-shadow: inset 0 0 0 var(--slotted-border-width-thin, 1px)
1360
1381
  var(--slotted-disabled-border, #cbd5e1);
1361
1382
  color: var(--slotted-disabled-foreground, #64748b);
@@ -1369,7 +1390,7 @@
1369
1390
  * states the line box every cell inherits, exactly as tall as the line it
1370
1391
  * sits beside.
1371
1392
  */
1372
- [data-ui='select'] :is([data-part='indicator'], [data-part='icon']) {
1393
+ [data-ui-select] :is([data-part-indicator], [data-part-icon]) {
1373
1394
  block-size: 1lh;
1374
1395
  }
1375
1396
 
@@ -1382,7 +1403,7 @@
1382
1403
  * artwork of the consumer's own, centred and sized from the column through
1383
1404
  * `--slotted-icon-size`. No stylesheet fills it.
1384
1405
  */
1385
- [data-ui='select'] [data-part='icon'] {
1406
+ [data-ui-select] [data-part-icon] {
1386
1407
  --slotted-icon-size: var(--_content-icon-size);
1387
1408
 
1388
1409
  align-items: center;
@@ -1398,7 +1419,7 @@
1398
1419
  /* Column two, and the only column that gives way. It is scoped to the option
1399
1420
  rather than to the family: a chip in the control carries a `label` of its
1400
1421
  own, and this rule would have put it in the popup's second column (SL4). */
1401
- [data-ui='select'] [data-part='item'] > [data-part='label'] {
1422
+ [data-ui-select] [data-part-item] > [data-part-label] {
1402
1423
  grid-column: 2;
1403
1424
  grid-row: 1;
1404
1425
  min-inline-size: 0;
@@ -1419,7 +1440,7 @@
1419
1440
  overflow-wrap: anywhere;
1420
1441
  }
1421
1442
 
1422
- [data-ui='select'] [data-part='description'] {
1443
+ [data-ui-select] [data-part-description] {
1423
1444
  color: var(--_muted);
1424
1445
  font-size: var(--_secondary-font-size);
1425
1446
  grid-column: 2;
@@ -1429,7 +1450,7 @@
1429
1450
  overflow-wrap: anywhere;
1430
1451
  }
1431
1452
 
1432
- [data-ui='select'] [data-part='item'][data-disabled] > [data-part='description'] {
1453
+ [data-ui-select] [data-part-item][data-disabled] > [data-part-description] {
1433
1454
  color: inherit;
1434
1455
  }
1435
1456
 
@@ -1438,7 +1459,7 @@
1438
1459
  * reserved whether or not the check is drawn, so a list does not shift by
1439
1460
  * sixteen pixels as the reader moves through it.
1440
1461
  */
1441
- [data-ui='select'] [data-part='indicator'] {
1462
+ [data-ui-select] [data-part-indicator] {
1442
1463
  --slotted-icon-size: var(--_content-icon-size);
1443
1464
 
1444
1465
  align-items: center;
@@ -1455,13 +1476,13 @@
1455
1476
  transition: opacity var(--slotted-duration-short) var(--slotted-easing-standard);
1456
1477
  }
1457
1478
 
1458
- [data-ui='select'] [data-part='item'][data-selected] > [data-part='indicator'] {
1479
+ [data-ui-select] [data-part-item][data-selected] > [data-part-indicator] {
1459
1480
  opacity: 1;
1460
1481
  }
1461
1482
 
1462
1483
  /* ── Separator, empty, status ─────────────────────────────────────────── */
1463
1484
 
1464
- [data-ui='select'] [data-part='separator'] {
1485
+ [data-ui-select] [data-part-separator] {
1465
1486
  background-color: var(--slotted-select-separator-color, var(--_border-color));
1466
1487
  block-size: var(--_border-width);
1467
1488
  border: 0;
@@ -1477,7 +1498,7 @@
1477
1498
  * refuses to open on an empty collection and Radix paints nothing; the popup
1478
1499
  * here opens onto a sentence.
1479
1500
  */
1480
- [data-ui='select'] :is([data-part='empty'], [data-part='status']) {
1501
+ [data-ui-select] :is([data-part-empty], [data-part-status]) {
1481
1502
  color: var(--_muted);
1482
1503
  /**
1483
1504
  * Its own bidi run, ordered by its own content. "3 results" is a European
@@ -1512,7 +1533,7 @@
1512
1533
  * takes the same space as the empty message beside it. `combobox` draws the
1513
1534
  * count the same way, in the same place, for the same reason.
1514
1535
  */
1515
- [data-ui='select'] [data-part='status']:empty {
1536
+ [data-ui-select] [data-part-status]:empty {
1516
1537
  display: none;
1517
1538
  }
1518
1539
 
@@ -1528,7 +1549,7 @@
1528
1549
  * hidden from assistive technology: the `status` row beside them is the live
1529
1550
  * region and it already says what is happening.
1530
1551
  */
1531
- [data-ui='select'] [data-part='placeholder'] {
1552
+ [data-ui-select] [data-part-placeholder] {
1532
1553
  display: grid;
1533
1554
  /* The surface is a grid of option columns; the rows span all of them, as
1534
1555
  the status and empty rows do. */
@@ -1537,7 +1558,7 @@
1537
1558
  padding-inline: var(--_item-inset);
1538
1559
  }
1539
1560
 
1540
- [data-ui='select'] [data-part='placeholder'] > [data-ui='skeleton'] {
1561
+ [data-ui-select] [data-part-placeholder] > [data-ui-skeleton] {
1541
1562
  align-self: center;
1542
1563
  }
1543
1564
 
@@ -1545,17 +1566,17 @@
1545
1566
  * Each row is an option: the same minimum height, so three of them measure
1546
1567
  * what three options measure and the popup does not resize when they land.
1547
1568
  */
1548
- [data-ui='select'] [data-part='placeholder'] > * {
1569
+ [data-ui-select] [data-part-placeholder] > * {
1549
1570
  align-items: center;
1550
1571
  display: flex;
1551
1572
  min-block-size: var(--_item-height);
1552
1573
  }
1553
1574
 
1554
- [data-ui='select'] [data-part='placeholder'] > :nth-child(2) [data-ui='skeleton'] {
1575
+ [data-ui-select] [data-part-placeholder] > :nth-child(2) [data-ui-skeleton] {
1555
1576
  inline-size: 78%;
1556
1577
  }
1557
1578
 
1558
- [data-ui='select'] [data-part='placeholder'] > :nth-child(3) [data-ui='skeleton'] {
1579
+ [data-ui-select] [data-part-placeholder] > :nth-child(3) [data-ui-skeleton] {
1559
1580
  inline-size: 56%;
1560
1581
  }
1561
1582
 
@@ -1566,7 +1587,7 @@
1566
1587
  * many for one wait (SL6).
1567
1588
  */
1568
1589
 
1569
- [data-ui='select'] > [data-part='content'][data-loading] {
1590
+ [data-ui-select] > [data-part-content][data-loading] {
1570
1591
  cursor: progress;
1571
1592
  }
1572
1593
 
@@ -1579,13 +1600,13 @@
1579
1600
  * with no way to tell.
1580
1601
  */
1581
1602
  @media (forced-colors: active) {
1582
- [data-ui='select'] [data-part='item'][data-current] {
1603
+ [data-ui-select] [data-part-item][data-current] {
1583
1604
  background-color: Highlight;
1584
1605
  color: HighlightText;
1585
1606
  forced-color-adjust: none;
1586
1607
  }
1587
1608
 
1588
- [data-ui='select'] [data-part='item'][data-disabled][data-current] {
1609
+ [data-ui-select] [data-part-item][data-disabled][data-current] {
1589
1610
  background-color: Highlight;
1590
1611
  color: GrayText;
1591
1612
  }