@slotted/styles 0.1.0-beta.3 → 0.1.0-beta.30

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 (199) hide show
  1. package/package.json +13 -1
  2. package/src/accordion/accordion.css +11 -11
  3. package/src/action-bar/action-bar.css +47 -44
  4. package/src/action-bar/action-bar.tokens.json +1 -0
  5. package/src/action-sheet/action-sheet.css +39 -39
  6. package/src/alert/alert.css +96 -96
  7. package/src/alert/alert.tokens.json +5 -0
  8. package/src/app-shell/app-shell.css +455 -328
  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 +118 -114
  12. package/src/avatar/avatar.css +96 -66
  13. package/src/avatar/avatar.tokens.json +7 -0
  14. package/src/avatar-group/avatar-group.css +22 -23
  15. package/src/badge/badge.css +54 -46
  16. package/src/badge/badge.tokens.json +5 -0
  17. package/src/breadcrumb/breadcrumb.css +52 -52
  18. package/src/button/button.css +137 -89
  19. package/src/button/button.tokens.json +5 -0
  20. package/src/button-group/button-group.css +80 -79
  21. package/src/button-group/button-group.tokens.json +1 -0
  22. package/src/calendar/calendar.css +139 -109
  23. package/src/calendar/calendar.tokens.json +5 -1
  24. package/src/card/card.css +68 -65
  25. package/src/carousel/carousel.css +158 -169
  26. package/src/cascader/cascader.css +158 -157
  27. package/src/cascader/cascader.tokens.json +1 -0
  28. package/src/chart/chart.css +288 -267
  29. package/src/chart/chart.tokens.json +4 -0
  30. package/src/checkbox/checkbox.css +143 -148
  31. package/src/checkbox-group/checkbox-group.css +7 -7
  32. package/src/code-block/code-block.css +85 -89
  33. package/src/collapsible/collapsible.css +76 -80
  34. package/src/color-picker/color-picker.css +106 -114
  35. package/src/column-manager/column-manager.css +111 -119
  36. package/src/combobox/combobox.css +203 -130
  37. package/src/combobox/combobox.tokens.json +3 -0
  38. package/src/command-palette/command-palette.css +155 -102
  39. package/src/command-palette/command-palette.tokens.json +2 -0
  40. package/src/container/container.css +27 -27
  41. package/src/context-menu/context-menu.css +9 -9
  42. package/src/currency-field/currency-field.css +119 -119
  43. package/src/currency-field/currency-field.tokens.json +1 -0
  44. package/src/dashboard-grid/dashboard-grid.css +185 -115
  45. package/src/data-grid/data-grid.css +598 -496
  46. package/src/data-grid/data-grid.tokens.json +5 -1
  47. package/src/data-list/data-list.css +82 -71
  48. package/src/data-list/data-list.tokens.json +2 -1
  49. package/src/date-field/date-field.css +62 -57
  50. package/src/date-field/date-field.tokens.json +1 -0
  51. package/src/date-picker/date-picker.css +117 -58
  52. package/src/date-picker/date-picker.tokens.json +5 -0
  53. package/src/date-range-picker/date-range-picker.css +157 -127
  54. package/src/date-range-picker/date-range-picker.tokens.json +4 -0
  55. package/src/datetime-field/datetime-field.css +90 -90
  56. package/src/datetime-field/datetime-field.tokens.json +1 -0
  57. package/src/datetime-picker/datetime-picker.css +123 -70
  58. package/src/datetime-picker/datetime-picker.tokens.json +4 -1
  59. package/src/datetime-range-picker/datetime-range-picker.css +191 -163
  60. package/src/datetime-range-picker/datetime-range-picker.tokens.json +4 -0
  61. package/src/description-list/description-list.css +105 -75
  62. package/src/description-list/description-list.tokens.json +1 -0
  63. package/src/detail-panel/detail-panel.css +86 -71
  64. package/src/detail-panel/detail-panel.tokens.json +2 -0
  65. package/src/dialog/dialog.css +434 -198
  66. package/src/dialog/dialog.tokens.json +7 -0
  67. package/src/divider/divider.css +20 -20
  68. package/src/drawer/drawer.css +597 -236
  69. package/src/drawer/drawer.tokens.json +13 -0
  70. package/src/entity-picker/entity-picker.css +323 -270
  71. package/src/entity-picker/entity-picker.tokens.json +3 -0
  72. package/src/event-calendar/event-calendar.css +357 -399
  73. package/src/field/field.css +106 -93
  74. package/src/field/field.tokens.json +2 -0
  75. package/src/field-group/field-group.css +43 -33
  76. package/src/field-group/field-group.tokens.json +3 -0
  77. package/src/filter-bar/filter-bar.css +200 -216
  78. package/src/form/form.css +99 -25
  79. package/src/form/form.tokens.json +5 -0
  80. package/src/fullscreen/fullscreen.css +26 -27
  81. package/src/grid/grid.css +29 -29
  82. package/src/highlight/highlight.css +11 -11
  83. package/src/hover-card/hover-card.css +9 -9
  84. package/src/icon/icon.css +67 -20
  85. package/src/icon/icon.tokens.json +1 -0
  86. package/src/image/image.css +42 -42
  87. package/src/import-export-center/import-export-center.css +144 -165
  88. package/src/inline/inline.css +28 -28
  89. package/src/inline-message/inline-message.css +162 -86
  90. package/src/inline-message/inline-message.tokens.json +4 -0
  91. package/src/kbd/kbd.css +62 -50
  92. package/src/kbd/kbd.tokens.json +3 -0
  93. package/src/link/link.css +54 -33
  94. package/src/link/link.tokens.json +4 -0
  95. package/src/list/list.css +23 -23
  96. package/src/list-item/list-item.css +89 -75
  97. package/src/list-item/list-item.tokens.json +7 -0
  98. package/src/listbox/listbox.css +71 -70
  99. package/src/listbox/listbox.tokens.json +0 -1
  100. package/src/loading-overlay/loading-overlay.css +86 -103
  101. package/src/markdown/markdown.css +20 -20
  102. package/src/media-viewer/media-viewer.css +790 -0
  103. package/src/media-viewer/media-viewer.tokens.json +53 -0
  104. package/src/menu/menu.css +162 -82
  105. package/src/menu/menu.tokens.json +2 -1
  106. package/src/menubar/menubar.css +16 -16
  107. package/src/message/message.css +1250 -1253
  108. package/src/message/message.tokens.json +5 -0
  109. package/src/message-scroller/message-scroller.css +323 -320
  110. package/src/multi-select/multi-select.css +230 -172
  111. package/src/multi-select/multi-select.tokens.json +2 -0
  112. package/src/navigation-menu/navigation-menu.css +169 -190
  113. package/src/notification-center/notification-center.css +153 -161
  114. package/src/notification-center/notification-center.tokens.json +3 -0
  115. package/src/number-field/number-field.css +93 -93
  116. package/src/number-field/number-field.tokens.json +1 -0
  117. package/src/otp-input/otp-input.css +74 -64
  118. package/src/otp-input/otp-input.tokens.json +1 -0
  119. package/src/page/page.css +41 -27
  120. package/src/page/page.tokens.json +1 -0
  121. package/src/page-header/page-header.css +341 -286
  122. package/src/page-header/page-header.tokens.json +5 -0
  123. package/src/pagination/pagination.css +75 -79
  124. package/src/popover/popover.css +81 -64
  125. package/src/popover/popover.tokens.json +1 -0
  126. package/src/progress-indicator/progress-indicator.css +192 -136
  127. package/src/progress-indicator/progress-indicator.tokens.json +1 -0
  128. package/src/prompt-composer/prompt-composer.css +260 -113
  129. package/src/prompt-composer/prompt-composer.tokens.json +15 -0
  130. package/src/prose/prose.css +77 -82
  131. package/src/radio-group/radio-group.css +107 -112
  132. package/src/rating/rating.css +146 -142
  133. package/src/rating/rating.tokens.json +1 -0
  134. package/src/result-state/result-state.css +94 -101
  135. package/src/runtime-properties.mjs +19 -6
  136. package/src/saved-views/saved-views.css +43 -49
  137. package/src/scroll-area/scroll-area.css +44 -37
  138. package/src/section/section.css +178 -43
  139. package/src/section/section.tokens.json +8 -2
  140. package/src/segmented-control/segmented-control.css +210 -133
  141. package/src/segmented-control/segmented-control.tokens.json +7 -11
  142. package/src/select/select.css +210 -147
  143. package/src/select/select.tokens.json +3 -0
  144. package/src/side-navigation/side-navigation.css +193 -196
  145. package/src/side-navigation/side-navigation.tokens.json +1 -0
  146. package/src/skeleton/skeleton.css +57 -58
  147. package/src/slider/slider.css +101 -103
  148. package/src/sparkline/sparkline.css +75 -53
  149. package/src/sparkline/sparkline.tokens.json +2 -0
  150. package/src/spinner/spinner.css +83 -180
  151. package/src/spinner/spinner.tokens.json +0 -1
  152. package/src/split-button/split-button.css +34 -35
  153. package/src/split-button/split-button.tokens.json +1 -0
  154. package/src/splitter/splitter.css +47 -48
  155. package/src/stack/stack.css +25 -25
  156. package/src/stat-card/stat-card.css +415 -245
  157. package/src/stat-card/stat-card.tokens.json +8 -0
  158. package/src/status-indicator/status-indicator.css +124 -100
  159. package/src/status-indicator/status-indicator.tokens.json +0 -3
  160. package/src/stepper/stepper.css +78 -82
  161. package/src/switch/switch.css +100 -106
  162. package/src/table/table.css +270 -198
  163. package/src/table/table.tokens.json +2 -0
  164. package/src/table-of-contents/table-of-contents.css +60 -59
  165. package/src/table-of-contents/table-of-contents.tokens.json +1 -0
  166. package/src/tabs/tabs.css +327 -294
  167. package/src/tabs/tabs.tokens.json +7 -1
  168. package/src/tag/tag.css +109 -88
  169. package/src/tag/tag.tokens.json +10 -0
  170. package/src/tags-input/tags-input.css +152 -87
  171. package/src/tags-input/tags-input.tokens.json +7 -1
  172. package/src/text-field/text-field.css +146 -148
  173. package/src/text-field/text-field.tokens.json +1 -0
  174. package/src/textarea/textarea.css +38 -33
  175. package/src/textarea/textarea.tokens.json +1 -0
  176. package/src/time-field/time-field.css +82 -77
  177. package/src/time-field/time-field.tokens.json +1 -0
  178. package/src/time-picker/time-picker.css +116 -64
  179. package/src/time-picker/time-picker.tokens.json +4 -1
  180. package/src/time-range-picker/time-range-picker.css +168 -140
  181. package/src/time-range-picker/time-range-picker.tokens.json +4 -0
  182. package/src/timeline/timeline.css +280 -292
  183. package/src/timeline/timeline.tokens.json +5 -0
  184. package/src/toast/toast.css +138 -121
  185. package/src/toast/toast.tokens.json +6 -0
  186. package/src/toggle/toggle.css +34 -38
  187. package/src/toggle-group/toggle-group.css +73 -77
  188. package/src/toolbar/toolbar.css +33 -38
  189. package/src/tooltip/tooltip.css +65 -39
  190. package/src/tooltip/tooltip.tokens.json +1 -0
  191. package/src/top-navigation/top-navigation.css +252 -268
  192. package/src/tour/tour.css +64 -73
  193. package/src/transfer/transfer.css +164 -168
  194. package/src/tree/tree.css +113 -121
  195. package/src/typography/typography.css +42 -38
  196. package/src/typography/typography.tokens.json +1 -0
  197. package/src/upload/upload.css +256 -257
  198. package/src/visually-hidden/visually-hidden.css +1 -1
  199. package/src/wizard/wizard.css +187 -199
