@slotted/styles 0.1.0-beta.4 → 0.1.0-beta.40

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 (221) hide show
  1. package/package.json +21 -1
  2. package/src/accordion/accordion.css +31 -13
  3. package/src/accordion/accordion.tokens.json +2 -0
  4. package/src/action-bar/action-bar.css +47 -44
  5. package/src/action-bar/action-bar.tokens.json +1 -0
  6. package/src/action-sheet/action-sheet.css +39 -39
  7. package/src/alert/alert.css +97 -97
  8. package/src/alert/alert.tokens.json +6 -1
  9. package/src/app-shell/app-shell.css +472 -342
  10. package/src/app-shell/app-shell.tokens.json +6 -3
  11. package/src/aspect-ratio/aspect-ratio.css +24 -23
  12. package/src/attachment/attachment.css +118 -114
  13. package/src/avatar/avatar.css +97 -67
  14. package/src/avatar/avatar.tokens.json +8 -0
  15. package/src/avatar-group/avatar-group.css +22 -23
  16. package/src/badge/badge.css +58 -47
  17. package/src/badge/badge.tokens.json +6 -0
  18. package/src/breadcrumb/breadcrumb.css +52 -52
  19. package/src/button/button.css +408 -93
  20. package/src/button/button.tokens.json +13 -0
  21. package/src/button-group/button-group.css +80 -79
  22. package/src/button-group/button-group.tokens.json +1 -0
  23. package/src/calendar/calendar.css +594 -267
  24. package/src/calendar/calendar.tokens.json +35 -3
  25. package/src/card/card.css +133 -70
  26. package/src/card/card.tokens.json +1 -0
  27. package/src/carousel/carousel.css +158 -169
  28. package/src/cascader/cascader.css +174 -159
  29. package/src/cascader/cascader.tokens.json +2 -0
  30. package/src/chart/chart.css +300 -271
  31. package/src/chart/chart.tokens.json +5 -0
  32. package/src/checkbox/checkbox.css +190 -148
  33. package/src/checkbox/checkbox.tokens.json +4 -0
  34. package/src/checkbox-group/checkbox-group.css +7 -7
  35. package/src/clock/clock.css +246 -0
  36. package/src/clock/clock.tokens.json +44 -0
  37. package/src/code-block/code-block.css +85 -89
  38. package/src/collapsible/collapsible.css +273 -85
  39. package/src/collapsible/collapsible.tokens.json +6 -0
  40. package/src/color-picker/color-picker.css +106 -114
  41. package/src/column-manager/column-manager.css +111 -119
  42. package/src/combobox/combobox.css +219 -132
  43. package/src/combobox/combobox.tokens.json +4 -0
  44. package/src/command-palette/command-palette.css +214 -102
  45. package/src/command-palette/command-palette.tokens.json +4 -0
  46. package/src/container/container.css +27 -27
  47. package/src/context-menu/context-menu.css +9 -9
  48. package/src/currency-field/currency-field.css +119 -119
  49. package/src/currency-field/currency-field.tokens.json +1 -0
  50. package/src/dashboard-grid/dashboard-grid.css +231 -115
  51. package/src/dashboard-grid/dashboard-grid.tokens.json +3 -1
  52. package/src/data-grid/data-grid.css +637 -496
  53. package/src/data-grid/data-grid.tokens.json +5 -1
  54. package/src/data-list/data-list.css +93 -76
  55. package/src/data-list/data-list.tokens.json +2 -1
  56. package/src/date-field/date-field.css +62 -57
  57. package/src/date-field/date-field.tokens.json +1 -0
  58. package/src/date-picker/date-picker.css +31 -269
  59. package/src/date-picker/date-picker.tokens.json +1 -21
  60. package/src/date-range-picker/date-range-picker.css +72 -528
  61. package/src/date-range-picker/date-range-picker.tokens.json +1 -37
  62. package/src/datetime-field/datetime-field.css +90 -90
  63. package/src/datetime-field/datetime-field.tokens.json +1 -0
  64. package/src/datetime-picker/datetime-picker.css +49 -711
  65. package/src/datetime-picker/datetime-picker.tokens.json +1 -50
  66. package/src/datetime-range-picker/datetime-range-picker.css +60 -985
  67. package/src/datetime-range-picker/datetime-range-picker.tokens.json +1 -67
  68. package/src/description-list/description-list.css +120 -76
  69. package/src/description-list/description-list.tokens.json +1 -0
  70. package/src/detail-panel/detail-panel.css +86 -71
  71. package/src/detail-panel/detail-panel.tokens.json +2 -0
  72. package/src/dialog/dialog.css +462 -199
  73. package/src/dialog/dialog.tokens.json +10 -0
  74. package/src/divider/divider.css +20 -20
  75. package/src/drawer/drawer.css +736 -237
  76. package/src/drawer/drawer.tokens.json +15 -0
  77. package/src/entity-picker/entity-picker.css +402 -272
  78. package/src/entity-picker/entity-picker.tokens.json +6 -0
  79. package/src/event-calendar/event-calendar.css +357 -399
  80. package/src/field/field.css +106 -93
  81. package/src/field/field.tokens.json +2 -0
  82. package/src/field-group/field-group.css +58 -38
  83. package/src/field-group/field-group.tokens.json +3 -0
  84. package/src/filter-bar/filter-bar.css +224 -216
  85. package/src/floating-panel/floating-panel.css +147 -0
  86. package/src/floating-panel/floating-panel.tokens.json +32 -0
  87. package/src/form/form.css +103 -26
  88. package/src/form/form.tokens.json +6 -1
  89. package/src/fullscreen/fullscreen.css +26 -27
  90. package/src/grid/grid.css +32 -31
  91. package/src/highlight/highlight.css +11 -11
  92. package/src/hover-card/hover-card.css +9 -9
  93. package/src/icon/icon.css +67 -20
  94. package/src/icon/icon.tokens.json +1 -0
  95. package/src/image/image.css +42 -42
  96. package/src/import-export-center/import-export-center.css +147 -168
  97. package/src/import-export-center/import-export-center.tokens.json +1 -0
  98. package/src/inline/inline.css +29 -29
  99. package/src/inline-message/inline-message.css +162 -86
  100. package/src/inline-message/inline-message.tokens.json +5 -0
  101. package/src/kbd/kbd.css +63 -51
  102. package/src/kbd/kbd.tokens.json +4 -0
  103. package/src/link/link.css +54 -33
  104. package/src/link/link.tokens.json +4 -0
  105. package/src/list/list.css +55 -24
  106. package/src/list/list.tokens.json +2 -0
  107. package/src/list-item/list-item.css +195 -80
  108. package/src/list-item/list-item.tokens.json +10 -0
  109. package/src/listbox/listbox.css +121 -72
  110. package/src/listbox/listbox.tokens.json +6 -1
  111. package/src/loading-overlay/loading-overlay.css +86 -103
  112. package/src/markdown/markdown.css +20 -20
  113. package/src/media-viewer/media-viewer.css +790 -0
  114. package/src/media-viewer/media-viewer.tokens.json +53 -0
  115. package/src/menu/menu.css +166 -83
  116. package/src/menu/menu.tokens.json +3 -1
  117. package/src/menubar/menubar.css +16 -16
  118. package/src/message/message.css +1296 -1243
  119. package/src/message/message.tokens.json +14 -0
  120. package/src/message-scroller/message-scroller.css +323 -320
  121. package/src/meter/meter.css +136 -0
  122. package/src/meter/meter.tokens.json +23 -0
  123. package/src/multi-select/multi-select.css +246 -174
  124. package/src/multi-select/multi-select.tokens.json +3 -0
  125. package/src/navigation-menu/navigation-menu.css +170 -191
  126. package/src/navigation-menu/navigation-menu.tokens.json +1 -0
  127. package/src/notification-center/notification-center.css +155 -163
  128. package/src/notification-center/notification-center.tokens.json +4 -0
  129. package/src/number-field/number-field.css +93 -93
  130. package/src/number-field/number-field.tokens.json +1 -0
  131. package/src/otp-input/otp-input.css +74 -64
  132. package/src/otp-input/otp-input.tokens.json +1 -0
  133. package/src/page/page.css +109 -31
  134. package/src/page/page.tokens.json +8 -0
  135. package/src/page-header/page-header.css +342 -287
  136. package/src/page-header/page-header.tokens.json +6 -1
  137. package/src/pagination/pagination.css +75 -79
  138. package/src/picker-panel/picker-panel.css +1074 -0
  139. package/src/picker-panel/picker-panel.tokens.json +77 -0
  140. package/src/popover/popover.css +85 -65
  141. package/src/popover/popover.tokens.json +2 -0
  142. package/src/progress-indicator/progress-indicator.css +194 -137
  143. package/src/progress-indicator/progress-indicator.tokens.json +1 -0
  144. package/src/prompt-composer/prompt-composer.css +274 -116
  145. package/src/prompt-composer/prompt-composer.tokens.json +15 -0
  146. package/src/prose/prose.css +77 -82
  147. package/src/radio-group/radio-group.css +107 -112
  148. package/src/rating/rating.css +147 -143
  149. package/src/rating/rating.tokens.json +2 -0
  150. package/src/result-state/result-state.css +95 -102
  151. package/src/result-state/result-state.tokens.json +1 -0
  152. package/src/runtime-properties.mjs +44 -6
  153. package/src/saved-views/saved-views.css +43 -49
  154. package/src/scroll-area/scroll-area.css +50 -37
  155. package/src/section/section.css +311 -46
  156. package/src/section/section.tokens.json +13 -1
  157. package/src/segmented-control/segmented-control.css +221 -133
  158. package/src/segmented-control/segmented-control.tokens.json +7 -11
  159. package/src/select/select.css +226 -149
  160. package/src/select/select.tokens.json +4 -0
  161. package/src/side-navigation/side-navigation.css +204 -201
  162. package/src/side-navigation/side-navigation.tokens.json +2 -0
  163. package/src/skeleton/skeleton.css +76 -58
  164. package/src/slider/slider.css +108 -104
  165. package/src/slider/slider.tokens.json +1 -0
  166. package/src/sparkline/sparkline.css +75 -53
  167. package/src/sparkline/sparkline.tokens.json +2 -0
  168. package/src/spinner/spinner.css +83 -180
  169. package/src/spinner/spinner.tokens.json +0 -1
  170. package/src/split-button/split-button.css +34 -35
  171. package/src/split-button/split-button.tokens.json +1 -0
  172. package/src/splitter/splitter.css +47 -48
  173. package/src/stack/stack.css +26 -26
  174. package/src/stat-card/stat-card.css +420 -245
  175. package/src/stat-card/stat-card.tokens.json +8 -0
  176. package/src/status-indicator/status-indicator.css +126 -101
  177. package/src/status-indicator/status-indicator.tokens.json +0 -3
  178. package/src/stepper/stepper.css +78 -82
  179. package/src/switch/switch.css +143 -125
  180. package/src/switch/switch.tokens.json +4 -0
  181. package/src/table/table.css +653 -222
  182. package/src/table/table.tokens.json +10 -0
  183. package/src/table-of-contents/table-of-contents.css +60 -59
  184. package/src/table-of-contents/table-of-contents.tokens.json +1 -0
  185. package/src/tabs/tabs.css +327 -294
  186. package/src/tabs/tabs.tokens.json +7 -1
  187. package/src/tag/tag.css +113 -89
  188. package/src/tag/tag.tokens.json +11 -0
  189. package/src/tags-input/tags-input.css +152 -87
  190. package/src/tags-input/tags-input.tokens.json +7 -1
  191. package/src/text-field/text-field.css +146 -148
  192. package/src/text-field/text-field.tokens.json +1 -0
  193. package/src/textarea/textarea.css +38 -33
  194. package/src/textarea/textarea.tokens.json +1 -0
  195. package/src/time-field/time-field.css +82 -77
  196. package/src/time-field/time-field.tokens.json +1 -0
  197. package/src/time-picker/time-picker.css +30 -519
  198. package/src/time-picker/time-picker.tokens.json +1 -38
  199. package/src/time-range-picker/time-range-picker.css +53 -895
  200. package/src/time-range-picker/time-range-picker.tokens.json +1 -66
  201. package/src/timeline/timeline.css +280 -292
  202. package/src/timeline/timeline.tokens.json +5 -0
  203. package/src/toast/toast.css +139 -122
  204. package/src/toast/toast.tokens.json +7 -0
  205. package/src/toggle/toggle.css +34 -38
  206. package/src/toggle-group/toggle-group.css +73 -77
  207. package/src/toolbar/toolbar.css +49 -40
  208. package/src/toolbar/toolbar.tokens.json +2 -1
  209. package/src/tooltip/tooltip.css +95 -39
  210. package/src/tooltip/tooltip.tokens.json +1 -0
  211. package/src/top-navigation/top-navigation.css +253 -269
  212. package/src/top-navigation/top-navigation.tokens.json +1 -0
  213. package/src/tour/tour.css +68 -74
  214. package/src/tour/tour.tokens.json +1 -0
  215. package/src/transfer/transfer.css +164 -168
  216. package/src/tree/tree.css +118 -122
  217. package/src/typography/typography.css +67 -38
  218. package/src/typography/typography.tokens.json +2 -0
  219. package/src/upload/upload.css +256 -257
  220. package/src/visually-hidden/visually-hidden.css +1 -1
  221. package/src/wizard/wizard.css +187 -199
