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

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 +154 -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 +157 -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 +212 -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 +57 -52
  50. package/src/date-field/date-field.tokens.json +1 -0
  51. package/src/date-picker/date-picker.css +75 -57
  52. package/src/date-picker/date-picker.tokens.json +1 -0
  53. package/src/date-range-picker/date-range-picker.css +116 -118
  54. package/src/datetime-field/datetime-field.css +80 -80
  55. package/src/datetime-field/datetime-field.tokens.json +1 -0
  56. package/src/datetime-picker/datetime-picker.css +63 -63
  57. package/src/datetime-range-picker/datetime-range-picker.css +151 -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 +273 -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 +177 -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 +83 -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 +153 -132
  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 +91 -71
  161. package/src/tag/tag.tokens.json +9 -0
  162. package/src/tags-input/tags-input.css +147 -82
  163. package/src/tags-input/tags-input.tokens.json +7 -1
  164. package/src/text-field/text-field.css +134 -136
  165. package/src/text-field/text-field.tokens.json +1 -0
  166. package/src/textarea/textarea.css +33 -28
  167. package/src/textarea/textarea.tokens.json +1 -0
  168. package/src/time-field/time-field.css +74 -69
  169. package/src/time-field/time-field.tokens.json +1 -0
  170. package/src/time-picker/time-picker.css +58 -58
  171. package/src/time-range-picker/time-range-picker.css +128 -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
@@ -44,7 +44,7 @@
44
44
  * the two-line label clamp are `select`'s decisions, taken in an earlier
45
45
  * session. They are repeated here rather than shared because the three
46
46
  * families have three public identifiers, and a stylesheet that painted
47
- * `[data-ui='select']` from a multi-select would make one family's selector
47
+ * `[data-ui-select]` from a multi-select would make one family's selector
48
48
  * match another's DOM. The duplication is the price of that boundary.
49
49
  *
50
50
  * ── What this sheet decides on its own ───────────────────────────────
@@ -71,7 +71,7 @@
71
71
 
72
72
  /* ── The frame ────────────────────────────────────────────────────────── */
73
73
 