@@ -1,4 +1,5 @@
1
1
  [
2
+ "--slotted-border-strong",
2
3
  "--slotted-border-subtle",
3
4
  "--slotted-border-width-thin",
4
5
  "--slotted-control-border-color",
@@ -86,6 +87,7 @@
86
87
  "--slotted-disabled-background",
87
88
  "--slotted-disabled-border",
88
89
  "--slotted-disabled-foreground",
90
+ "--slotted-drawer-resizer-line-color",
89
91
  "--slotted-duration-medium",
90
92
  "--slotted-duration-short",
91
93
  "--slotted-easing-enter",
@@ -101,6 +103,7 @@
101
103
  "--slotted-font-weight-semibold",
102
104
  "--slotted-letter-spacing-wide",
103
105
  "--slotted-line-height-sm",
106
+ "--slotted-radius-full",
104
107
  "--slotted-radius-lg",
105
108
  "--slotted-radius-none",
106
109
  "--slotted-radius-pill",
@@ -108,6 +111,7 @@
108
111
  "--slotted-radius-xs",
109
112
  "--slotted-shadow-md",
110
113
  "--slotted-space-1",
114
+ "--slotted-space-11",
111
115
  "--slotted-space-2",
112
116
  "--slotted-space-3",
113
117
  "--slotted-space-4",
@@ -15,7 +15,7 @@
15
15
  * setting those same properties, rather than by restating six rules that
16
16
  * would have to be kept in step with the six above them.
17
17
  */
18
- [data-ui='description-list'] {
18
+ [data-ui-description-list] {
19
19
  /**
20
20
  * The root is the query container and nothing else. An element with
21
21
  * `container-type: inline-size` is a container for its descendants and not
@@ -25,10 +25,22 @@
25
25
  container-name: slotted-description-list;
26
26
  container-type: inline-size;
27
27
  display: block;
28
+ /**
29
+ * The width under which a row of a term and its value gives up, carried as
30
+ * the root's font size. A container condition cannot read a custom
31
+ * property, but it resolves `em` against the container's own font size, so
32
+ * `(max-width: 1em)` folds the row when the term track and the narrowest
33
+ * value no longer fit side by side. The list states its own font size, so
34
+ * no text is set in this one.
35
+ */
36
+ font-size: calc(
37
+ var(--slotted-description-list-term-width, 14rem) +
38
+ var(--slotted-description-list-value-min, 12rem)
39
+ );
28
40
  }
29
41
 
30
- [data-ui='description-list'] [data-part='list'] {
31
- /* ── The colours ─────────────────────────────────────────────────── */
42
+ [data-ui-description-list] [data-part-list] {
43
+ /* ── The colors ─────────────────────────────────────────────────── */
32
44
  --_ink: var(--slotted-description-list-color, var(--slotted-text, CanvasText));
33
45
  --_term-ink: var(--slotted-description-list-term-color, var(--slotted-text-muted, GrayText));
34
46
  --_hint-ink: var(--slotted-description-list-hint-color, var(--slotted-text-muted, GrayText));
@@ -42,7 +54,7 @@
42
54
  * The mark standing in for a missing value, held on the list rather than
43
55
  * stated inside the pseudo-element that paints it: an unthemed decoration
44
56
  * should disappear rather than shout, which is why
45
- * `packages/styles/src/fallbacks.test.mjs` refuses a system colour inside a
57
+ * `packages/styles/src/fallbacks.test.mjs` refuses a system color inside a
46
58
  * `::before` or `::after` rule. Reading it through one property keeps the
47
59
  * last resort where the theme's own tokens are.
48
60
  */
@@ -96,7 +108,7 @@
96
108
  * The distance between a term and the value under it, which is three times
97
109
  * the distance between a term and its own hint: without that ratio the
98
110
  * three lines of a stacked pair read as one paragraph and the reader has to
99
- * find the value by its colour alone.
111
+ * find the value by its color alone.
100
112
  */
101
113
  --_stack-gap: var(--slotted-description-list-stack-gap, var(--slotted-space-3, 0.375rem));
102
114
  --_pad-block: var(
@@ -145,7 +157,7 @@
145
157
  * always would end every row of every actionless list with a distance
146
158
  * nothing asked for.
147
159
  */
148
- [data-ui='description-list'] [data-part='list']:has([data-part='action']) {
160
+ [data-ui-description-list] [data-part-list]:has([data-part-action]) {
149
161
  --_pair: fit-content(var(--_term-width)) minmax(0, 1fr) auto;
150
162
  --_span-1: 3;
151
163
  --_span-2: 6;
@@ -153,11 +165,11 @@
153
165
  --_desc-col: 2 / -2;
154
166
  }
155
167
 
156
- [data-ui='description-list'][data-columns='2'] [data-part='list'] {
168
+ [data-ui-description-list][data-columns='2'] [data-part-list] {
157
169
  --_cols: repeat(2, var(--_pair));
158
170
  }
159
171
 
160
- [data-ui='description-list'][data-columns='3'] [data-part='list'] {
172
+ [data-ui-description-list][data-columns='3'] [data-part-list] {
161
173
  --_cols: repeat(3, var(--_pair));
162
174
  }
163
175
 
@@ -167,7 +179,7 @@
167
179
  * thing under it — which is what GOV.UK's summary list does at its own narrow
168
180
  * width.
169
181
  */
170
- [data-ui='description-list'][data-layout='stack'] [data-part='list'] {
182
+ [data-ui-description-list][data-layout='stack'] [data-part-list] {
171
183
  --_pair: minmax(0, 1fr);
172
184
  --_term-floor: 0px;
173
185
  --_span-1: 1;
@@ -182,14 +194,14 @@
182
194
  --_action-row: 1;
183
195
  }
184
196
 
185
- [data-ui='description-list'][data-layout='stack'] [data-part='list']:has([data-part='action']) {
197
+ [data-ui-description-list][data-layout='stack'] [data-part-list]:has([data-part-action]) {
186
198
  --_item-cols: minmax(0, 1fr) auto;
187
199
  --_desc-col: 1 / -1;
188
200
  }
189
201
 
190
202
  /* ── The pair ──────────────────────────────────────────────────────── */
191
203
 
192
- [data-ui='description-list'] [data-part='item'] {
204
+ [data-ui-description-list] [data-part-item] {
193
205
  column-gap: var(--_item-col-gap);
194
206
  display: grid;
195
207
  grid-column: span var(--_span-1);
@@ -198,15 +210,15 @@
198
210
  row-gap: var(--_stack-gap);
199
211
  }
200
212
 
201
- [data-ui='description-list'] [data-part='item'][data-span='2'] {
213
+ [data-ui-description-list] [data-part-item][data-span='2'] {
202
214
  grid-column: span var(--_span-2);
203
215
  }
204
216
 
205
- [data-ui='description-list'] [data-part='item'][data-span='3'] {
217
+ [data-ui-description-list] [data-part-item][data-span='3'] {
206
218
  grid-column: span var(--_span-3);
207
219
  }
208
220
 
209
- [data-ui='description-list'] [data-part='term'] {
221
+ [data-ui-description-list] [data-part-term] {
210
222
  color: var(--_term-ink);
211
223
  font-weight: var(
212
224
  --slotted-description-list-term-weight,
@@ -238,11 +250,11 @@
238
250
  * needs a layer, and the layer is still available when the explanation is
239
251
  * longer than a line.
240
252
  */
241
- [data-ui='description-list'] [data-part='list']:has([data-part='hint']) {
253
+ [data-ui-description-list] [data-part-list]:has([data-part-hint]) {
242
254
  --_term-floor: var(--slotted-description-list-term-min, 12rem);
243
255
  }
244
256
 
245
- [data-ui='description-list'] [data-part='hint'] {
257
+ [data-ui-description-list] [data-part-hint] {
246
258
  color: var(--_hint-ink);
247
259
  /**
248
260
  * A hint is a sentence and a term is two words, so a hint left to size its
@@ -276,20 +288,20 @@
276
288
  * value and a copy control is a block, and the grid below is for the ones
277
289
  * that have a second row to place.
278
290
  */
279
- [data-ui='description-list'] [data-part='description']:not([data-clamp]) {
291
+ [data-ui-description-list] [data-part-description]:not([data-clamp]) {
280
292
  display: block;
281
293
  }
282
294
 
283
- [data-ui='description-list'] [data-part='description']:not([data-clamp]) [data-part='value'] {
295
+ [data-ui-description-list] [data-part-description]:not([data-clamp]) [data-part-value] {
284
296
  display: inline;
285
297
  }
286
298
 
287
- [data-ui='description-list'] [data-part='description']:not([data-clamp]) [data-part='copy'] {
299
+ [data-ui-description-list] [data-part-description]:not([data-clamp]) [data-part-copy] {
288
300
  margin-inline-start: var(--_pair-gap);
289
301
  vertical-align: text-bottom;
290
302
  }
291
303
 
292
- [data-ui='description-list'] [data-part='description'] {
304
+ [data-ui-description-list] [data-part-description] {
293
305
  align-items: baseline;
294
306
  /**
295
307
  * The distance from a value to the control that reaches it does not follow
@@ -310,7 +322,7 @@
310
322
  row-gap: var(--slotted-space-2, 0.25rem);
311
323
  }
312
324
 
313
- [data-ui='description-list'] [data-part='value'] {
325
+ [data-ui-description-list] [data-part-value] {
314
326
  grid-column: 1;
315
327
  min-inline-size: 0;
316
328
  /* An unbroken token — a hash, an ARN, a URL — breaks rather than leaving
@@ -325,16 +337,14 @@
325
337
  * family — a long value may be copied or revealed, never truncated without
326
338
  * access.
327
339
  */
328
- [data-ui='description-list'] [data-part='description'][data-clamp] [data-part='value'] {
340
+ [data-ui-description-list] [data-part-description][data-clamp] [data-part-value] {
329
341
  -webkit-box-orient: vertical;
330
342
  -webkit-line-clamp: var(--slotted-description-list-clamp, 2);
331
343
  display: -webkit-box;
332
344
  overflow: hidden;
333
345
  }
334
346
 
335
- [data-ui='description-list']
336
- [data-part='description'][data-clamp][data-revealed]
337
- [data-part='value'] {
347
+ [data-ui-description-list] [data-part-description][data-clamp][data-revealed] [data-part-value] {
338
348
  -webkit-line-clamp: none;
339
349
  display: block;
340
350
  overflow: visible;
@@ -363,13 +373,13 @@
363
373
  * `—` and never `-`: a hyphen is a word joiner, half the width, and it sits
364
374
  * at a different height.
365
375
  */
366
- [data-ui='description-list'] [data-part='placeholder'] {
376
+ [data-ui-description-list] [data-part-placeholder] {
367
377
  color: var(--_placeholder-ink);
368
378
  }
369
379
 
370
380
  /* ── The controls ──────────────────────────────────────────────────── */
371
381
 
372
- [data-ui='description-list'] :is([data-part='copy'], [data-part='toggle']) {
382
+ [data-ui-description-list] :is([data-part-copy], [data-part-toggle]) {
373
383
  appearance: none;
374
384
  background: none;
375
385
  border: 0;
@@ -382,7 +392,7 @@
382
392
  var(--slotted-control-transition-easing);
383
393
  }
384
394
 
385
- [data-ui='description-list'] :is([data-part='copy'], [data-part='toggle']):focus-visible {
395
+ [data-ui-description-list] :is([data-part-copy], [data-part-toggle]):focus-visible {
386
396
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
387
397
  outline-offset: var(--slotted-focus-ring-offset, 2px);
388
398
  }
@@ -393,7 +403,7 @@
393
403
  * twenty-four pixels and an equal negative margin gives the space back to the
394
404
  * line, so the row keeps its rhythm and the target keeps its size.
395
405
  */
396
- [data-ui='description-list'] [data-part='copy'] {
406
+ [data-ui-description-list] [data-part-copy] {
397
407
  --slotted-icon-size: var(--_glyph);
398
408
  align-items: center;
399
409
  block-size: var(--slotted-target-min, 24px);
@@ -412,7 +422,7 @@
412
422
  padding: var(--_hit);
413
423
  }
414
424
 
415
- [data-ui='description-list'] [data-part='copy']:enabled:not([data-complete]):hover {
425
+ [data-ui-description-list] [data-part-copy]:enabled:not([data-complete]):hover {
416
426
  background-color: var(
417
427
  --slotted-description-list-control-surface-hover,
418
428
  var(--slotted-tone-secondary-subtle-hover, ButtonFace)
@@ -420,7 +430,7 @@
420
430
  color: var(--_control-ink-hover);
421
431
  }
422
432
 
423
- [data-ui='description-list'] [data-part='copy']:enabled:not([data-complete]):active {
433
+ [data-ui-description-list] [data-part-copy]:enabled:not([data-complete]):active {
424
434
  background-color: var(
425
435
  --slotted-description-list-control-surface-active,
426
436
  var(--slotted-tone-secondary-subtle-active, ButtonFace)
@@ -428,26 +438,26 @@
428
438
  }
429
439
 
430
440
  /**
431
- * A copy that finished. The mark changes as well as the colour — the binding
441
+ * A copy that finished. The mark changes as well as the color — the binding
432
442
  * draws the check `Glyph` in place of the copy one — because a green
433
443
  * clipboard says nothing to a reader who cannot see the green, and the
434
444
  * control returns to rest on its own, so nothing is left claiming a state
435
445
  * that has passed.
436
446
  */
437
- [data-ui='description-list'] [data-part='copy'][data-complete] {
447
+ [data-ui-description-list] [data-part-copy][data-complete] {
438
448
  color: var(--_control-ink-done);
439
449
  }
440
450
 
441
451
  /* On a finger the target is the comfortable size in both axes and the box
442
- is the one a mouse sees: a transparent `::before` centred on the control
452
+ is the one a mouse sees: a transparent `::before` centerd on the control
443
453
  reaches 44 pixels, and the ground and the ring stay square. The row keeps
444
454
  its rhythm, because the halo takes no room. */
445
455
  @media (pointer: coarse) {
446
- [data-ui='description-list'] [data-part='copy'] {
456
+ [data-ui-description-list] [data-part-copy] {
447
457
  position: relative;
448
458
  }
449
459
 
450
- [data-ui='description-list'] [data-part='copy']::before {
460
+ [data-ui-description-list] [data-part-copy]::before {
451
461
  content: '';
452
462
  inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
453
463
  position: absolute;
@@ -461,7 +471,7 @@
461
471
  * carries — the `Glyph` the binding draws after the words, turned, not
462
472
  * swapped, so the eye follows one mark rather than catching two.
463
473
  */
464
- [data-ui='description-list'] [data-part='toggle'] {
474
+ [data-ui-description-list] [data-part-toggle] {
465
475
  --slotted-icon-size: var(--_glyph);
466
476
  align-items: center;
467
477
  color: var(--_link-ink);
@@ -473,28 +483,28 @@
473
483
  padding-inline: 0;
474
484
  }
475
485
 
476
- [data-ui='description-list'] [data-part='toggle'] > [data-ui='icon'] {
486
+ [data-ui-description-list] [data-part-toggle] > [data-ui-icon] {
477
487
  rotate: 0deg;
478
488
  transition: rotate var(--slotted-control-transition-duration)
479
489
  var(--slotted-control-transition-easing);
480
490
  }
481
491
 
482
- [data-ui='description-list'] [data-revealed] [data-part='toggle'] > [data-ui='icon'] {
492
+ [data-ui-description-list] [data-revealed] [data-part-toggle] > [data-ui-icon] {
483
493
  rotate: 180deg;
484
494
  }
485
495
 
486
- [data-ui='description-list'] [data-part='toggle']:enabled:hover {
496
+ [data-ui-description-list] [data-part-toggle]:enabled:hover {
487
497
  text-decoration-line: underline;
488
498
  text-underline-offset: var(--slotted-description-list-underline-offset, 0.2em);
489
499
  }
490
500
 
491
- [data-ui='description-list'] [data-part='toggle']:enabled:active {
501
+ [data-ui-description-list] [data-part-toggle]:enabled:active {
492
502
  color: var(--_control-ink-hover);
493
503
  }
494
504
 
495
505
  /* ── The row's own action ──────────────────────────────────────────── */
496
506
 
497
- [data-ui='description-list'] [data-part='action'] {
507
+ [data-ui-description-list] [data-part-action] {
498
508
  align-self: start;
499
509
  grid-column: var(--_action-col);
500
510
  grid-row: var(--_action-row);
@@ -510,7 +520,7 @@
510
520
  * this variant. It is the form that belongs inside a card, where the card
511
521
  * already draws the box and a second frame would be two.
512
522
  */
513
- [data-ui='description-list'][data-variant='plain'] [data-part='list'] {
523
+ [data-ui-description-list][data-variant='plain'] [data-part-list] {
514
524
  row-gap: var(--_row-gap);
515
525
  }
516
526
 
@@ -522,11 +532,11 @@
522
532
  * also the only form of the rule that survives a pair spanning two columns,
523
533
  * because it needs to know nothing about which row a pair is in.
524
534
  */
525
- [data-ui='description-list'][data-variant='ruled'] [data-part='list'] {
535
+ [data-ui-description-list][data-variant='ruled'] [data-part-list] {
526
536
  row-gap: 0;
527
537
  }
528
538
 
529
- [data-ui='description-list'][data-variant='ruled'] [data-part='item'] {
539
+ [data-ui-description-list][data-variant='ruled'] [data-part-item] {
530
540
  border-block-end: var(--slotted-border-width-thin, 1px) solid var(--_rule);
531
541
  padding-block: var(--_pad-block);
532
542
  }
@@ -539,7 +549,7 @@
539
549
  * calls it `bordered` and Carbon draws the same rules; here the frame is the
540
550
  * family's and the surface underneath is the theme's.
541
551
  */
542
- [data-ui='description-list'][data-variant='framed'] [data-part='list'] {
552
+ [data-ui-description-list][data-variant='framed'] [data-part-list] {
543
553
  background-color: var(--_surface);
544
554
  border: var(--slotted-border-width-thin, 1px) solid var(--_rule);
545
555
  border-radius: var(--slotted-description-list-frame-radius, var(--slotted-radius-md, 6px));
@@ -549,32 +559,31 @@
549
559
  row-gap: 0;
550
560
  }
551
561
 
552
- [data-ui='description-list'][data-variant='framed'] [data-part='item'] {
562
+ [data-ui-description-list][data-variant='framed'] [data-part-item] {
553
563
  border-block-start: var(--slotted-border-width-thin, 1px) solid var(--_rule);
554
564
  column-gap: 0;
555
565
  }
556
566
 
557
- [data-ui='description-list'][data-variant='framed'][data-columns='1']
558
- [data-part='item']:first-child,
559
- [data-ui='description-list'][data-variant='framed'][data-columns='2']
560
- [data-part='item']:nth-child(-n + 2),
561
- [data-ui='description-list'][data-variant='framed'][data-columns='3']
562
- [data-part='item']:nth-child(-n + 3) {
567
+ [data-ui-description-list][data-variant='framed'][data-columns='1'] [data-part-item]:first-child,
568
+ [data-ui-description-list][data-variant='framed'][data-columns='2']
569
+ [data-part-item]:nth-child(-n + 2),
570
+ [data-ui-description-list][data-variant='framed'][data-columns='3']
571
+ [data-part-item]:nth-child(-n + 3) {
563
572
  border-block-start-width: 0;
564
573
  }
565
574
 
566
- [data-ui='description-list'][data-variant='framed']
567
- :is([data-part='term'], [data-part='description'], [data-part='action']) {
575
+ [data-ui-description-list][data-variant='framed']
576
+ :is([data-part-term], [data-part-description], [data-part-action]) {
568
577
  padding-block: var(--_pad-block);
569
578
  padding-inline: var(--_pad-inline);
570
579
  }
571
580
 
572
- [data-ui='description-list'][data-variant='framed'] [data-part='term'] {
581
+ [data-ui-description-list][data-variant='framed'] [data-part-term] {
573
582
  background-color: var(--_term-surface);
574
583
  border-inline-end: var(--slotted-border-width-thin, 1px) solid var(--_rule);
575
584
  }
576
585
 
577
- [data-ui='description-list'][data-variant='framed'][data-layout='stack'] [data-part='term'] {
586
+ [data-ui-description-list][data-variant='framed'][data-layout='stack'] [data-part-term] {
578
587
  /* Stacked, the term is a bar above its value rather than a cell beside it,
579
588
  and a rule on its inline edge would point at nothing. */
580
589
  border-inline-end: 0;
@@ -589,8 +598,11 @@
589
598
  * column goes first and the single-column row form gets the whole width
590
599
  * before it gives up on the row.
591
600
  *
592
- * The breakpoints are literals because a container condition cannot read a
593
- * custom property, which rule 4 of `docs/token-foundation.md` states.
601
+ * The count breakpoints are literals because a container condition cannot
602
+ * read a custom property, which rule 4 of `docs/token-foundation.md` states.
603
+ * That is why `data-min-column-width` is a step and not a length: `md` folds
604
+ * at sixteen and seventeen rem a column, `sm` at twelve and a half. The row
605
+ * fold reads the term width through the root's font size instead.
594
606
  */
595
607
  /**
596
608
  * A span is stated in tracks, so it collapses with the count that produced
@@ -601,30 +613,48 @@
601
613
  * of a four-track grid.
602
614
  */
603
615
  @container slotted-description-list (max-width: 48rem) {
604
- [data-ui='description-list'][data-columns='3'] [data-part='list'] {
616
+ [data-ui-description-list][data-min-column-width='md'][data-columns='3'] [data-part-list] {
617
+ --_cols: repeat(2, var(--_pair));
618
+ --_span-3: var(--_span-2);
619
+ }
620
+ }
621
+
622
+ @container slotted-description-list (max-width: 37.5rem) {
623
+ [data-ui-description-list][data-min-column-width='sm'][data-columns='3'] [data-part-list] {
605
624
  --_cols: repeat(2, var(--_pair));
606
625
  --_span-3: var(--_span-2);
607
626
  }
608
627
  }
609
628
 
629
+ @container slotted-description-list (max-width: 25rem) {
630
+ [data-ui-description-list][data-min-column-width='sm'][data-columns='2'] [data-part-list],
631
+ [data-ui-description-list][data-min-column-width='sm'][data-columns='3'] [data-part-list] {
632
+ --_cols: var(--_pair);
633
+ --_span-2: var(--_span-1);
634
+ --_span-3: var(--_span-1);
635
+ }
636
+ }
637
+
610
638
  @container slotted-description-list (max-width: 34rem) {
611
- [data-ui='description-list'][data-columns='2'] [data-part='list'],
612
- [data-ui='description-list'][data-columns='3'] [data-part='list'] {
639
+ [data-ui-description-list][data-min-column-width='md'][data-columns='2'] [data-part-list],
640
+ [data-ui-description-list][data-min-column-width='md'][data-columns='3'] [data-part-list] {
613
641
  --_cols: var(--_pair);
614
642
  --_span-2: var(--_span-1);
615
643
  --_span-3: var(--_span-1);
616
644
  }
645
+ }
617
646
 
647
+ @container slotted-description-list (max-width: calc(1em + 8rem)) {
618
648
  /**
619
649
  * A list whose terms carry hints gives up the row eight rem earlier than
620
650
  * one whose terms do not. A hint is a sentence under a label, and a label
621
651
  * column wide enough to hold one leaves a four-hundred-pixel panel with a
622
652
  * value column narrower than the label — which is the arrangement inverted
623
- * rather than compressed. The declarations are the ones below, at
624
- * twenty-six rem, and they are written twice because two container
625
- * conditions cannot share one rule.
653
+ * rather than compressed. The declarations are the ones below, at the
654
+ * row fold, and they are written twice because two container conditions
655
+ * cannot share one rule.
626
656
  */
627
- [data-ui='description-list'][data-layout='row'] [data-part='list']:has([data-part='hint']) {
657
+ [data-ui-description-list][data-layout='row'] [data-part-list]:has([data-part-hint]) {
628
658
  --_pair: minmax(0, 1fr);
629
659
  --_term-floor: 0px;
630
660
  --_span-1: 1;
@@ -637,20 +667,20 @@
637
667
  --_action-row: 1;
638
668
  }
639
669
 
640
- [data-ui='description-list'][data-layout='row']
641
- [data-part='list']:has([data-part='hint']):has([data-part='action']) {
670
+ [data-ui-description-list][data-layout='row']
671
+ [data-part-list]:has([data-part-hint]):has([data-part-action]) {
642
672
  --_item-cols: minmax(0, 1fr) auto;
643
673
  }
644
674
 
645
- [data-ui='description-list'][data-variant='framed'][data-layout='row']
646
- [data-part='list']:has([data-part='hint'])
647
- [data-part='term'] {
675
+ [data-ui-description-list][data-variant='framed'][data-layout='row']
676
+ [data-part-list]:has([data-part-hint])
677
+ [data-part-term] {
648
678
  border-inline-end: 0;
649
679
  }
650
680
  }
651
681
 
652
- @container slotted-description-list (max-width: 26rem) {
653
- [data-ui='description-list'][data-layout='row'] [data-part='list'] {
682
+ @container slotted-description-list (max-width: 1em) {
683
+ [data-ui-description-list][data-layout='row'] [data-part-list] {
654
684
  --_pair: minmax(0, 1fr);
655
685
  --_term-floor: 0px;
656
686
  --_span-1: 1;
@@ -663,12 +693,12 @@
663
693
  --_action-row: 1;
664
694
  }
665
695
 
666
- [data-ui='description-list'][data-layout='row'] [data-part='list']:has([data-part='action']) {
696
+ [data-ui-description-list][data-layout='row'] [data-part-list]:has([data-part-action]) {
667
697
  --_item-cols: minmax(0, 1fr) auto;
668
698
  --_desc-col: 1 / -1;
669
699
  }
670
700
 
671
- [data-ui='description-list'][data-variant='framed'][data-layout='row'] [data-part='term'] {
701
+ [data-ui-description-list][data-variant='framed'][data-layout='row'] [data-part-term] {
672
702
  border-inline-end: 0;
673
703
  }
674
704
  }
@@ -39,6 +39,7 @@
39
39
  "--slotted-description-list-term-width",
40
40
  "--slotted-description-list-toggle-color",
41
41
  "--slotted-description-list-underline-offset",
42
+ "--slotted-description-list-value-min",
42
43
  "--slotted-focus-ring-color",
43
44
  "--slotted-focus-ring-offset",
44
45
  "--slotted-focus-ring-width",