@@ -23,7 +23,7 @@
23
23
  * The layer, the scrim, the motion of arriving and leaving, the focus
24
24
  * containment and the Escape that closes are `dialog`'s: the panel stands
25
25
  * inside a dialog whose surface is `plain`, and `identity.test.mjs` keeps
26
- * this sheet off `[data-ui='dialog']`. The keys in an item's shortcut and in
26
+ * this sheet off `[data-ui-dialog]`. The keys in an item's shortcut and in
27
27
  * the footer's hints are `kbd`'s, worn as `data-ui='kbd'` under this family's
28
28
  * own `shortcut` and `hint` parts, so every selector on those two parts is a
29
29
  * child selector and never reaches the caps inside them. The mark on the
@@ -57,7 +57,7 @@
57
57
  * down. Only the panel's own radius and the list's inset come off the space
58
58
  * and radius scales.
59
59
  */
60
- [data-ui='command-palette'] {
60
+ [data-ui-command-palette] {
61
61
  --_surface: var(--slotted-command-palette-surface, var(--slotted-surface-raised, #ffffff));
62
62
  --_text: var(--slotted-command-palette-text, var(--slotted-text, #0f172a));
63
63
  --_muted: var(--slotted-command-palette-text-muted, var(--slotted-text-muted, #5b6b7f));
@@ -83,7 +83,11 @@
83
83
  /* The row, at the family's size step; the header one step up. */
84
84
  --_item-height: var(--slotted-control-height-md, 34px);
85
85
  --_item-inset: var(--slotted-control-padding-inline-md, 13px);
86
- --_item-radius: var(--slotted-command-palette-item-radius, var(--slotted-control-radius));
86
+ /* Concentric with the panel: its radius less the inset, floored at 0. */
87
+ --_item-radius: var(
88
+ --slotted-command-palette-item-radius,
89
+ max(0px, calc(var(--_radius) - var(--_list-inset)))
90
+ );
87
91
  --_font-size: var(--slotted-control-font-size-md, 13px);
88
92
  --_secondary-font-size: var(--slotted-control-font-size-sm, 12px);
89
93
  --_icon-size: var(--slotted-control-icon-size-md, 16px);
@@ -135,9 +139,28 @@
135
139
  overflow: clip;
136
140
  }
137
141
 
142
+ /**
143
+ * A theme draws the panel as a material with this filter beside a surface
144
+ * with alpha: `--slotted-command-palette-backdrop-filter`, `none` unless set.
145
+ * The root is the one layer that paints a ground under either presentation.
146
+ * A reader who asked for less transparency gets no filter, and under forced
147
+ * colors the ground is the system's.
148
+ */
149
+ [data-ui-command-palette] {
150
+ -webkit-backdrop-filter: var(--slotted-command-palette-backdrop-filter, none);
151
+ backdrop-filter: var(--slotted-command-palette-backdrop-filter, none);
152
+ }
153
+
154
+ @media (prefers-reduced-transparency: reduce), (forced-colors: active) {
155
+ [data-ui-command-palette] {
156
+ -webkit-backdrop-filter: none;
157
+ backdrop-filter: none;
158
+ }
159
+ }
160
+
138
161
  /* ── Size ─────────────────────────────────────────────────────────────── */
139
162
 
140
- [data-ui='command-palette'][data-size='sm'] {
163
+ [data-ui-command-palette][data-size='sm'] {
141
164
  --_item-height: var(--slotted-control-height-sm, 30px);
142
165
  --_item-inset: var(--slotted-control-padding-inline-sm, 10px);
143
166
  --_font-size: var(--slotted-control-font-size-sm, 12px);
@@ -150,7 +173,7 @@
150
173
  --_chip-size: var(--slotted-control-inner-size-sm, 22px);
151
174
  }
152
175
 
153
- [data-ui='command-palette'][data-size='lg'] {
176
+ [data-ui-command-palette][data-size='lg'] {
154
177
  --_item-height: var(--slotted-control-height-lg, 38px);
155
178
  --_item-inset: var(--slotted-control-padding-inline-lg, 16px);
156
179
  --_font-size: var(--slotted-control-font-size-lg, 14px);
@@ -172,7 +195,7 @@
172
195
  * something else — so it draws no edge and no ground of its own, and the
173
196
  * rule under the header is the one line between the field and the list.
174
197
  */
175
- [data-ui='command-palette'] > [data-part='header'] {
198
+ [data-ui-command-palette] > [data-part-header] {
176
199
  align-items: center;
177
200
  border-block-end: var(--_border-width) solid var(--_border-color);
178
201
  box-sizing: border-box;
@@ -189,13 +212,12 @@
189
212
  * only thing focused for the whole of the interaction, and a box around the
190
213
  * top row of a panel that is itself a box says the wrong thing. The ring is
191
214
  * drawn as a band the ring's own width along the header's bottom edge, in
192
- * the theme's ring colour, and it appears only when the keyboard put focus
215
+ * the theme's ring color, and it appears only when the keyboard put focus
193
216
  * there — which, for a palette opened with ⌘K, is every time. The band is
194
217
  * a bottom edge: `state-rail.test.mjs` (R1) refuses a state rail on the
195
218
  * start or the top edge, and this is neither.
196
219
  */
197
- [data-ui='command-palette']
198
- > [data-part='header']:has(> [data-part='input']:focus-visible)::after {
220
+ [data-ui-command-palette] > [data-part-header]:has(> [data-part-input]:focus-visible)::after {
199
221
  background-color: var(--slotted-focus-ring-color, currentColor);
200
222
  block-size: var(--slotted-focus-ring-width, 2px);
201
223
  content: '';
@@ -205,7 +227,7 @@
205
227
  position: absolute;
206
228
  }
207
229
 
208
- [data-ui='command-palette'] :is([data-part='search'], [data-part='busy']) {
230
+ [data-ui-command-palette] :is([data-part-search], [data-part-busy]) {
209
231
  color: var(--_muted);
210
232
  flex: none;
211
233
  }
@@ -215,7 +237,7 @@
215
237
  * icon box at the header's icon size so it sits on the field's line; a
216
238
  * character is never an icon.
217
239
  */
218
- [data-ui='command-palette'] [data-part='search'] {
240
+ [data-ui-command-palette] [data-part-search] {
219
241
  --slotted-icon-size: var(--_header-icon-size);
220
242
 
221
243
  display: flex;
@@ -226,7 +248,7 @@
226
248
  * `spinner/spinner.css`'s, worn as `data-ui='spinner'` beside this family's
227
249
  * part, and this family only says where it stands and how big it is.
228
250
  */
229
- [data-ui='command-palette'] [data-part='busy'] {
251
+ [data-ui-command-palette] [data-part-busy] {
230
252
  --slotted-spinner-size: var(--_header-icon-size);
231
253
  }
232
254
 
@@ -237,7 +259,7 @@
237
259
  * Each is a control that returns to its page; the last one is where the
238
260
  * reader is and reads as the field's own prefix.
239
261
  */
240
- [data-ui='command-palette'] [data-part='pages'] {
262
+ [data-ui-command-palette] [data-part-pages] {
241
263
  align-items: center;
242
264
  display: flex;
243
265
  flex: none;
@@ -249,11 +271,11 @@
249
271
  padding: 0;
250
272
  }
251
273
 
252
- [data-ui='command-palette'] [data-part='pages'] > li {
274
+ [data-ui-command-palette] [data-part-pages] > li {
253
275
  display: contents;
254
276
  }
255
277
 
256
- [data-ui='command-palette'] [data-part='page'] {
278
+ [data-ui-command-palette] [data-part-page] {
257
279
  align-items: center;
258
280
  appearance: none;
259
281
  background-color: var(--slotted-command-palette-page-surface, var(--_hover));
@@ -284,32 +306,32 @@
284
306
  white-space: nowrap;
285
307
  }
286
308
 
287
- [data-ui='command-palette'] [data-part='page'] > span {
309
+ [data-ui-command-palette] [data-part-page] > span {
288
310
  overflow: hidden;
289
311
  text-overflow: ellipsis;
290
312
  }
291
313
 
292
314
  /* A chip inside the header is shorter than the target minimum at every
293
315
  density; the hit area is recovered outside its paint. */
294
- [data-ui='command-palette'] [data-part='page']::after {
316
+ [data-ui-command-palette] [data-part-page]::after {
295
317
  content: '';
296
318
  inset: min(0px, calc((100% - var(--slotted-target-min, 24px)) / 2));
297
319
  position: absolute;
298
320
  }
299
321
 
300
- [data-ui='command-palette'] [data-part='page']:not(:disabled):hover {
322
+ [data-ui-command-palette] [data-part-page]:not(:disabled):hover {
301
323
  background-color: var(--_active);
302
324
  color: var(--_text);
303
325
  }
304
326
 
305
- [data-ui='command-palette'] [data-part='page']:not(:disabled):active {
327
+ [data-ui-command-palette] [data-part-page]:not(:disabled):active {
306
328
  background-color: var(--_active);
307
329
  }
308
330
 
309
331
  /* Drawn one width inside the chip, as a chip in a scrolling row draws it:
310
332
  the header clips at its padding edge and a ring at the theme's offset
311
333
  would lose its outer half. */
312
- [data-ui='command-palette'] [data-part='page']:focus-visible {
334
+ [data-ui-command-palette] [data-part-page]:focus-visible {
313
335
  outline: var(--slotted-focus-ring-width, 2px) solid
314
336
  var(--slotted-focus-ring-color, currentColor);
315
337
  outline-offset: calc(-1 * var(--slotted-focus-ring-width, 2px));
@@ -321,7 +343,7 @@
321
343
  * right-to-left document so the trail reads in the direction the reader
322
344
  * reads.
323
345
  */
324
- [data-ui='command-palette'] [data-part='pages'] > li > [data-ui='icon'] {
346
+ [data-ui-command-palette] [data-part-pages] > li > [data-ui-icon] {
325
347
  --slotted-icon-size: var(--_icon-size);
326
348
 
327
349
  color: var(--_muted);
@@ -330,7 +352,7 @@
330
352
 
331
353
  /* ── The field ────────────────────────────────────────────────────────── */
332
354
 
333
- [data-ui='command-palette'] [data-part='input'] {
355
+ [data-ui-command-palette] [data-part-input] {
334
356
  appearance: none;
335
357
  background: transparent;
336
358
  block-size: 100%;
@@ -349,7 +371,7 @@
349
371
  padding: 0;
350
372
  }
351
373
 
352
- [data-ui='command-palette'] [data-part='input']::placeholder {
374
+ [data-ui-command-palette] [data-part-input]::placeholder {
353
375
  color: var(--_muted);
354
376
  opacity: 1;
355
377
  }
@@ -362,7 +384,7 @@
362
384
  * or not — measured on the Nexora palette at 390 pixels. Only while the
363
385
  * placeholder shows: what the reader types is never faded under the caret.
364
386
  */
365
- [data-ui='command-palette'] [data-part='input']:placeholder-shown {
387
+ [data-ui-command-palette] [data-part-input]:placeholder-shown {
366
388
  mask-image: linear-gradient(
367
389
  to right,
368
390
  #000 calc(100% - var(--slotted-command-palette-placeholder-fade, 2em)),
@@ -372,8 +394,8 @@
372
394
 
373
395
  /* The browser's own clear and its search decoration, which the family
374
396
  draws itself so the two schemes and the three densities agree. */
375
- [data-ui='command-palette'] [data-part='input']::-webkit-search-cancel-button,
376
- [data-ui='command-palette'] [data-part='input']::-webkit-search-decoration {
397
+ [data-ui-command-palette] [data-part-input]::-webkit-search-cancel-button,
398
+ [data-ui-command-palette] [data-part-input]::-webkit-search-decoration {
377
399
  appearance: none;
378
400
  }
379
401
 
@@ -384,7 +406,7 @@
384
406
  * because Escape already clears and a second stop before the list is a
385
407
  * stop nobody asked for.
386
408
  */
387
- [data-ui='command-palette'] > [data-part='header'] > [data-part='clear'] {
409
+ [data-ui-command-palette] > [data-part-header] > [data-part-clear] {
388
410
  --_clear-size: min(
389
411
  calc(var(--_icon-size) + 2 * var(--slotted-space-2, 0.25rem)),
390
412
  var(--slotted-control-inner-size-md, 24px)
@@ -412,7 +434,7 @@
412
434
  var(--slotted-control-transition-easing, var(--slotted-easing-standard));
413
435
  }
414
436
 
415
- [data-ui='command-palette'] > [data-part='header'] > [data-part='clear']::after {
437
+ [data-ui-command-palette] > [data-part-header] > [data-part-clear]::after {
416
438
  content: '';
417
439
  inset: min(0px, calc((100% - var(--slotted-target-min, 24px)) / 2));
418
440
  position: absolute;
@@ -423,27 +445,27 @@
423
445
  the hit area above grows to 44 pixels around them. It does not reach
424
446
  across the close control after it. */
425
447
  @media (pointer: coarse) {
426
- [data-ui='command-palette'] > [data-part='header'] > [data-part='clear']::after {
448
+ [data-ui-command-palette] > [data-part-header] > [data-part-clear]::after {
427
449
  inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
428
450
  }
429
451
 
430
- [data-ui='command-palette']
431
- > [data-part='header']
432
- > [data-part='clear']:has(+ [data-part='close'])::after {
452
+ [data-ui-command-palette]
453
+ > [data-part-header]
454
+ > [data-part-clear]:has(+ [data-part-close])::after {
433
455
  inset-inline-end: 0;
434
456
  }
435
457
  }
436
458
 
437
- [data-ui='command-palette'] > [data-part='header'] > [data-part='clear']:not(:disabled):hover {
459
+ [data-ui-command-palette] > [data-part-header] > [data-part-clear]:not(:disabled):hover {
438
460
  background-color: var(--_hover);
439
461
  color: var(--_text);
440
462
  }
441
463
 
442
- [data-ui='command-palette'] > [data-part='header'] > [data-part='clear']:not(:disabled):active {
464
+ [data-ui-command-palette] > [data-part-header] > [data-part-clear]:not(:disabled):active {
443
465
  background-color: var(--_active);
444
466
  }
445
467
 
446
- [data-ui='command-palette'] > [data-part='header'] > [data-part='clear']:focus-visible {
468
+ [data-ui-command-palette] > [data-part-header] > [data-part-clear]:focus-visible {
447
469
  outline: var(--slotted-focus-ring-width, 2px) solid
448
470
  var(--slotted-focus-ring-color, currentColor);
449
471
  outline-offset: calc(-1 * var(--slotted-focus-ring-width, 2px));
@@ -451,7 +473,7 @@
451
473
 
452
474
  /* Present in the DOM whenever the family renders it, drawn only with a
453
475
  query: a clear beside an empty field is a control with nothing to do. */
454
- [data-ui='command-palette']:not([data-query]) > [data-part='header'] > [data-part='clear'] {
476
+ [data-ui-command-palette]:not([data-query]) > [data-part-header] > [data-part-clear] {
455
477
  display: none;
456
478
  }
457
479
 
@@ -463,7 +485,7 @@
463
485
  * beside a search field reads as clear, which is what `clear` already is.
464
486
  * Drawn only under the dialog's own full-screen query, below.
465
487
  */
466
- [data-ui='command-palette'] > [data-part='header'] > [data-part='close'] {
488
+ [data-ui-command-palette] > [data-part-header] > [data-part-close] {
467
489
  align-items: center;
468
490
  appearance: none;
469
491
  background-color: transparent;
@@ -483,15 +505,15 @@
483
505
  white-space: nowrap;
484
506
  }
485
507
 
486
- [data-ui='command-palette'] > [data-part='header'] > [data-part='close']:not(:disabled):hover {
508
+ [data-ui-command-palette] > [data-part-header] > [data-part-close]:not(:disabled):hover {
487
509
  background-color: var(--_hover);
488
510
  }
489
511
 
490
- [data-ui='command-palette'] > [data-part='header'] > [data-part='close']:not(:disabled):active {
512
+ [data-ui-command-palette] > [data-part-header] > [data-part-close]:not(:disabled):active {
491
513
  background-color: var(--_active);
492
514
  }
493
515
 
494
- [data-ui='command-palette'] > [data-part='header'] > [data-part='close']:focus-visible {
516
+ [data-ui-command-palette] > [data-part-header] > [data-part-close]:focus-visible {
495
517
  outline: var(--slotted-focus-ring-width, 2px) solid
496
518
  var(--slotted-focus-ring-color, currentColor);
497
519
  outline-offset: calc(-1 * var(--slotted-focus-ring-width, 2px));
@@ -503,7 +525,7 @@
503
525
  * Five columns, bounded, scrolling. `overscroll-behavior` keeps the page —
504
526
  * or the popover — still once the list has scrolled to its end.
505
527
  */
506
- [data-ui='command-palette'] > [data-part='list'] {
528
+ [data-ui-command-palette] > [data-part-list] {
507
529
  box-sizing: border-box;
508
530
  display: grid;
509
531
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
@@ -517,26 +539,121 @@
517
539
  scroll-padding-block: var(--_list-inset);
518
540
  }
519
541
 
520
- [data-ui='command-palette'] > [data-part='list'][data-loading] {
542
+ [data-ui-command-palette] > [data-part-list][data-loading] {
521
543
  cursor: progress;
522
544
  }
523
545
 
524
546
  /* ── Groups ───────────────────────────────────────────────────────────── */
525
547
 
526
- [data-ui='command-palette'] [data-part='group'] {
548
+ [data-ui-command-palette] [data-part-group] {
527
549
  display: grid;
528
550
  grid-column: 1 / -1;
529
551
  grid-template-columns: subgrid;
530
552
  }
531
553
 
532
- [data-ui='command-palette'] [data-part='group-label'] {
554
+ /**
555
+ * A group's label stays at the top of the list while its group is in view.
556
+ * The group is the label's containing block, so the next label pushes it out
557
+ * and a group scrolled past takes its label with it. It sticks to the
558
+ * scrollport's edge rather than the padding's, on the surface's ground, above
559
+ * the items and below the parts the surface draws over them.
560
+ */
561
+ [data-ui-command-palette] [data-part-group-label] {
562
+ background: transparent;
563
+ box-sizing: border-box;
533
564
  color: var(--_muted);
534
565
  font-size: var(--_secondary-font-size);
535
566
  font-weight: var(--slotted-font-weight-semibold, 600);
536
567
  grid-column: 1 / -1;
568
+ inset-block-start: calc(-1 * var(--_list-inset));
537
569
  line-height: var(--slotted-line-height-sm, 1.45);
570
+ min-block-size: var(--_group-label-height);
538
571
  padding-block: var(--slotted-space-2, 0.25rem);
539
572
  padding-inline: var(--_item-inset);
573
+ position: sticky;
574
+ z-index: 1;
575
+ }
576
+
577
+ /**
578
+ * At rest the label stands on the panel's own surface and paints none, so a
579
+ * translucent panel does not draw a second layer under every label. Only
580
+ * while it is stuck, with rows passing under it, does it fill. Under a
581
+ * material panel that fill is translucent, so the label blurs the rows with
582
+ * the panel's filter, or with one the theme states for it.
583
+ *
584
+ * A blur leaves part of a sharp row in view. Where the engine times an
585
+ * animation by the scroll, the rows end at the label instead: each one is cut
586
+ * by the share of it that has passed the label's bottom edge, which is the
587
+ * list's scroll padding. Nothing is under the label then, so it paints no
588
+ * fill and no filter but the ones a theme states.
589
+ */
590
+ [data-ui-command-palette] [data-part-group-label][data-stuck] {
591
+ background: var(--slotted-command-palette-group-label-stuck-surface, var(--_surface));
592
+ -webkit-backdrop-filter: var(
593
+ --slotted-command-palette-group-label-stuck-backdrop-filter,
594
+ var(--slotted-command-palette-backdrop-filter, none)
595
+ );
596
+ backdrop-filter: var(
597
+ --slotted-command-palette-group-label-stuck-backdrop-filter,
598
+ var(--slotted-command-palette-backdrop-filter, none)
599
+ );
600
+ }
601
+
602
+ @supports (animation-timeline: view()) {
603
+ [data-ui-command-palette] [data-part-group-label][data-stuck] {
604
+ background: var(--slotted-command-palette-group-label-stuck-surface, transparent);
605
+ -webkit-backdrop-filter: var(
606
+ --slotted-command-palette-group-label-stuck-backdrop-filter,
607
+ none
608
+ );
609
+ backdrop-filter: var(--slotted-command-palette-group-label-stuck-backdrop-filter, none);
610
+ }
611
+
612
+ [data-ui-command-palette] [data-part-group-label][data-stuck] ~ * {
613
+ animation: slotted-command-palette-under-label linear forwards;
614
+ animation-range: exit;
615
+ animation-timeline: view();
616
+ }
617
+ }
618
+
619
+ @keyframes slotted-command-palette-under-label {
620
+ from {
621
+ clip-path: inset(0);
622
+ }
623
+
624
+ to {
625
+ clip-path: inset(100% 0 0);
626
+ }
627
+ }
628
+
629
+ @media (prefers-reduced-transparency: reduce), (forced-colors: active) {
630
+ [data-ui-command-palette] [data-part-group-label][data-stuck] {
631
+ -webkit-backdrop-filter: none;
632
+ backdrop-filter: none;
633
+ }
634
+ }
635
+
636
+ @media (forced-colors: active) {
637
+ [data-ui-command-palette] [data-part-group-label] {
638
+ background: Canvas;
639
+ }
640
+ }
641
+
642
+ /**
643
+ * The label's height, which the list keeps clear above an item the keys
644
+ * bring into view (`revealWithin` reads the scroll padding), so the item is
645
+ * never drawn under a label stuck to the top.
646
+ */
647
+ [data-ui-command-palette] > [data-part-list]:has([data-part-group-label]) {
648
+ --_group-label-height: var(
649
+ --slotted-command-palette-group-label-height,
650
+ calc(
651
+ var(--_secondary-font-size) * var(--slotted-line-height-sm, 1.45) + 2 *
652
+ var(--slotted-space-2, 0.25rem)
653
+ )
654
+ );
655
+
656
+ scroll-padding-block-start: var(--_group-label-height);
540
657
  }
541
658
 
542
659
  /* ── Items ────────────────────────────────────────────────────────────── */
@@ -548,7 +665,7 @@
548
665
  * `min-block-size` rather than a height, because an item with a description
549
666
  * is two lines tall and still has to clear the target minimum.
550
667
  */
551
- [data-ui='command-palette'] [data-part='item'] {
668
+ [data-ui-command-palette] [data-part-item] {
552
669
  align-content: center;
553
670
  border-radius: var(--_item-radius);
554
671
  box-sizing: border-box;
@@ -582,11 +699,11 @@
582
699
  * moves; the two are told apart so a reader who arrowed to one row while the
583
700
  * pointer rests on another reads exactly one cursor.
584
701
  */
585
- [data-ui='command-palette'] [data-part='item']:not([data-disabled]):not([data-current]):hover {
702
+ [data-ui-command-palette] [data-part-item]:not([data-disabled]):not([data-current]):hover {
586
703
  background-color: var(--_hover);
587
704
  }
588
705
 
589
- [data-ui='command-palette'] [data-part='item']:not([data-disabled]):not([data-current]):active {
706
+ [data-ui-command-palette] [data-part-item]:not([data-disabled]):not([data-current]):active {
590
707
  background-color: var(--_active);
591
708
  }
592
709
 
@@ -597,13 +714,13 @@
597
714
  * of row is a reading, not a movement, and a transition lags behind a reader
598
715
  * holding ArrowDown.
599
716
  */
600
- [data-ui='command-palette'] [data-part='item'][data-current] {
717
+ [data-ui-command-palette] [data-part-item][data-current] {
601
718
  background-color: var(--_highlight);
602
719
  box-shadow: inset 0 0 0 var(--slotted-border-width-thin, 1px) var(--_highlight-ring);
603
720
  transition: none;
604
721
  }
605
722
 
606
- [data-ui='command-palette'] [data-part='item'][data-current]:not([data-disabled]):active {
723
+ [data-ui-command-palette] [data-part-item][data-current]:not([data-disabled]):active {
607
724
  background-color: var(--_active);
608
725
  }
609
726
 
@@ -612,7 +729,7 @@
612
729
  * current — `moveIndex` skips it and the pointer does not highlight it. The
613
730
  * hand goes, because there is nothing to press.
614
731
  */
615
- [data-ui='command-palette'] [data-part='item'][data-disabled] {
732
+ [data-ui-command-palette] [data-part-item][data-disabled] {
616
733
  color: var(--slotted-disabled-foreground, #64748b);
617
734
  cursor: not-allowed;
618
735
  }
@@ -620,11 +737,11 @@
620
737
  /* A handler that has not answered yet: the cursor says so, and the ring
621
738
  `spinner` draws stands in the last column, where the arrow of a page
622
739
  item stands, sized to the row's own glyph. */
623
- [data-ui='command-palette'] [data-part='item'][data-loading] {
740
+ [data-ui-command-palette] [data-part-item][data-loading] {
624
741
  cursor: progress;
625
742
  }
626
743
 
627
- [data-ui='command-palette'] [data-part='item'] > [data-part='busy'] {
744
+ [data-ui-command-palette] [data-part-item] > [data-part-busy] {
628
745
  --slotted-spinner-size: var(--_icon-size);
629
746
 
630
747
  color: var(--_muted);
@@ -638,7 +755,7 @@
638
755
  /**
639
756
  * Column one. The mark's box exists whether or not a mark is drawn, so a
640
757
  * list where the third item has an icon and the fourth does not still lines
641
- * its labels up. It holds an element of the consumer's own, centred; the
758
+ * its labels up. It holds an element of the consumer's own, centerd; the
642
759
  * stylesheet paints no mark into it.
643
760
  *
644
761
  * The box sizes what it holds: an icon box reads `--slotted-icon-size` from
@@ -648,7 +765,7 @@
648
765
  * the child and not on the box, because the box's `1lh` reads the item's
649
766
  * line box.
650
767
  */
651
- [data-ui='command-palette'] [data-part='icon'] {
768
+ [data-ui-command-palette] [data-part-icon] {
652
769
  --slotted-icon-size: var(--_icon-size);
653
770
 
654
771
  align-items: center;
@@ -665,7 +782,7 @@
665
782
  margin-inline-end: calc(var(--_column-gap) + var(--slotted-space-2, 0.25rem));
666
783
  }
667
784
 
668
- [data-ui='command-palette'] [data-part='icon']:not(:empty) > * {
785
+ [data-ui-command-palette] [data-part-icon]:not(:empty) > * {
669
786
  block-size: var(--_icon-size);
670
787
  font-size: var(--_icon-size);
671
788
  inline-size: var(--_icon-size);
@@ -677,7 +794,7 @@
677
794
  * is three rows pretending to be one. The whole text is on the item's
678
795
  * `title` and reachable by the reader, so nothing leaves the DOM.
679
796
  */
680
- [data-ui='command-palette'] [data-part='label'] {
797
+ [data-ui-command-palette] [data-part-label] {
681
798
  grid-column: 2;
682
799
  grid-row: 1;
683
800
  min-inline-size: 0;
@@ -686,7 +803,7 @@
686
803
  white-space: nowrap;
687
804
  }
688
805
 
689
- [data-ui='command-palette'] [data-part='description'] {
806
+ [data-ui-command-palette] [data-part-description] {
690
807
  color: var(--_muted);
691
808
  font-size: var(--_secondary-font-size);
692
809
  grid-column: 2;
@@ -698,25 +815,25 @@
698
815
  white-space: nowrap;
699
816
  }
700
817
 
701
- [data-ui='command-palette'] [data-part='item'][data-disabled] > [data-part='description'] {
818
+ [data-ui-command-palette] [data-part-item][data-disabled] > [data-part-description] {
702
819
  color: inherit;
703
820
  }
704
821
 
705
822
  /* Column three: a word at the end — "Recent", the kind of thing this is. */
706
823
  /**
707
824
  * The three cells at the end of the row span both of its rows and sit on the
708
- * row's centre. Placed on the first row alone, a keycap taller than the
825
+ * row's center. Placed on the first row alone, a keycap taller than the
709
826
  * label's line box stretched that row, and the description under it dropped
710
827
  * by the difference — a gap that opened only on rows with a binding.
711
828
  */
712
- [data-ui='command-palette']
713
- [data-part='item']
714
- > :is([data-part='meta'], [data-part='shortcut'], [data-part='arrow'], [data-part='busy']) {
829
+ [data-ui-command-palette]
830
+ [data-part-item]
831
+ > :is([data-part-meta], [data-part-shortcut], [data-part-arrow], [data-part-busy]) {
715
832
  align-self: center;
716
833
  grid-row: 1 / -1;
717
834
  }
718
835
 
719
- [data-ui='command-palette'] [data-part='meta'] {
836
+ [data-ui-command-palette] [data-part-meta] {
720
837
  color: var(--_muted);
721
838
  font-size: var(--_secondary-font-size);
722
839
  grid-column: 3;
@@ -728,9 +845,7 @@
728
845
  /* A word on a row with no binding takes the binding's column too, so it
729
846
  ends where the bindings on the rows around it end rather than a column
730
847
  short of them. */
731
- [data-ui='command-palette']
732
- [data-part='item']:not(:has(> [data-part='shortcut']))
733
- > [data-part='meta'] {
848
+ [data-ui-command-palette] [data-part-item]:not(:has(> [data-part-shortcut])) > [data-part-meta] {
734
849
  grid-column: 3 / 5;
735
850
  }
736
851
 
@@ -739,7 +854,7 @@
739
854
  * rule places the column and states its ink; every selector stops at the
740
855
  * part and never reaches the caps.
741
856
  */
742
- [data-ui='command-palette'] [data-part='item'] > [data-part='shortcut'] {
857
+ [data-ui-command-palette] [data-part-item] > [data-part-shortcut] {
743
858
  align-items: center;
744
859
  color: var(--_muted);
745
860
  display: inline-flex;
@@ -757,9 +872,9 @@
757
872
  white-space: nowrap;
758
873
  }
759
874
 
760
- [data-ui='command-palette']
761
- [data-part='item'][data-disabled]
762
- > :is([data-part='meta'], [data-part='shortcut']) {
875
+ [data-ui-command-palette]
876
+ [data-part-item][data-disabled]
877
+ > :is([data-part-meta], [data-part-shortcut]) {
763
878
  color: inherit;
764
879
  }
765
880
 
@@ -767,9 +882,9 @@
767
882
  * Column five: the mark that says an item opens a page, as `menu` draws the
768
883
  * mark that says an item opens a submenu. The binding's `chevron-right`
769
884
  * glyph in a `directional` icon box, which mirrors in a right-to-left
770
- * document; the column is one line box tall and centres it.
885
+ * document; the column is one line box tall and centers it.
771
886
  */
772
- [data-ui='command-palette'] [data-part='arrow'] {
887
+ [data-ui-command-palette] [data-part-arrow] {
773
888
  --slotted-icon-size: var(--_icon-size);
774
889
 
775
890
  align-items: center;
@@ -790,7 +905,7 @@
790
905
  * painted them as one-pixel rules — the bar over the word, and the word
791
906
  * itself pushed out of a box one pixel tall.
792
907
  */
793
- [data-ui='command-palette'] > [data-part='list'] [data-part='separator']:not([data-separator]) {
908
+ [data-ui-command-palette] > [data-part-list] [data-part-separator]:not([data-separator]) {
794
909
  background-color: var(--slotted-command-palette-separator-color, var(--_border-color));
795
910
  block-size: var(--_border-width);
796
911
  border: 0;
@@ -799,7 +914,7 @@
799
914
  margin-inline: 0;
800
915
  }
801
916
 
802
- [data-ui='command-palette'] [data-part='empty'] {
917
+ [data-ui-command-palette] [data-part-empty] {
803
918
  color: var(--_muted);
804
919
  grid-column: 1 / -1;
805
920
  padding-block: var(--slotted-space-8, 1.5rem);
@@ -814,7 +929,7 @@
814
929
  * what the reader is looking at. The clip is the visually-hidden idiom, kept
815
930
  * in the DOM so `role="status"` has something to announce from.
816
931
  */
817
- [data-ui='command-palette'] > [data-part='status'] {
932
+ [data-ui-command-palette] > [data-part-status] {
818
933
  block-size: 1px;
819
934
  clip-path: inset(50%);
820
935
  inline-size: 1px;
@@ -829,24 +944,24 @@
829
944
  * of an item, `combobox`'s decision for `combobox`'s reasons. The bars are
830
945
  * `skeleton/skeleton.css`'s; this family places them.
831
946
  */
832
- [data-ui='command-palette'] [data-part='placeholder'] {
947
+ [data-ui-command-palette] [data-part-placeholder] {
833
948
  display: grid;
834
949
  grid-column: 1 / -1;
835
950
  padding-block: var(--slotted-space-2, 0.25rem);
836
951
  padding-inline: var(--_item-inset);
837
952
  }
838
953
 
839
- [data-ui='command-palette'] [data-part='placeholder'] > * {
954
+ [data-ui-command-palette] [data-part-placeholder] > * {
840
955
  align-items: center;
841
956
  display: flex;
842
957
  min-block-size: var(--_item-height);
843
958
  }
844
959
 
845
- [data-ui='command-palette'] [data-part='placeholder'] > :nth-child(2) [data-ui='skeleton'] {
960
+ [data-ui-command-palette] [data-part-placeholder] > :nth-child(2) [data-ui-skeleton] {
846
961
  inline-size: 78%;
847
962
  }
848
963
 
849
- [data-ui='command-palette'] [data-part='placeholder'] > :nth-child(3) [data-ui='skeleton'] {
964
+ [data-ui-command-palette] [data-part-placeholder] > :nth-child(3) [data-ui-skeleton] {
850
965
  inline-size: 56%;
851
966
  }
852
967
 
@@ -857,7 +972,7 @@
857
972
  * `kbd`'s in its `plain` variant at the small step; the words beside them
858
973
  * are this family's, one step quieter than the list.
859
974
  */
860
- [data-ui='command-palette'] > [data-part='footer'] {
975
+ [data-ui-command-palette] > [data-part-footer] {
861
976
  align-items: center;
862
977
  background: var(
863
978
  --slotted-command-palette-footer-surface,
@@ -876,7 +991,7 @@
876
991
  padding-inline: var(--_header-inset);
877
992
  }
878
993
 
879
- [data-ui='command-palette'] > [data-part='footer'] > [data-part='hint'] {
994
+ [data-ui-command-palette] > [data-part-footer] > [data-part-hint] {
880
995
  align-items: center;
881
996
  display: inline-flex;
882
997
  /* The caps read the footer's own size through `kbd` at `inherit`, a tenth
@@ -888,11 +1003,11 @@
888
1003
 
889
1004
  /**
890
1005
  * The word beside the caps, at the footer's own size on a line box of its
891
- * own height: centred on the caps' box it sat a pixel and a half low,
892
- * because a line box of 1.4 is centred on its leading and not on its
893
- * letters. `line-height: 1` centres the em box, which is where the word is.
1006
+ * own height: centerd on the caps' box it sat a pixel and a half low,
1007
+ * because a line box of 1.4 is centerd on its leading and not on its
1008
+ * letters. `line-height: 1` centers the em box, which is where the word is.
894
1009
  */
895
- [data-ui='command-palette'] > [data-part='footer'] > [data-part='hint'] > span:not([data-ui]) {
1010
+ [data-ui-command-palette] > [data-part-footer] > [data-part-hint] > span:not([data-ui]) {
896
1011
  font-size: var(--slotted-font-size-xs, 0.75rem);
897
1012
  line-height: 1;
898
1013
  }
@@ -905,15 +1020,15 @@
905
1020
  * third of the header so the field is never squeezed to nothing.
906
1021
  */
907
1022
  @container command-palette (max-width: 360px) {
908
- [data-ui='command-palette'] :is([data-part='description'], [data-part='meta']) {
1023
+ [data-ui-command-palette] :is([data-part-description], [data-part-meta]) {
909
1024
  display: none;
910
1025
  }
911
1026
 
912
- [data-ui='command-palette'] [data-part='pages'] {
1027
+ [data-ui-command-palette] [data-part-pages] {
913
1028
  max-inline-size: 33%;
914
1029
  }
915
1030
 
916
- [data-ui='command-palette'] > [data-part='footer'] {
1031
+ [data-ui-command-palette] > [data-part-footer] {
917
1032
  gap: var(--slotted-space-4, 0.5rem);
918
1033
  }
919
1034
  }
@@ -925,13 +1040,13 @@
925
1040
  * edge is this panel's. The panel is asked the same question the dialog
926
1041
  * asked, of the dialog's own named container, so the two answer together:
927
1042
  * the corner, the side edges and the lift go, and the list takes the rest
928
- * of the screen. Written here rather than on `[data-ui='dialog']` because
1043
+ * of the screen. Written here rather than on `[data-ui-dialog]` because
929
1044
  * `identity.test.mjs` keeps this sheet off another family's identifier;
930
1045
  * the container name and the breakpoint are the dialog's, recorded in
931
1046
  * `dialog.css` beside its own query.
932
1047
  */
933
1048
  @container slotted-dialog (max-inline-size: 30rem) {
934
- [data-ui='command-palette'][data-presentation='dialog'] {
1049
+ [data-ui-command-palette][data-presentation='dialog'] {
935
1050
  --_list-max: none;
936
1051
 
937
1052
  border-inline: 0;
@@ -948,9 +1063,7 @@
948
1063
  }
949
1064
 
950
1065
  /* No scrim to press: the word that closes stands at the end of the field. */
951
- [data-ui='command-palette'][data-presentation='dialog']
952
- > [data-part='header']
953
- > [data-part='close'] {
1066
+ [data-ui-command-palette][data-presentation='dialog'] > [data-part-header] > [data-part-close] {
954
1067
  display: inline-flex;
955
1068
  }
956
1069
  }
@@ -961,39 +1074,38 @@
961
1074
  * the reader can press; the list is scrolled and the rows are tapped.
962
1075
  */
963
1076
  @media (hover: none) and (pointer: coarse) {
964
- [data-ui='command-palette'] > [data-part='footer'] {
1077
+ [data-ui-command-palette] > [data-part-footer] {
965
1078
  display: none;
966
1079
  }
967
1080
  }
968
1081
 
969
- /* ── Forced colours ───────────────────────────────────────────────────── */
1082
+ /* ── Forced colors ───────────────────────────────────────────────────── */
970
1083
 
971
1084
  /**
972
1085
  * The one thing the theme cannot reach: every tone surface becomes `Canvas`
973
- * under forced colours, so the current row's ground — this family's cursor,
1086
+ * under forced colors, so the current row's ground — this family's cursor,
974
1087
  * not decoration — would disappear.
975
1088
  */
976
1089
  @media (forced-colors: active) {
977
- [data-ui='command-palette'] [data-part='item'][data-current] {
1090
+ [data-ui-command-palette] [data-part-item][data-current] {
978
1091
  background-color: Highlight;
979
1092
  color: HighlightText;
980
1093
  forced-color-adjust: none;
981
1094
  }
982
1095
 
983
- [data-ui='command-palette'] [data-part='item'][data-disabled][data-current] {
1096
+ [data-ui-command-palette] [data-part-item][data-disabled][data-current] {
984
1097
  background-color: Highlight;
985
1098
  color: GrayText;
986
1099
  }
987
1100
 
988
1101
  /*
989
1102
  * The focus bar under the field is painted with a background, and forced
990
- * colours replace a background that is not one of the system's own
991
- * colours. `forced-color-adjust: none` keeps its `currentColor` fallback,
1103
+ * colors replace a background that is not one of the system's own
1104
+ * colors. `forced-color-adjust: none` keeps its `currentColor` fallback,
992
1105
  * the host's ink the system has already forced. The glyphs are `Glyph`
993
1106
  * elements drawn in `currentColor` and need nothing here.
994
1107
  */
995
- [data-ui='command-palette']
996
- > [data-part='header']:has(> [data-part='input']:focus-visible)::after {
1108
+ [data-ui-command-palette] > [data-part-header]:has(> [data-part-input]:focus-visible)::after {
997
1109
  forced-color-adjust: none;
998
1110
  }
999
1111
  }