74
- [data-ui='multi-select'][data-part='root'] {
74
+ [data-ui-multi-select][data-part-root] {
75
75
  --_font-size: var(--slotted-control-font-size-md, 13px);
76
76
  --_height: var(--slotted-control-height-md, 34px);
77
77
  --_padding-inline: var(--slotted-control-padding-inline-md, 13px);
@@ -126,6 +126,8 @@
126
126
  font-family: var(--slotted-control-font-family, system-ui, sans-serif);
127
127
  font-size: var(--_font-size);
128
128
  gap: var(--slotted-space-1, 0.125rem);
129
+ /* In a flex row the item's basis is its content, not the whole row. */
130
+ flex-basis: content;
129
131
  inline-size: 100%;
130
132
  min-block-size: var(--_height);
131
133
  min-inline-size: 0;
@@ -145,7 +147,7 @@
145
147
  box-shadow var(--slotted-control-transition-duration) var(--slotted-control-transition-easing);
146
148
  }
147
149
 
148
- [data-ui='multi-select'][data-part='root']:not([data-full-width]) {
150
+ [data-ui-multi-select][data-part-root]:not([data-full-width]) {
149
151
  inline-size: auto;
150
152
  }
151
153
 
@@ -154,7 +156,7 @@
154
156
  * role is what the layout-grid pattern asks for, and the geometry belongs to
155
157
  * the row that wraps.
156
158
  */
157
- [data-ui='multi-select'] > [data-part='control'] {
159
+ [data-ui-multi-select] > [data-part-control] {
158
160
  display: flex;
159
161
  flex: 1 1 auto;
160
162
  min-inline-size: 0;
@@ -171,7 +173,7 @@
171
173
  * acts on it was narrower than the rhythm inside it. Whichever part comes
172
174
  * first after the row takes the row's own gap.
173
175
  */
174
- [data-ui='multi-select'] > [data-part='control'] + * {
176
+ [data-ui-multi-select] > [data-part-control] + * {
175
177
  margin-inline-start: var(--_row-gap);
176
178
  }
177
179
 
@@ -180,7 +182,7 @@
180
182
  * which is what keeps `ArrowDown` and `ArrowUp` free for the popup: there is
181
183
  * no cell above or below any cell, so the grid answers neither key.
182
184
  */
183
- [data-ui='multi-select'] [data-part='chips'] {
185
+ [data-ui-multi-select] [data-part-chips] {
184
186
  /**
185
187
  * `safe`, because this box scrolls. Centring a scroll container's content
186
188
  * pushes the first line above the scrollport when there is more than fits,
@@ -240,7 +242,7 @@
240
242
  scrollbar-width: none;
241
243
  }
242
244
 
243
- [data-ui='multi-select'] [data-part='chips']::-webkit-scrollbar {
245
+ [data-ui-multi-select] [data-part-chips]::-webkit-scrollbar {
244
246
  display: none;
245
247
  }
246
248
 
@@ -250,7 +252,7 @@
250
252
  * collapsed by `createCollapse` into the counting chip below, and the whole
251
253
  * set is still reachable in the popup's `chosen` band.
252
254
  */
253
- [data-ui='multi-select'][data-overflow='collapse'] [data-part='chips'] {
255
+ [data-ui-multi-select][data-overflow='collapse'] [data-part-chips] {
254
256
  flex-wrap: nowrap;
255
257
  max-block-size: none;
256
258
  overflow: hidden;
@@ -267,7 +269,7 @@
267
269
  * not to this family, so it has no `data-part` of its own to be selected by,
268
270
  * and the query's own input is told apart by the part it does have.
269
271
  */
270
- [data-ui='multi-select'] [data-part='chips'] input:not([data-part='input']) {
272
+ [data-ui-multi-select] [data-part-chips] input:not([data-part-input]) {
271
273
  background-color: transparent;
272
274
  border: 0;
273
275
  color: inherit;
@@ -284,7 +286,7 @@
284
286
  * or goes to the next one; the only chip that gives way is one wider than the
285
287
  * whole row, which is capped here and truncated by `tag.css`.
286
288
  */
287
- [data-ui='multi-select'] [data-part='chips'] > :not([data-part='field']) {
289
+ [data-ui-multi-select] [data-part-chips] > :not([data-part-field]) {
288
290
  flex: 0 0 auto;
289
291
  max-inline-size: 100%;
290
292
  /* The row's own height, so three chips plus their gaps divide the cap the
@@ -296,10 +298,10 @@
296
298
  /**
297
299
  * The chip takes the height the inside of this control has, through the
298
300
  * property `tag` reads for it. Set on the row, inherited by every chip, and
299
- * no rule of this sheet names `[data-ui='tag']`: the host stands beside the
301
+ * no rule of this sheet names `[data-ui-tag]`: the host stands beside the
300
302
  * tag sheet and never reaches into it.
301
303
  */
302
- [data-ui='multi-select'] [data-part='chips'] {
304
+ [data-ui-multi-select] [data-part-chips] {
303
305
  --slotted-control-inner-size: var(--_inner-size);
304
306
  }
305
307
 
@@ -313,7 +315,7 @@
313
315
  * of its own the moment two chips were in front of it, and a control 240
314
316
  * pixels wide holding two values then stood two rows tall with one row empty.
315
317
  */
316
- [data-ui='multi-select'] [data-part='field'] {
318
+ [data-ui-multi-select] [data-part-field] {
317
319
  align-items: center;
318
320
  display: flex;
319
321
  flex: 1 1 var(--slotted-multi-select-field-basis, 4rem);
@@ -326,7 +328,7 @@
326
328
  * everything that makes it a text control: the caret, the selection, IME
327
329
  * composition, autofill and every native attribute the consumer wrote.
328
330
  */
329
- [data-ui='multi-select'] [data-part='input'] {
331
+ [data-ui-multi-select] [data-part-input] {
330
332
  background-color: transparent;
331
333
  border: 0;
332
334
  color: inherit;
@@ -341,18 +343,28 @@
341
343
  text-overflow: ellipsis;
342
344
  }
343
345
 
344
- [data-ui='multi-select'] [data-part='input']::placeholder {
346
+ [data-ui-multi-select] [data-part-input]::placeholder {
345
347
  color: var(--slotted-multi-select-placeholder-color, var(--slotted-text-muted, GrayText));
346
348
  text-overflow: ellipsis;
347
349
  }
348
350
 
349
351
  /**
350
- * Autofill. Chrome paints its own ground over the control's, and a
351
- * hundred-pixel inset shadow is the only way to reach it. The signal is kept
352
- * rather than erased, in the accent surface the theme owns — the repair
353
- * `text-field` makes, for the same reason.
352
+ * Autofill. Chrome paints its own ground over the input, and a hundred-pixel
353
+ * inset shadow is the only way to reach it. The signal is kept rather than
354
+ * erased, in the accent surface the theme owns, and it is the whole
355
+ * control's: the frame takes the tint under its border and inside its
356
+ * corner, and the input repaints the browser's ground in the same colour.
357
+ * Painted on the input alone, the tint left the frame's padding, the slots
358
+ * and the buttons bare.
354
359
  */
355
- [data-ui='multi-select'] [data-part='input']:autofill {
360
+ [data-ui-multi-select][data-part-root]:has([data-part-input]:autofill) {
361
+ background-color: var(
362
+ --slotted-multi-select-autofill-background,
363
+ var(--slotted-tone-accent-surface)
364
+ );
365
+ }
366
+
367
+ [data-ui-multi-select] [data-part-input]:autofill {
356
368
  box-shadow: inset 0 0 0 100px
357
369
  var(--slotted-multi-select-autofill-background, var(--slotted-tone-accent-surface));
358
370
  -webkit-text-fill-color: var(--slotted-multi-select-color, var(--slotted-text, CanvasText));
@@ -376,7 +388,7 @@
376
388
  * its own inner ring two widths in to keep a sliver of ground outside it;
377
389
  * here that sliver would cost the text its leading.
378
390
  */
379
- [data-ui='multi-select'] [data-part='chips'] > :not([data-part='field']):focus-visible {
391
+ [data-ui-multi-select] [data-part-chips] > :not([data-part-field]):focus-visible {
380
392
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
381
393
  outline-offset: calc(-1 * var(--slotted-focus-ring-width, 2px));
382
394
  }
@@ -387,7 +399,7 @@
387
399
  * whose last one happens to be a count, and `createCollapse` measures it the
388
400
  * way it measures every other unit.
389
401
  */
390
- [data-ui='multi-select'] [data-part='chips'] > [data-count] {
402
+ [data-ui-multi-select] [data-part-chips] > [data-count] {
391
403
  flex: none;
392
404
  }
393
405
 
@@ -397,7 +409,7 @@
397
409
  * too narrow for a chip — because a counter with nothing to count against is
398
410
  * furniture.
399
411
  */
400
- [data-ui='multi-select'] > [data-part='counter'] {
412
+ [data-ui-multi-select] > [data-part-counter] {
401
413
  text-box: auto; /* refine the alignment */
402
414
  align-self: center;
403
415
  color: var(--slotted-multi-select-counter-color, var(--slotted-text-muted, GrayText));
@@ -426,25 +438,25 @@
426
438
  * uses for a chosen value. Not a warning tone: reaching the limit is the
427
439
  * reader arriving somewhere, not going wrong.
428
440
  */
429
- [data-ui='multi-select'][data-complete] > [data-part='counter'] {
441
+ [data-ui-multi-select][data-complete] > [data-part-counter] {
430
442
  color: var(--slotted-multi-select-counter-complete-color, var(--slotted-tone-accent-text));
431
443
  font-weight: var(--slotted-font-weight-medium, 500);
432
444
  }
433
445
 
434
446
  /* Too narrow for a chip: the count is the whole answer. */
435
- [data-ui='multi-select'][data-narrow] [data-part='chips'] > :not([data-part='field']) {
447
+ [data-ui-multi-select][data-narrow] [data-part-chips] > :not([data-part-field]) {
436
448
  display: none;
437
449
  }
438
450
 
439
451
  /* The row takes only the room the count and the buttons leave, so the count
440
452
  is what shortens when even that room runs out. */
441
- [data-ui='multi-select'][data-narrow] > [data-part='control'] {
453
+ [data-ui-multi-select][data-narrow] > [data-part-control] {
442
454
  flex-basis: 0;
443
455
  }
444
456
 
445
457
  /* ── The two buttons inside the frame ─────────────────────────────────── */
446
458
 
447
- [data-ui='multi-select'] > :is([data-part='clear'], [data-part='trigger']) {
459
+ [data-ui-multi-select] > :is([data-part-clear], [data-part-trigger]) {
448
460
  align-items: center;
449
461
  align-self: center;
450
462
  appearance: none;
@@ -476,7 +488,7 @@
476
488
  * control is 24 pixels tall — the WCAG 2.2 minimum — so nothing drawn inside
477
489
  * it can also be 24.
478
490
  */
479
- [data-ui='multi-select'] > :is([data-part='clear'], [data-part='trigger'])::after {
491
+ [data-ui-multi-select] > :is([data-part-clear], [data-part-trigger])::after {
480
492
  content: '';
481
493
  inset: min(0px, calc((100% - var(--slotted-target-min, 24px)) / 2));
482
494
  position: absolute;
@@ -487,23 +499,22 @@
487
499
  the hit area above grows to 44 pixels around them. Side by side, neither
488
500
  button reaches across the edge the two share. */
489
501
  @media (pointer: coarse) {
490
- [data-ui='multi-select'] > :is([data-part='clear'], [data-part='trigger'])::after {
502
+ [data-ui-multi-select] > :is([data-part-clear], [data-part-trigger])::after {
491
503
  inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
492
504
  }
493
505
 
494
- [data-ui='multi-select']
495
- > [data-part='clear']:has(+ [data-part='trigger']:not([hidden]))::after {
506
+ [data-ui-multi-select] > [data-part-clear]:has(+ [data-part-trigger]:not([hidden]))::after {
496
507
  inset-inline-end: 0;
497
508
  }
498
509
 
499
- [data-ui='multi-select'] > [data-part='clear']:not([hidden]) + [data-part='trigger']::after {
510
+ [data-ui-multi-select] > [data-part-clear]:not([hidden]) + [data-part-trigger]::after {
500
511
  inset-inline-start: 0;
501
512
  }
502
513
  }
503
514
 
504
515
  /* The cross and the chevron are `Glyph` elements the binding draws, sized
505
516
  here to the control's icon step. */
506
- [data-ui='multi-select'] > :is([data-part='clear'], [data-part='trigger']) {
517
+ [data-ui-multi-select] > :is([data-part-clear], [data-part-trigger]) {
507
518
  --slotted-icon-size: var(--_icon-size);
508
519
  }
509
520
 
@@ -512,7 +523,7 @@
512
523
  * button is what a reader presses and the arrow is what turns over. The
513
524
  * library's own `Glyph` in an `icon` box; a character is never an icon.
514
525
  */
515
- [data-ui='multi-select'] [data-part='arrow'] {
526
+ [data-ui-multi-select] [data-part-arrow] {
516
527
  align-items: center;
517
528
  block-size: var(--_icon-size);
518
529
  display: flex;
@@ -520,12 +531,12 @@
520
531
  justify-content: center;
521
532
  }
522
533
 
523
- [data-ui='multi-select'] [data-part='arrow'] > [data-ui='icon'] {
534
+ [data-ui-multi-select] [data-part-arrow] > [data-ui-icon] {
524
535
  transition: rotate var(--slotted-control-transition-duration)
525
536
  var(--slotted-control-transition-easing);
526
537
  }
527
538
 
528
- [data-ui='multi-select'][data-open] [data-part='arrow'] > [data-ui='icon'] {
539
+ [data-ui-multi-select][data-open] [data-part-arrow] > [data-ui-icon] {
529
540
  rotate: 180deg;
530
541
  }
531
542
 
@@ -536,7 +547,7 @@
536
547
  * onto anything yet — and the arc is the one `spinner/spinner.css` draws for
537
548
  * every family that waits.
538
549
  */
539
- [data-ui='multi-select'] [data-part='busy'] {
550
+ [data-ui-multi-select] [data-part-busy] {
540
551
  --slotted-spinner-size: var(--_icon-size);
541
552
 
542
553
  align-self: center;
@@ -546,7 +557,7 @@
546
557
 
547
558
  /* ── Size ─────────────────────────────────────────────────────────────── */
548
559
 
549
- [data-ui='multi-select'][data-part='root'][data-size='sm'] {
560
+ [data-ui-multi-select][data-part-root][data-size='sm'] {
550
561
  --_font-size: var(--slotted-control-font-size-sm, 12px);
551
562
  --_height: var(--slotted-control-height-sm, 30px);
552
563
  --_inner-size: var(--slotted-control-inner-size-sm, 22px);
@@ -555,7 +566,7 @@
555
566
  --_icon-size: max(var(--_icon-floor), var(--slotted-control-icon-size-sm, 14px));
556
567
  }
557
568
 
558
- [data-ui='multi-select'][data-part='root'][data-size='md'] {
569
+ [data-ui-multi-select][data-part-root][data-size='md'] {
559
570
  --_font-size: var(--slotted-control-font-size-md, 13px);
560
571
  --_height: var(--slotted-control-height-md, 34px);
561
572
  --_padding-inline: var(--slotted-control-padding-inline-md, 13px);
@@ -564,7 +575,7 @@
564
575
  --_inner-size: var(--slotted-control-inner-size-md, 24px);
565
576
  }
566
577
 
567
- [data-ui='multi-select'][data-part='root'][data-size='lg'] {
578
+ [data-ui-multi-select][data-part-root][data-size='lg'] {
568
579
  --_font-size: var(--slotted-control-font-size-lg, 14px);
569
580
  --_height: var(--slotted-control-height-lg, 38px);
570
581
  --_inner-size: var(--slotted-control-inner-size-lg, 28px);
@@ -575,7 +586,7 @@
575
586
 
576
587
  /* ── Variant ──────────────────────────────────────────────────────────── */
577
588
 
578
- [data-ui='multi-select'][data-part='root'][data-variant='subtle'] {
589
+ [data-ui-multi-select][data-part-root][data-variant='subtle'] {
579
590
  background-color: var(
580
591
  --slotted-multi-select-subtle-background,
581
592
  var(--slotted-surface-sunken, Canvas)
@@ -589,7 +600,7 @@
589
600
  /* No edge, no lift, no ground and no corner of its own: the cell it sits in
590
601
  is the box, the row is the ground, a cell has no corner, and the resting
591
602
  shadow would draw the cell where there is none. */
592
- [data-ui='multi-select'][data-part='root'][data-variant='plain'] {
603
+ [data-ui-multi-select][data-part-root][data-variant='plain'] {
593
604
  background-color: transparent;
594
605
  border-color: transparent;
595
606
  border-radius: var(--slotted-radius-none, 0px);
@@ -597,31 +608,31 @@
597
608
  }
598
609
 
599
610
  @media (forced-colors: active) {
600
- [data-ui='multi-select'][data-part='root'][data-variant='plain'] {
611
+ [data-ui-multi-select][data-part-root][data-variant='plain'] {
601
612
  border-color: ButtonBorder;
602
613
  }
603
614
  }
604
615
 
605
616
  /* ── States on the control ────────────────────────────────────────────── */
606
617
 
607
- [data-ui='multi-select'][data-part='root']:hover:not([data-disabled]):not([data-readonly]):not(
618
+ [data-ui-multi-select][data-part-root]:hover:not([data-disabled]):not([data-readonly]):not(
608
619
  [data-invalid]
609
620
  ) {
610
621
  border-color: var(--slotted-multi-select-hover-border-color, var(--slotted-tone-accent-border));
611
622
  }
612
623
 
613
- [data-ui='multi-select'][data-part='root'][data-variant='subtle']:hover:not([data-disabled]):not(
624
+ [data-ui-multi-select][data-part-root][data-variant='subtle']:hover:not([data-disabled]):not(
614
625
  [data-readonly]
615
- ):not([data-invalid]) {
626
+ ):not([data-invalid]):not(:has([data-part-input]:autofill)) {
616
627
  background-color: var(
617
628
  --slotted-multi-select-subtle-hover-background,
618
629
  var(--slotted-tone-secondary-subtle-hover)
619
630
  );
620
631
  }
621
632
 
622
- [data-ui='multi-select'][data-part='root'][data-variant='plain']:hover:not([data-disabled]):not(
633
+ [data-ui-multi-select][data-part-root][data-variant='plain']:hover:not([data-disabled]):not(
623
634
  [data-readonly]
624
- ):not([data-invalid]) {
635
+ ):not([data-invalid]):not(:has([data-part-input]:autofill)) {
625
636
  background-color: var(
626
637
  --slotted-multi-select-plain-hover-background,
627
638
  var(--slotted-tone-secondary-subtle-hover)
@@ -637,14 +648,14 @@
637
648
  * script, after a key, and a browser does not always match `:focus-visible`
638
649
  * on an element script moved focus to.
639
650
  */
640
- [data-ui='multi-select'][data-part='root']:has([data-part='input']:focus-visible),
641
- [data-ui='multi-select'][data-part='root']:has(
642
- [data-part='chips'] > :not([data-part='field']):focus-visible
651
+ [data-ui-multi-select][data-part-root]:has([data-part-input]:focus-visible),
652
+ [data-ui-multi-select][data-part-root]:has(
653
+ [data-part-chips] > :not([data-part-field]):focus-visible
643
654
  ) {
644
655
  box-shadow: var(--slotted-control-shadow-focus-geometry, 0 1px 4px -1px)
645
656
  var(--slotted-focus-ring-color, Highlight);
646
657
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
647
- outline-offset: var(--slotted-focus-ring-offset, 2px);
658
+ outline-offset: var(--slotted-control-focus-ring-offset, var(--slotted-focus-ring-offset, 2px));
648
659
  }
649
660
 
650
661
  /**
@@ -654,11 +665,9 @@
654
665
  * shadow that appears only under focus is a cell that changes size when it
655
666
  * is used.
656
667
  */
657
- [data-ui='multi-select'][data-part='root'][data-variant='plain']:has(
658
- [data-part='input']:focus-visible
659
- ),
660
- [data-ui='multi-select'][data-part='root'][data-variant='plain']:has(
661
- [data-part='chips'] > :not([data-part='field']):focus-visible
668
+ [data-ui-multi-select][data-part-root][data-variant='plain']:has([data-part-input]:focus-visible),
669
+ [data-ui-multi-select][data-part-root][data-variant='plain']:has(
670
+ [data-part-chips] > :not([data-part-field]):focus-visible
662
671
  ) {
663
672
  box-shadow: none;
664
673
  outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
@@ -669,17 +678,17 @@
669
678
  * is two rings for one focus. The frame keeps its lift and gives up the
670
679
  * outline while the ring is inside it.
671
680
  */
672
- [data-ui='multi-select'][data-part='root']:has(
673
- [data-part='chips'] > :not([data-part='field']):focus-visible
681
+ [data-ui-multi-select][data-part-root]:has(
682
+ [data-part-chips] > :not([data-part-field]):focus-visible
674
683
  ) {
675
684
  outline: none;
676
685
  }
677
686
 
678
- [data-ui='multi-select'][data-part='root'][data-open]:not([data-disabled]) {
687
+ [data-ui-multi-select][data-part-root][data-open]:not([data-disabled]) {
679
688
  border-color: var(--slotted-multi-select-open-border-color, var(--slotted-tone-accent-border));
680
689
  }
681
690
 
682
- [data-ui='multi-select'][data-part='root'][data-invalid] {
691
+ [data-ui-multi-select][data-part-root][data-invalid] {
683
692
  --slotted-focus-ring-color: var(
684
693
  --slotted-multi-select-invalid-focus-ring-color,
685
694
  var(--slotted-focus-ring-color-invalid, Highlight)
@@ -707,9 +716,9 @@
707
716
  box-shadow: var(--_invalid-edge);
708
717
  }
709
718
 
710
- [data-ui='multi-select'][data-part='root'][data-invalid]:has([data-part='input']:focus-visible),
711
- [data-ui='multi-select'][data-part='root'][data-invalid]:has(
712
- [data-part='chips'] > :not([data-part='field']):focus-visible
719
+ [data-ui-multi-select][data-part-root][data-invalid]:has([data-part-input]:focus-visible),
720
+ [data-ui-multi-select][data-part-root][data-invalid]:has(
721
+ [data-part-chips] > :not([data-part-field]):focus-visible
713
722
  ) {
714
723
  box-shadow:
715
724
  var(--_invalid-edge),
@@ -717,11 +726,11 @@
717
726
  var(--slotted-focus-ring-color, Highlight);
718
727
  }
719
728
 
720
- [data-ui='multi-select'][data-part='root'][data-variant='plain'][data-invalid]:has(
721
- [data-part='input']:focus-visible
729
+ [data-ui-multi-select][data-part-root][data-variant='plain'][data-invalid]:has(
730
+ [data-part-input]:focus-visible
722
731
  ),
723
- [data-ui='multi-select'][data-part='root'][data-variant='plain'][data-invalid]:has(
724
- [data-part='chips'] > :not([data-part='field']):focus-visible
732
+ [data-ui-multi-select][data-part-root][data-variant='plain'][data-invalid]:has(
733
+ [data-part-chips] > :not([data-part-field]):focus-visible
725
734
  ) {
726
735
  /* The ring lies inside the box here, over the border and an edge as wide as
727
736
  it; the edge reaches past the ring. */
@@ -739,23 +748,24 @@
739
748
  * control draws its ring double, which a valid ring is not.
740
749
  */
741
750
  @media (forced-colors: active) {
742
- [data-ui='multi-select'][data-part='root'][data-invalid] {
751
+ [data-ui-multi-select][data-part-root][data-invalid] {
743
752
  outline: var(--_invalid-edge-width) solid CanvasText;
744
753
  outline-offset: calc(
745
754
  -1 * (var(--slotted-control-border-width, 1px) + var(--_invalid-edge-width))
746
755
  );
747
756
  }
748
757
 
749
- [data-ui='multi-select'][data-part='root'][data-invalid]:has(
750
- [data-part='input']:focus-visible
751
- ) {
758
+ [data-ui-multi-select][data-part-root][data-invalid]:has([data-part-input]:focus-visible) {
752
759
  outline: calc(var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)) double
753
760
  var(--slotted-focus-ring-color, Highlight);
754
- outline-offset: var(--slotted-focus-ring-offset, 2px);
761
+ outline-offset: var(
762
+ --slotted-control-focus-ring-offset,
763
+ var(--slotted-focus-ring-offset, 2px)
764
+ );
755
765
  }
756
766
 
757
- [data-ui='multi-select'][data-part='root'][data-variant='plain'][data-invalid]:has(
758
- [data-part='input']:focus-visible
767
+ [data-ui-multi-select][data-part-root][data-variant='plain'][data-invalid]:has(
768
+ [data-part-input]:focus-visible
759
769
  ) {
760
770
  outline: calc(var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)) double
761
771
  var(--slotted-focus-ring-color, Highlight);
@@ -764,11 +774,11 @@
764
774
  );
765
775
  }
766
776
 
767
- [data-ui='multi-select'][data-part='root'][data-invalid]:has(
768
- [data-part='chips'] > :not([data-part='field']):focus-visible
777
+ [data-ui-multi-select][data-part-root][data-invalid]:has(
778
+ [data-part-chips] > :not([data-part-field]):focus-visible
769
779
  ),
770
- [data-ui='multi-select'][data-part='root'][data-variant='plain'][data-invalid]:has(
771
- [data-part='chips'] > :not([data-part='field']):focus-visible
780
+ [data-ui-multi-select][data-part-root][data-variant='plain'][data-invalid]:has(
781
+ [data-part-chips] > :not([data-part-field]):focus-visible
772
782
  ) {
773
783
  outline: var(--_invalid-edge-width) solid CanvasText;
774
784
  outline-offset: calc(
@@ -783,14 +793,14 @@
783
793
  * the text half; the rest is the family's, because neither pattern has a
784
794
  * readonly for a combobox.
785
795
  */
786
- [data-ui='multi-select'][data-part='root'][data-readonly] {
796
+ [data-ui-multi-select][data-part-root][data-readonly] {
787
797
  background-color: var(
788
798
  --slotted-multi-select-readonly-background,
789
799
  var(--slotted-tone-secondary-subtle-hover)
790
800
  );
791
801
  }
792
802
 
793
- [data-ui='multi-select'][data-part='root'][data-readonly] [data-part='arrow'] {
803
+ [data-ui-multi-select][data-part-root][data-readonly] [data-part-arrow] {
794
804
  opacity: 0.5;
795
805
  }
796
806
 
@@ -799,8 +809,8 @@
799
809
  * because a disabled `fieldset` disables every control inside it and the
800
810
  * control has no way to say so.
801
811
  */
802
- [data-ui='multi-select'][data-part='root'][data-disabled],
803
- [data-ui='multi-select'][data-part='root']:has([data-part='input']:disabled) {
812
+ [data-ui-multi-select][data-part-root][data-disabled],
813
+ [data-ui-multi-select][data-part-root]:has([data-part-input]:disabled) {
804
814
  background-color: var(
805
815
  --slotted-multi-select-disabled-background,
806
816
  var(--slotted-disabled-background)
@@ -811,16 +821,16 @@
811
821
  cursor: not-allowed;
812
822
  }
813
823
 
814
- [data-ui='multi-select']
815
- > :is([data-part='clear'], [data-part='trigger']):hover:not(:disabled):not([data-disabled]) {
824
+ [data-ui-multi-select]
825
+ > :is([data-part-clear], [data-part-trigger]):hover:not(:disabled):not([data-disabled]) {
816
826
  background-color: var(
817
827
  --slotted-multi-select-action-hover-background,
818
828
  var(--slotted-tone-secondary-subtle-hover)
819
829
  );
820
830
  }
821
831
 
822
- [data-ui='multi-select']
823
- > :is([data-part='clear'], [data-part='trigger']):active:not(:disabled):not([data-disabled]) {
832
+ [data-ui-multi-select]
833
+ > :is([data-part-clear], [data-part-trigger]):active:not(:disabled):not([data-disabled]) {
824
834
  background-color: var(
825
835
  --slotted-multi-select-action-active-background,
826
836
  var(--slotted-tone-secondary-subtle-active)
@@ -833,14 +843,14 @@
833
843
  * and a ring around the whole frame would sit still while focus moved inside
834
844
  * it.
835
845
  */
836
- [data-ui='multi-select'] > :is([data-part='clear'], [data-part='trigger']):focus-visible {
846
+ [data-ui-multi-select] > :is([data-part-clear], [data-part-trigger]):focus-visible {
837
847
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
838
848
  outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
839
849
  }
840
850
 
841
851
  /* ── The layer ────────────────────────────────────────────────────────── */
842
852
 
843
- [data-ui='multi-select'][data-part='positioner'] {
853
+ [data-ui-multi-select][data-part-positioner] {
844
854
  --_surface: var(--slotted-multi-select-surface, var(--slotted-surface-raised, #ffffff));
845
855
  --_text: var(--slotted-multi-select-content-text, var(--slotted-text, #0f172a));
846
856
  --_muted: var(--slotted-multi-select-content-text-muted, var(--slotted-text-muted, #5b6b7f));
@@ -899,7 +909,6 @@
899
909
  box-sizing: border-box;
900
910
  pointer-events: none;
901
911
 
902
- opacity: 0;
903
912
  /**
904
913
  * The layer arrives along the axis it opens on — from one space step above
905
914
  * its place when it opens downward, from one step below when it opens
@@ -909,17 +918,15 @@
909
918
  */
910
919
  --_enter-distance: var(--slotted-space-2, 0.25rem);
911
920
  translate: 0 calc(-1 * var(--_enter-distance));
912
- transition:
913
- opacity var(--slotted-duration-short) var(--slotted-easing-exit),
914
- translate var(--slotted-duration-short) var(--slotted-easing-exit);
921
+ transition: translate var(--slotted-duration-short) var(--slotted-easing-exit);
915
922
  }
916
923
 
917
- [data-ui='multi-select'][data-part='positioner'][data-side='top'] {
924
+ [data-ui-multi-select][data-part-positioner][data-side='top'] {
918
925
  translate: 0 var(--_enter-distance);
919
926
  }
920
927
 
921
928
  /* A lateral side has no block direction to arrive from, so it only fades. */
922
- [data-ui='multi-select'][data-part='positioner']:is([data-side='left'], [data-side='right']) {
929
+ [data-ui-multi-select][data-part-positioner]:is([data-side='left'], [data-side='right']) {
923
930
  translate: 0 0;
924
931
  }
925
932
 
@@ -931,8 +938,7 @@
931
938
  * it had one. A keyframe states where it starts. The exit stays a transition:
932
939
  * it leaves from wherever the layer is, on the closed rule's durations.
933
940
  */
934
- [data-ui='multi-select'][data-part='positioner'][data-open] {
935
- opacity: 1;
941
+ [data-ui-multi-select][data-part-positioner][data-open] {
936
942
  translate: 0 0;
937
943
  transition: none;
938
944
  }
@@ -942,32 +948,23 @@
942
948
  * with the side, and a layer written open in static markup — the harness, a
943
949
  * docs snippet — is simply there, and is photographed where it stands.
944
950
  */
945
- [data-ui='multi-select'][data-part='positioner'][data-open][data-positioned] {
951
+ [data-ui-multi-select][data-part-positioner][data-open][data-positioned] {
946
952
  animation: slotted-multi-select-enter-down var(--slotted-duration-medium)
947
953
  var(--slotted-easing-enter);
948
954
  }
949
955
 
950
- [data-ui='multi-select'][data-part='positioner'][data-open][data-positioned][data-side='top'] {
956
+ [data-ui-multi-select][data-part-positioner][data-open][data-positioned][data-side='top'] {
951
957
  animation-name: slotted-multi-select-enter-up;
952
958
  }
953
959
 
954
- [data-ui='multi-select'][data-part='positioner'][data-open][data-positioned]:is(
955
- [data-side='left'],
956
- [data-side='right']
957
- ) {
958
- animation-name: slotted-multi-select-fade;
959
- }
960
-
961
960
  @keyframes slotted-multi-select-enter-down {
962
961
  from {
963
- opacity: 0;
964
962
  translate: 0 calc(-1 * var(--_enter-distance));
965
963
  }
966
964
  }
967
965
 
968
966
  @keyframes slotted-multi-select-enter-up {
969
967
  from {
970
- opacity: 0;
971
968
  translate: 0 var(--_enter-distance);
972
969
  }
973
970
  }
@@ -978,39 +975,60 @@
978
975
  }
979
976
  }
980
977
 
978
+ /**
979
+ * The fade belongs to the part that paints the surface, and the layer only
980
+ * moves. In Chromium an ancestor with `opacity` below one is the Backdrop Root
981
+ * of what it holds, so a `backdrop-filter` on the content blurs nothing until
982
+ * the layer is opaque and then appears at once. The content's own opacity
983
+ * leaves its own filter drawn on every frame of the motion.
984
+ */
985
+ [data-ui-multi-select][data-part-positioner] > [data-part-content] {
986
+ opacity: 0;
987
+ transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
988
+ }
989
+
990
+ [data-ui-multi-select][data-part-positioner][data-open] > [data-part-content] {
991
+ opacity: 1;
992
+ transition: none;
993
+ }
994
+
995
+ [data-ui-multi-select][data-part-positioner][data-open][data-positioned] > [data-part-content] {
996
+ animation: slotted-multi-select-fade var(--slotted-duration-medium) var(--slotted-easing-enter);
997
+ }
998
+
981
999
  /* Stillness keeps the fade and drops the movement. */
982
1000
  @media (prefers-reduced-motion: reduce) {
983
- [data-ui='multi-select'][data-part='positioner'],
984
- [data-ui='multi-select'][data-part='positioner'][data-side='top'],
985
- [data-ui='multi-select'][data-part='positioner'][data-side='left'],
986
- [data-ui='multi-select'][data-part='positioner'][data-side='right'] {
1001
+ [data-ui-multi-select][data-part-positioner],
1002
+ [data-ui-multi-select][data-part-positioner][data-side='top'],
1003
+ [data-ui-multi-select][data-part-positioner][data-side='left'],
1004
+ [data-ui-multi-select][data-part-positioner][data-side='right'] {
987
1005
  translate: 0 0;
988
- transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
1006
+ transition: translate var(--slotted-duration-short) var(--slotted-easing-exit);
989
1007
  }
990
1008
 
991
- [data-ui='multi-select'][data-part='positioner'][data-open][data-positioned],
992
- [data-ui='multi-select'][data-part='positioner'][data-open][data-positioned][data-side='top'],
993
- [data-ui='multi-select'][data-part='positioner'][data-open][data-positioned][data-side='left'],
994
- [data-ui='multi-select'][data-part='positioner'][data-open][data-positioned][data-side='right'] {
995
- animation-name: slotted-multi-select-fade;
1009
+ [data-ui-multi-select][data-part-positioner][data-open][data-positioned],
1010
+ [data-ui-multi-select][data-part-positioner][data-open][data-positioned][data-side='top'],
1011
+ [data-ui-multi-select][data-part-positioner][data-open][data-positioned][data-side='left'],
1012
+ [data-ui-multi-select][data-part-positioner][data-open][data-positioned][data-side='right'] {
1013
+ animation-name: none;
996
1014
  }
997
1015
  }
998
1016
 
999
- [data-ui='multi-select'][data-part='positioner'][data-detached] {
1017
+ [data-ui-multi-select][data-part-positioner][data-detached] {
1000
1018
  visibility: hidden;
1001
1019
  }
1002
1020
 
1003
- [data-ui='multi-select'][data-part='positioner'][data-width='anchor'] {
1021
+ [data-ui-multi-select][data-part-positioner][data-width='anchor'] {
1004
1022
  inline-size: var(--slotted-positioner-anchor-width, auto);
1005
1023
  }
1006
1024
 
1007
- [data-ui='multi-select'][data-part='positioner'][data-width='content'] {
1025
+ [data-ui-multi-select][data-part-positioner][data-width='content'] {
1008
1026
  inline-size: max-content;
1009
1027
  max-inline-size: min(var(--_measure), var(--slotted-positioner-available-width, 100vw));
1010
1028
  min-inline-size: var(--slotted-positioner-anchor-width, auto);
1011
1029
  }
1012
1030
 
1013
- [data-ui='multi-select'][data-part='positioner'][data-size='sm'] {
1031
+ [data-ui-multi-select][data-part-positioner][data-size='sm'] {
1014
1032
  --_item-inset: var(--slotted-control-padding-inline-sm, 0.625rem);
1015
1033
  --_item-height: var(--slotted-control-height-sm, 30px);
1016
1034
  --_content-font-size: var(--slotted-control-font-size-sm, 12px);
@@ -1019,7 +1037,7 @@
1019
1037
  --_column-gap: var(--slotted-control-gap-sm, 0.375rem);
1020
1038
  }
1021
1039
 
1022
- [data-ui='multi-select'][data-part='positioner'][data-size='lg'] {
1040
+ [data-ui-multi-select][data-part-positioner][data-size='lg'] {
1023
1041
  --_item-inset: var(--slotted-control-padding-inline-lg, 1rem);
1024
1042
  --_item-height: var(--slotted-control-height-lg, 38px);
1025
1043
  --_content-font-size: var(--slotted-control-font-size-lg, 14px);
@@ -1030,7 +1048,7 @@
1030
1048
 
1031
1049
  /* ── The surface ──────────────────────────────────────────────────────── */
1032
1050
 
1033
- [data-ui='multi-select'] > [data-part='content'] {
1051
+ [data-ui-multi-select] > [data-part-content] {
1034
1052
  background: var(--_surface);
1035
1053
  border: var(--_border-width) solid var(--_border-color);
1036
1054
  border-radius: var(--_radius);
@@ -1057,7 +1075,7 @@
1057
1075
  * interaction — the highlight is `aria-activedescendant`, not focus — so a
1058
1076
  * ring here would draw a box around something nobody is operating.
1059
1077
  */
1060
- [data-ui='multi-select'] > [data-part='content']:focus-visible {
1078
+ [data-ui-multi-select] > [data-part-content]:focus-visible {
1061
1079
  outline: none;
1062
1080
  }
1063
1081
 
@@ -1073,7 +1091,7 @@
1073
1091
  * option's own row, which the list has open beside it, and the chips in the
1074
1092
  * control, which are focusable. `select` recorded the same decision.
1075
1093
  */
1076
- [data-ui='multi-select'] [data-part='chosen'] {
1094
+ [data-ui-multi-select] [data-part-chosen] {
1077
1095
  background: var(--_surface);
1078
1096
  border-block-end: var(--_border-width) solid var(--_border-color);
1079
1097
  box-sizing: border-box;
@@ -1102,7 +1120,7 @@
1102
1120
 
1103
1121
  /* ── Groups ───────────────────────────────────────────────────────────── */
1104
1122
 
1105
- [data-ui='multi-select'] [data-part='group'] {
1123
+ [data-ui-multi-select] [data-part-group] {
1106
1124
  display: grid;
1107
1125
  grid-column: 1 / -1;
1108
1126
  grid-template-columns: subgrid;
@@ -1116,12 +1134,12 @@
1116
1134
  * author rule wins over the user agent sheet. Without this the search
1117
1135
  * filtered nothing the reader could see.
1118
1136
  */
1119
- [data-ui='multi-select'] [data-part='item'][hidden],
1120
- [data-ui='multi-select'] [data-part='group'][hidden] {
1137
+ [data-ui-multi-select] [data-part-item][hidden],
1138
+ [data-ui-multi-select] [data-part-group][hidden] {
1121
1139
  display: none;
1122
1140
  }
1123
1141
 
1124
- [data-ui='multi-select'] [data-part='group-label'] {
1142
+ [data-ui-multi-select] [data-part-group-label] {
1125
1143
  color: var(--_muted);
1126
1144
  font-size: var(--_secondary-font-size);
1127
1145
  font-weight: var(--slotted-font-weight-semibold, 600);
@@ -1133,7 +1151,7 @@
1133
1151
 
1134
1152
  /* ── Options ──────────────────────────────────────────────────────────── */
1135
1153
 
1136
- [data-ui='multi-select'] [data-part='item'] {
1154
+ [data-ui-multi-select] [data-part-item] {
1137
1155
  align-content: center;
1138
1156
  border-radius: var(--_item-radius);
1139
1157
  box-sizing: border-box;
@@ -1157,7 +1175,7 @@
1157
1175
  var(--slotted-control-transition-easing, var(--slotted-easing-standard));
1158
1176
  }
1159
1177
 
1160
- [data-ui='multi-select'] [data-part='item'][data-current] {
1178
+ [data-ui-multi-select] [data-part-item][data-current] {
1161
1179
  background-color: var(--_highlight);
1162
1180
  /**
1163
1181
  * A ring as well as a ground. Nothing on this surface holds focus — DOM
@@ -1171,11 +1189,11 @@
1171
1189
  var(--slotted-multi-select-highlight-ring, var(--slotted-tone-accent-border));
1172
1190
  }
1173
1191
 
1174
- [data-ui='multi-select'] [data-part='item']:not([data-disabled]):active {
1192
+ [data-ui-multi-select] [data-part-item]:not([data-disabled]):active {
1175
1193
  background-color: var(--_highlight-active);
1176
1194
  }
1177
1195
 
1178
- [data-ui='multi-select'] [data-part='item'][data-selected] {
1196
+ [data-ui-multi-select] [data-part-item][data-selected] {
1179
1197
  color: var(--_selected-color);
1180
1198
  }
1181
1199
 
@@ -1188,22 +1206,21 @@
1188
1206
  * and ends. `select` and `combobox` answer the same way, and
1189
1207
  * `selection-block.test.mjs` holds all of them to it.
1190
1208
  */
1191
- [data-ui='multi-select'] [data-part='item'][data-selected] + [data-part='item'][data-selected] {
1209
+ [data-ui-multi-select] [data-part-item][data-selected] + [data-part-item][data-selected] {
1192
1210
  border-start-end-radius: 0;
1193
1211
  border-start-start-radius: 0;
1194
1212
  }
1195
1213
 
1196
- [data-ui='multi-select']
1197
- [data-part='item'][data-selected]:has(+ [data-part='item'][data-selected]) {
1214
+ [data-ui-multi-select] [data-part-item][data-selected]:has(+ [data-part-item][data-selected]) {
1198
1215
  border-end-end-radius: 0;
1199
1216
  border-end-start-radius: 0;
1200
1217
  }
1201
1218
 
1202
- [data-ui='multi-select'] [data-part='item'][data-selected] > [data-part='label'] {
1219
+ [data-ui-multi-select] [data-part-item][data-selected] > [data-part-label] {
1203
1220
  font-weight: var(--slotted-font-weight-medium, 500);
1204
1221
  }
1205
1222
 
1206
- [data-ui='multi-select'] [data-part='item'][data-disabled] {
1223
+ [data-ui-multi-select] [data-part-item][data-disabled] {
1207
1224
  color: var(--slotted-disabled-foreground, #64748b);
1208
1225
  cursor: not-allowed;
1209
1226
  }
@@ -1221,7 +1238,7 @@
1221
1238
  * the row cannot do is said by the ink and by the ring, which both step down
1222
1239
  * to the disabled pair.
1223
1240
  */
1224
- [data-ui='multi-select'] [data-part='item'][data-disabled][data-current] {
1241
+ [data-ui-multi-select] [data-part-item][data-disabled][data-current] {
1225
1242
  box-shadow: inset 0 0 0 var(--slotted-border-width-thin, 1px)
1226
1243
  var(--slotted-disabled-border, #cbd5e1);
1227
1244
  color: var(--slotted-disabled-foreground, #64748b);
@@ -1229,13 +1246,13 @@
1229
1246
 
1230
1247
  /* ── The cells ────────────────────────────────────────────────────────── */
1231
1248
 
1232
- [data-ui='multi-select'] [data-part='item'] > :is([data-part='indicator'], [data-part='icon']) {
1249
+ [data-ui-multi-select] [data-part-item] > :is([data-part-indicator], [data-part-icon]) {
1233
1250
  block-size: 1lh;
1234
1251
  }
1235
1252
 
1236
1253
  /* Column one holds content and paints none: a `Glyph` in an `Icon` box, or
1237
1254
  artwork of the consumer's own, centred and sized from the column. */
1238
- [data-ui='multi-select'] [data-part='item'] > [data-part='icon'] {
1255
+ [data-ui-multi-select] [data-part-item] > [data-part-icon] {
1239
1256
  --slotted-icon-size: var(--_content-icon-size);
1240
1257
 
1241
1258
  align-items: center;
@@ -1248,7 +1265,7 @@
1248
1265
  margin-inline-end: var(--_column-gap);
1249
1266
  }
1250
1267
 
1251
- [data-ui='multi-select'] [data-part='item'] > [data-part='label'] {
1268
+ [data-ui-multi-select] [data-part-item] > [data-part-label] {
1252
1269
  grid-column: 2;
1253
1270
  grid-row: 1;
1254
1271
  min-inline-size: 0;
@@ -1259,7 +1276,7 @@
1259
1276
  overflow-wrap: anywhere;
1260
1277
  }
1261
1278
 
1262
- [data-ui='multi-select'] [data-part='item'] > [data-part='description'] {
1279
+ [data-ui-multi-select] [data-part-item] > [data-part-description] {
1263
1280
  color: var(--_muted);
1264
1281
  font-size: var(--_secondary-font-size);
1265
1282
  grid-column: 2;
@@ -1269,12 +1286,12 @@
1269
1286
  overflow-wrap: anywhere;
1270
1287
  }
1271
1288
 
1272
- [data-ui='multi-select'] [data-part='item'][data-disabled] > [data-part='description'] {
1289
+ [data-ui-multi-select] [data-part-item][data-disabled] > [data-part-description] {
1273
1290
  color: inherit;
1274
1291
  }
1275
1292
 
1276
1293
  /* The tick is a `Glyph` the binding draws, at the content's icon step. */
1277
- [data-ui='multi-select'] [data-part='item'] > [data-part='indicator'] {
1294
+ [data-ui-multi-select] [data-part-item] > [data-part-indicator] {
1278
1295
  --slotted-icon-size: var(--_content-icon-size);
1279
1296
 
1280
1297
  align-items: center;
@@ -1289,7 +1306,7 @@
1289
1306
  transition: opacity var(--slotted-duration-short) var(--slotted-easing-standard);
1290
1307
  }
1291
1308
 
1292
- [data-ui='multi-select'] [data-part='item'][data-selected] > [data-part='indicator'] {
1309
+ [data-ui-multi-select] [data-part-item][data-selected] > [data-part-indicator] {
1293
1310
  opacity: 1;
1294
1311
  }
1295
1312
 
@@ -1299,7 +1316,7 @@
1299
1316
  * plus rather than the check: the check says "this is in the set" and nothing
1300
1317
  * is in the set yet. The binding draws the plus; the rule only shows it.
1301
1318
  */
1302
- [data-ui='multi-select'] [data-part='item'][data-create] > [data-part='indicator'] {
1319
+ [data-ui-multi-select] [data-part-item][data-create] > [data-part-indicator] {
1303
1320
  opacity: 1;
1304
1321
  }
1305
1322
 
@@ -1312,13 +1329,13 @@
1312
1329
  * Latin word between them. The repair `status`, `empty` and the counter all
1313
1330
  * make, for the same reason.
1314
1331
  */
1315
- [data-ui='multi-select'] [data-part='item'][data-create] > [data-part='label'] {
1332
+ [data-ui-multi-select] [data-part-item][data-create] > [data-part-label] {
1316
1333
  unicode-bidi: plaintext;
1317
1334
  }
1318
1335
 
1319
1336
  /* ── Separator, empty, status ─────────────────────────────────────────── */
1320
1337
 
1321
- [data-ui='multi-select'] [data-part='separator'] {
1338
+ [data-ui-multi-select] [data-part-separator] {
1322
1339
  background-color: var(--slotted-multi-select-separator-color, var(--_border-color));
1323
1340
  block-size: var(--_border-width);
1324
1341
  border: 0;
@@ -1332,7 +1349,7 @@
1332
1349
  * keep the surface's measure rather than collapsing, so nothing jumps when
1333
1350
  * the results land.
1334
1351
  */
1335
- [data-ui='multi-select'] :is([data-part='empty'], [data-part='status']) {
1352
+ [data-ui-multi-select] :is([data-part-empty], [data-part-status]) {
1336
1353
  color: var(--_muted);
1337
1354
  /* Its own bidi run, ordered by its own content: "3 results" is a European
1338
1355
  number, a neutral space and a Latin word, and in a right-to-left document
@@ -1368,7 +1385,7 @@
1368
1385
  * The status row is also the live region that announces the count, so it is
1369
1386
  * often present with nothing to draw. A row with no text takes no space.
1370
1387
  */
1371
- [data-ui='multi-select'] [data-part='status']:empty {
1388
+ [data-ui-multi-select] [data-part-status]:empty {
1372
1389
  display: none;
1373
1390
  }
1374
1391
 
@@ -1379,47 +1396,47 @@
1379
1396
  * bars are `skeleton/skeleton.css`'s, and they are hidden from assistive
1380
1397
  * technology because the `status` row beside them is the live region.
1381
1398
  */
1382
- [data-ui='multi-select'] [data-part='placeholder'] {
1399
+ [data-ui-multi-select] [data-part-placeholder] {
1383
1400
  display: grid;
1384
1401
  grid-column: 1 / -1;
1385
1402
  padding-block: var(--slotted-space-2, 0.25rem);
1386
1403
  padding-inline: var(--_item-inset);
1387
1404
  }
1388
1405
 
1389
- [data-ui='multi-select'] [data-part='placeholder'] > * {
1406
+ [data-ui-multi-select] [data-part-placeholder] > * {
1390
1407
  align-items: center;
1391
1408
  display: flex;
1392
1409
  min-block-size: var(--_item-height);
1393
1410
  }
1394
1411
 
1395
- [data-ui='multi-select'] [data-part='placeholder'] > [data-ui='skeleton'] {
1412
+ [data-ui-multi-select] [data-part-placeholder] > [data-ui-skeleton] {
1396
1413
  align-self: center;
1397
1414
  }
1398
1415
 
1399
1416
  /* Three ragged widths: three identical bars read as a table, and a list of
1400
1417
  labels is ragged. */
1401
- [data-ui='multi-select'] [data-part='placeholder'] > :nth-child(2) [data-ui='skeleton'] {
1418
+ [data-ui-multi-select] [data-part-placeholder] > :nth-child(2) [data-ui-skeleton] {
1402
1419
  inline-size: 78%;
1403
1420
  }
1404
1421
 
1405
- [data-ui='multi-select'] [data-part='placeholder'] > :nth-child(3) [data-ui='skeleton'] {
1422
+ [data-ui-multi-select] [data-part-placeholder] > :nth-child(3) [data-ui-skeleton] {
1406
1423
  inline-size: 56%;
1407
1424
  }
1408
1425
 
1409
- [data-ui='multi-select'] > [data-part='content'][data-loading] {
1426
+ [data-ui-multi-select] > [data-part-content][data-loading] {
1410
1427
  cursor: progress;
1411
1428
  }
1412
1429
 
1413
1430
  /* ── Forced colours ───────────────────────────────────────────────────── */
1414
1431
 
1415
1432
  @media (forced-colors: active) {
1416
- [data-ui='multi-select'] [data-part='item'][data-current] {
1433
+ [data-ui-multi-select] [data-part-item][data-current] {
1417
1434
  background-color: Highlight;
1418
1435
  color: HighlightText;
1419
1436
  forced-color-adjust: none;
1420
1437
  }
1421
1438
 
1422
- [data-ui='multi-select'] [data-part='item'][data-disabled][data-current] {
1439
+ [data-ui-multi-select] [data-part-item][data-disabled][data-current] {
1423
1440
  background-color: Highlight;
1424
1441
  color: GrayText;
1425
1442
  }