@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
@@ -38,6 +38,8 @@
38
38
  "--slotted-sparkline-block-size",
39
39
  "--slotted-sparkline-block-size-lg",
40
40
  "--slotted-sparkline-block-size-sm",
41
+ "--slotted-stat-card-attention-border-color",
42
+ "--slotted-stat-card-attention-ink",
41
43
  "--slotted-stat-card-background",
42
44
  "--slotted-stat-card-background-subtle",
43
45
  "--slotted-stat-card-border-color",
@@ -72,6 +74,9 @@
72
74
  "--slotted-stat-card-region-gap-sm",
73
75
  "--slotted-stat-card-shadow",
74
76
  "--slotted-stat-card-shadow-elevated",
77
+ "--slotted-stat-card-trend-block-size",
78
+ "--slotted-stat-card-trend-block-size-lg",
79
+ "--slotted-stat-card-trend-block-size-sm",
75
80
  "--slotted-stat-card-trend-gap",
76
81
  "--slotted-stat-card-trend-gap-lg",
77
82
  "--slotted-stat-card-trend-gap-sm",
@@ -90,8 +95,11 @@
90
95
  "--slotted-text",
91
96
  "--slotted-text-muted",
92
97
  "--slotted-tone-accent-text",
98
+ "--slotted-tone-danger-border",
93
99
  "--slotted-tone-danger-text",
100
+ "--slotted-tone-info-text",
94
101
  "--slotted-tone-secondary-text",
95
102
  "--slotted-tone-success-text",
103
+ "--slotted-tone-warning-border",
96
104
  "--slotted-tone-warning-text"
97
105
  ]
@@ -8,19 +8,26 @@
8
8
  * link, and it holds no state of its own — a component that moved its own
9
9
  * status would be describing a system it cannot see.
10
10
  *
11
- * `align-items: flex-start` rather than `center`, and that is the decision
12
- * the whole box is built around. A status is often a sentence — “Waiting for
13
- * approval from the security team” — and this family lets it wrap where
14
- * `badge` clips its own label to one line. A centred mark beside four lines
15
- * of text floats in the middle of a paragraph; the mark is given a box one
16
- * line tall instead, so it sits on the first line however far the words run.
11
+ * The mark is inside the first line, not in a column beside it, and that is
12
+ * the decision the whole box is built around. A status is often a sentence —
13
+ * “Waiting for approval from the security team” — and this family lets it
14
+ * wrap where `badge` clips its own label to one line. The mark is an inline
15
+ * box before the label, centerd on the capitals, and the label is an
16
+ * `inline-block` beside it: the words wrap inside that block, so every line
17
+ * after the first starts under the first word rather than under the mark,
18
+ * and the block lends its first baseline to whatever aligns the root — a
19
+ * table row aligns on the label, never on a second line under it.
17
20
  *
18
- * The words take the page's own colour. The tone is on the mark, which is
21
+ * The root is the consumer's element: `span`, `a`, `td`. Only an inline root
22
+ * becomes an `inline-block`; a cell or a block keeps its own display and its
23
+ * own padding.
24
+ *
25
+ * The words take the page's own color. The tone is on the mark, which is
19
26
  * what keeps a column of statuses in a table as readable as the column
20
27
  * beside it — the answer Spectrum, Chakra and Ant Design all reached, and
21
- * the opposite of the coloured pill Primer and Atlassian draw.
28
+ * the opposite of the colored pill Primer and Atlassian draw.
22
29
  */
23
- [data-ui='status-indicator'][data-part='root'] {
30
+ [data-ui-status-indicator][data-part-root] {
24
31
  /**
25
32
  * Type and glyph come from the control scales, the only ones the theme
26
33
  * restates per density, so a status shrinks with the row it sits in. The
@@ -28,9 +35,13 @@
28
35
  * small would be sub-pixel, and density already moves the type.
29
36
  */
30
37
  --_font-size: var(--slotted-control-font-size-md, 13px);
31
- --_glyph-size: var(--slotted-control-icon-size-md, 16px);
38
+ /**
39
+ * The glyph is the words' own size rounded to an even pixel, as
40
+ * `inline-message` draws its mark (R5): 12 pixels at `sm`, 14 at `md` and
41
+ * `lg`, the two grids the status glyphs are drawn on.
42
+ */
43
+ --_glyph-size: round(nearest, 1em, 2px);
32
44
  --_gap: var(--slotted-space-4, 0.5rem);
33
- --_line-height: var(--slotted-line-height-md, 1.5);
34
45
 
35
46
  /**
36
47
  * The disc is a whole number of pixels from the space scale: 8 at `md` and
@@ -38,8 +49,7 @@
38
49
  * fractional disc lands its edge across two device pixels at 1×. ReUI draws
39
50
  * the same light at 6 pixels beside 14-pixel type (0.43 em); 8 beside 13 is
40
51
  * 0.62 em, which keeps the tone legible in a table cell without
41
- * outweighing the word. Measured in
42
- * `docs/history/designs/2026-09-25-status-indicator-reui-dossier.md` § 3.
52
+ * outweighing the word.
43
53
  */
44
54
  --_dot-size: var(--slotted-space-4, 0.5rem);
45
55
  --_mark-size: var(--_dot-size);
@@ -52,13 +62,13 @@
52
62
  * Every tone's fill clears WCAG 2.2 1.4.11's 3:1 against the surface in
53
63
  * light and dark except `warning`, whose yellow is 1.53:1 on white; that
54
64
  * one status sets `--_edge` to the tone's border role. The rim was the
55
- * tone's text role on every status, and a second colour around the fill
65
+ * tone's text role on every status, and a second color around the fill
56
66
  * drew a bullseye: brown around yellow, near-black around grey, and a pale
57
67
  * ring around every tone in dark (dossier § 3).
58
68
  */
59
69
  --_rim: var(--slotted-status-indicator-mark-border-color, var(--_edge, var(--_solid)));
60
70
  /**
61
- * The halo: a band of the dot's own colour at a fifth of its strength,
71
+ * The halo: a band of the dot's own color at a fifth of its strength,
62
72
  * drawn outside the disc with `box-shadow` so it takes no room in the
63
73
  * line. It is what separates a status light from a bullet — the disc
64
74
  * reads as lit rather than printed — and it costs no contrast, because
@@ -70,30 +80,20 @@
70
80
  --_halo-width: calc(var(--slotted-space-1, 0.125rem) * 1.5);
71
81
 
72
82
  /**
73
- * What the ring is drawn against. The pulse hangs off the root rather
74
- * than off the mark: when the icon mark was a `mask-image`, the mask
75
- * clipped the element's pseudo-elements with it, and a ring behind a
76
- * triangle was cut into the shape of that triangle and then disappeared.
77
- * Photographed at 300% before it was moved here, and kept here so the
78
- * ring never depends on how a mark is drawn. Rounded to a whole pixel, the
79
- * rule `alert` applies to its own mark, so the disc never straddles one.
80
- */
81
- --_pulse-inset: round(nearest, (1lh - var(--_mark-size)) / 2, 1px);
82
-
83
- align-items: flex-start;
84
- /**
85
- * The words keep the page's colour when `render` makes the root an `<a>`;
83
+ * The words keep the page's color when `render` makes the root an `<a>`;
86
84
  * without this the user agent paints the label in its link blue.
87
85
  */
88
86
  color: inherit;
89
- display: inline-flex;
90
87
  font-family: var(
91
88
  --slotted-status-indicator-font-family,
92
89
  var(--slotted-control-font-family, sans-serif)
93
90
  );
94
91
  font-size: var(--_font-size);
95
- line-height: var(--_line-height);
96
- max-inline-size: 100%;
92
+ /**
93
+ * The leading, rounded up to an even pixel: 13 × 1.5 is 19.5 and lands the
94
+ * line, and the mark centerd on it, across two device pixels.
95
+ */
96
+ line-height: round(up, 1em * var(--slotted-line-height-md, 1.5), 2px);
97
97
  /**
98
98
  * The indicator never widens the box that holds it. Its own minimum is the
99
99
  * longest word of a label it did not choose, and a grid or flex parent
@@ -103,15 +103,21 @@
103
103
  * label breaks the token at whatever width it is given.
104
104
  */
105
105
  min-inline-size: 0;
106
- position: relative;
107
106
  /**
108
107
  * `render` can make the root an `<a>`, and the rule a browser writes on
109
108
  * every anchor would put a line under a status at rest. The linked root
110
109
  * below draws its own underline, hidden until the pointer arrives.
111
110
  */
112
111
  text-decoration: none;
113
- /* Written inside a sentence, the indicator sits on the text's centre. */
114
- vertical-align: middle;
112
+ /* The mark and the label never part; the label wraps inside its own box. */
113
+ white-space: nowrap;
114
+ }
115
+
116
+ /* Written inside a sentence, the indicator sits on the sentence's baseline. */
117
+ [data-ui-status-indicator][data-part-root]:not(td, th, li, div, p) {
118
+ display: inline-block;
119
+ max-inline-size: 100%;
120
+ vertical-align: baseline;
115
121
  }
116
122
 
117
123
  /* ── Status: the tone each state speaks in ────────────────────────────
@@ -119,20 +125,20 @@
119
125
  * Six values, and the map is `specs/components/status-indicator/contract.json`
120
126
  * rather than a decision taken here: the stylesheet, both bindings and the
121
127
  * contract test all read the same table. The glyph each status draws is in
122
- * the same contract, and the bindings render it; the sheet only colours it.
128
+ * the same contract, and the bindings render it; the sheet only colors it.
123
129
  *
124
130
  * `neutral` and `unknown` share `secondary` on purpose, so the difference
125
131
  * between “nothing is happening” and “nobody knows” is never carried by
126
- * colour. The filled disc and the dashed ring say it in `high-contrast` and
127
- * in greyscale as well as in `light`.
132
+ * color. The filled disc and the dashed ring say it in `high-contrast` and
133
+ * in grayscale as well as in `light`.
128
134
  */
129
135
 
130
- [data-ui='status-indicator'][data-part='root'][data-status='neutral'] {
136
+ [data-ui-status-indicator][data-part-root][data-status='neutral'] {
131
137
  /**
132
138
  * The one neutral the theme calibrates against the surface rather than
133
139
  * against a control, and the only fill that makes this dot read as filled.
134
140
  *
135
- * `--slotted-tone-secondary-solid` is the surface's own colour in all
141
+ * `--slotted-tone-secondary-solid` is the surface's own color in all
136
142
  * three schemes, and its `solid-hover` step — which `badge` reaches for on
137
143
  * a chip the size of a word — is one shade off it. Read at 420 pixels on a
138
144
  * nine-pixel disc, that was a rim around nothing: `neutral` and `unknown`
@@ -145,12 +151,12 @@
145
151
  --_text: var(--slotted-tone-secondary-text);
146
152
  }
147
153
 
148
- [data-ui='status-indicator'][data-part='root'][data-status='info'] {
154
+ [data-ui-status-indicator][data-part-root][data-status='info'] {
149
155
  --_solid: var(--slotted-tone-accent-solid);
150
156
  --_text: var(--slotted-tone-accent-text);
151
157
  }
152
158
 
153
- [data-ui='status-indicator'][data-part='root'][data-status='success'] {
159
+ [data-ui-status-indicator][data-part-root][data-status='success'] {
154
160
  --_solid: var(--slotted-tone-success-solid);
155
161
  --_text: var(--slotted-tone-success-text);
156
162
  }
@@ -159,15 +165,15 @@
159
165
  * The one fill that cannot hold its edge: `#facc15` is 1.53:1 on the light
160
166
  * surface. The tone's border role is the same hue a step darker, 2.94:1 in
161
167
  * light, the fill itself in dark and black in `high-contrast` — an edge that
162
- * reads as the dot's own rim rather than as a second colour around it.
168
+ * reads as the dot's own rim rather than as a second color around it.
163
169
  */
164
- [data-ui='status-indicator'][data-part='root'][data-status='warning'] {
170
+ [data-ui-status-indicator][data-part-root][data-status='warning'] {
165
171
  --_edge: var(--slotted-tone-warning-border);
166
172
  --_solid: var(--slotted-tone-warning-solid);
167
173
  --_text: var(--slotted-tone-warning-text);
168
174
  }
169
175
 
170
- [data-ui='status-indicator'][data-part='root'][data-status='danger'] {
176
+ [data-ui-status-indicator][data-part-root][data-status='danger'] {
171
177
  --_solid: var(--slotted-tone-danger-solid);
172
178
  --_text: var(--slotted-tone-danger-text);
173
179
  }
@@ -178,7 +184,7 @@
178
184
  * has no halo of its own; the ring is drawn where the halo of a lit dot
179
185
  * ends, below.
180
186
  */
181
- [data-ui='status-indicator'][data-part='root'][data-status='unknown'] {
187
+ [data-ui-status-indicator][data-part-root][data-status='unknown'] {
182
188
  --_edge: var(--slotted-border-strong);
183
189
  --_halo: transparent;
184
190
  --_solid: transparent;
@@ -192,42 +198,49 @@
192
198
  * the mark left the ring the size of a dot around a sixteen-pixel glyph, and
193
199
  * one and three quarter pixels above where it belonged.
194
200
  */
195
- [data-ui='status-indicator'][data-part='root'][data-mark='icon'] {
201
+ [data-ui-status-indicator][data-part-root][data-mark='icon'] {
196
202
  --_mark-size: var(--_glyph-size);
197
203
  }
198
204
 
199
205
  /* ── Size ─────────────────────────────────────────────────────────────── */
200
206
 
201
- [data-ui='status-indicator'][data-part='root'][data-size='sm'] {
207
+ [data-ui-status-indicator][data-part-root][data-size='sm'] {
202
208
  --_dot-size: var(--slotted-space-3, 0.375rem);
203
209
  --_font-size: var(--slotted-control-font-size-sm, 12px);
204
- --_glyph-size: var(--slotted-control-icon-size-sm, 14px);
205
210
  --_gap: var(--slotted-space-3, 0.375rem);
206
211
  --_halo-width: var(--slotted-space-1, 0.125rem);
207
212
  }
208
213
 
209
- [data-ui='status-indicator'][data-part='root'][data-size='lg'] {
214
+ [data-ui-status-indicator][data-part-root][data-size='lg'] {
210
215
  --_font-size: var(--slotted-control-font-size-lg, 14px);
211
- --_glyph-size: var(--slotted-control-icon-size-lg, 18px);
212
216
  }
213
217
 
214
218
  /* ── The mark ─────────────────────────────────────────────────────────
215
219
  *
216
- * One box, painted two ways. `1lh` is what puts it on the first line: the
217
- * unit resolves against the indicator's own line box, so the mark stays
218
- * centred on the words at every type size and every density without a
219
- * number saying how. It is the rule `skeleton` uses to sit an inline bar on
220
- * a line of type, applied to a box rather than to a baseline.
220
+ * One box, painted two ways, inside the first line. Its center is the
221
+ * center of the capitals, `0.5cap` above the baseline — the axis
222
+ * `[data-ui-icon]` aligns every icon on — rounded to the device pixel: half
223
+ * a pixel at 2×, a whole one below 1.5×. Layout containment makes the box's
224
+ * own bottom edge its baseline, whatever it holds.
221
225
  */
222
- [data-ui='status-indicator'] [data-part='mark'] {
226
+ [data-ui-status-indicator] [data-part-mark] {
223
227
  block-size: var(--_mark-size);
224
228
  box-sizing: border-box;
225
- flex: none;
229
+ contain: layout;
230
+ display: inline-flex;
226
231
  inline-size: var(--_mark-size);
227
- margin-block-start: var(--_pulse-inset);
232
+ margin-inline-end: var(--_gap);
233
+ position: relative;
234
+ vertical-align: round(nearest, calc(0.5cap - var(--_mark-size) / 2), 0.5px);
235
+ }
236
+
237
+ @media (max-resolution: 1.49dppx) {
238
+ [data-ui-status-indicator] [data-part-mark] {
239
+ vertical-align: round(nearest, calc(0.5cap - var(--_mark-size) / 2), 1px);
240
+ }
228
241
  }
229
242
 
230
- [data-ui='status-indicator'][data-mark='dot'] [data-part='mark'] {
243
+ [data-ui-status-indicator][data-mark='dot'] [data-part-mark] {
231
244
  background-color: var(--_solid, ButtonFace);
232
245
  border: var(--_rim-width) solid var(--_rim, CanvasText);
233
246
  border-radius: var(--slotted-radius-full, 9999px);
@@ -239,9 +252,8 @@
239
252
  * to `neutral` and `unknown` sharing a tone, and it is the only mark in the
240
253
  * family that says something by what it is missing.
241
254
  */
242
- [data-ui='status-indicator'][data-mark='dot'][data-status='unknown'] [data-part='mark'] {
255
+ [data-ui-status-indicator][data-mark='dot'][data-status='unknown'] [data-part-mark] {
243
256
  border: 0;
244
- position: relative;
245
257
  }
246
258
 
247
259
  /**
@@ -253,7 +265,7 @@
253
265
  * neighbours, and read as a speck rather than as a status. `outline` is
254
266
  * reserved for the focus ring (`focus-ring.test.mjs`).
255
267
  */
256
- [data-ui='status-indicator'][data-mark='dot'][data-status='unknown'] [data-part='mark']::before {
268
+ [data-ui-status-indicator][data-mark='dot'][data-status='unknown'] [data-part-mark]::before {
257
269
  border: var(--slotted-border-width-thick, 2px) dashed var(--_rim);
258
270
  border-radius: var(--slotted-radius-full, 9999px);
259
271
  box-sizing: border-box;
@@ -274,25 +286,26 @@
274
286
  * the disc is left to the mark that is a disc.
275
287
  *
276
288
  * The mark is the icon box's container: it hands the box its own size
277
- * through `--slotted-icon-size` and its colour through `color`, and the
278
- * binding puts the status's glyph inside. `flex` rather than a line box, so
279
- * no strut of the root's line-height pushes the glyph off the box.
289
+ * through `--slotted-icon-size` and its color through `color`, and the
290
+ * binding puts the status's glyph inside, drawn on the grid of that size.
280
291
  */
281
- [data-ui='status-indicator'][data-mark='icon'] [data-part='mark'] {
292
+ [data-ui-status-indicator][data-mark='icon'] [data-part-mark] {
282
293
  --slotted-icon-size: var(--_mark-size);
283
294
 
284
295
  color: var(--_text, CanvasText);
285
- display: flex;
286
296
  }
287
297
 
288
298
  /* ── The words ────────────────────────────────────────────────────────
289
299
  *
290
- * `min-inline-size: 0` is what lets the label shrink below its content
291
- * inside the flex root, and `overflow-wrap` is what breaks the one string a
292
- * status is likeliest to hold that no language can break — a deployment id,
293
- * a container digest, a hostname without a hyphen. Nothing is ever removed:
294
- * the whole string stays in the DOM, in the accessibility tree and findable
295
- * by a page search.
300
+ * An `inline-block` on the first line, as wide as the root less the mark:
301
+ * the words wrap inside it, so the lines after the first hang under the
302
+ * first word. `baseline-source: first` is what a table row reads — a label
303
+ * with a detail under it aligns the row on its first line, not its last.
304
+ *
305
+ * `overflow-wrap` breaks the one string a status is likeliest to hold that
306
+ * no language can break — a deployment id, a container digest, a hostname
307
+ * without a hyphen. Nothing is ever removed: the whole string stays in the
308
+ * DOM, in the accessibility tree and findable by a page search.
296
309
  *
297
310
  * `break-word` rather than `anywhere`, and the difference is the one this
298
311
  * family was caught by. Both break the token; only `anywhere` also reports a
@@ -302,21 +315,35 @@
302
315
  * first column was auto-sized. `break-word` keeps the longest word as the
303
316
  * minimum and breaks only what still does not fit.
304
317
  */
305
- [data-ui='status-indicator'] [data-part='label'] {
306
- margin-inline-start: var(--_gap);
307
- min-inline-size: 0;
318
+ [data-ui-status-indicator] [data-part-label] {
319
+ baseline-source: first;
320
+ display: inline-block;
321
+ max-inline-size: calc(100% - var(--_mark-size) - var(--_gap));
308
322
  overflow-wrap: break-word;
323
+ /* No `vertical-align`: the shorthand resets `baseline-source` to `auto`,
324
+ the last line, and the root then aligned on the detail. */
325
+ white-space: normal;
326
+ }
327
+
328
+ /**
329
+ * A second, quieter line under the words — “62% · build”, “4 minutes ago” —
330
+ * in the label's own column, so it hangs under the first word as well.
331
+ */
332
+ [data-ui-status-indicator] [data-part-detail] {
333
+ color: var(--slotted-text-muted, GrayText);
334
+ display: block;
309
335
  }
310
336
 
311
337
  /**
312
338
  * The gap taken back when the label holds nothing a reader can see. A mark
313
339
  * with no visible words still carries its own word, clipped by
314
340
  * `visually-hidden`, and that word is out of flow — so the label box is
315
- * empty, and a gap in front of an empty box puts a bare dot off the centre
316
- * of the cell it was meant to sit in.
341
+ * empty, and a gap after the mark puts a bare dot off the center of the
342
+ * cell it was meant to sit in.
317
343
  */
318
- [data-ui='status-indicator'] [data-part='label']:has(> [data-part='announcement']) {
319
- margin-inline-start: 0;
344
+ [data-ui-status-indicator]:has(> [data-part-label] > [data-part-announcement]:only-child)
345
+ > [data-part-mark] {
346
+ margin-inline-end: 0;
320
347
  }
321
348
 
322
349
  /* ── Focus ────────────────────────────────────────────────────────────
@@ -326,7 +353,7 @@
326
353
  * root an `<a>` or a `<button>`, and a ring that appears only where a family
327
354
  * expects focus is a ring that goes missing.
328
355
  */
329
- [data-ui='status-indicator'][data-part='root']:focus-visible {
356
+ [data-ui-status-indicator][data-part-root]:focus-visible {
330
357
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
331
358
  outline-offset: var(--slotted-focus-ring-offset, 2px);
332
359
  }
@@ -340,7 +367,7 @@
340
367
  * text role, a step hover does not take. The offset is `link`'s own 0.15em
341
368
  * (dossier § 4).
342
369
  */
343
- [data-ui='status-indicator'][data-part='root']:any-link {
370
+ [data-ui-status-indicator][data-part-root]:any-link {
344
371
  text-decoration-color: transparent;
345
372
  text-decoration-line: underline;
346
373
  text-decoration-thickness: from-font;
@@ -350,11 +377,11 @@
350
377
  text-decoration-color var(--slotted-duration-short) var(--slotted-easing-standard);
351
378
  }
352
379
 
353
- [data-ui='status-indicator'][data-part='root']:any-link:not([data-disabled]):hover {
380
+ [data-ui-status-indicator][data-part-root]:any-link:not([data-disabled]):hover {
354
381
  text-decoration-color: currentColor;
355
382
  }
356
383
 
357
- [data-ui='status-indicator'][data-part='root']:any-link:not([data-disabled]):active {
384
+ [data-ui-status-indicator][data-part-root]:any-link:not([data-disabled]):active {
358
385
  color: var(--slotted-text-muted, GrayText);
359
386
  text-decoration-color: currentColor;
360
387
  }
@@ -394,28 +421,25 @@
394
421
  }
395
422
 
396
423
  /**
397
- * The wave is the dot's rim colour, defined for all six statuses —
424
+ * The wave is the dot's rim color, defined for all six statuses —
398
425
  * `unknown` has no fill, and its wave is the neutral edge. It starts at
399
- * 0.45 of that colour and ends at three times the dot, 24 pixels at `md`,
426
+ * 0.45 of that color and ends at three times the dot, 24 pixels at `md`,
400
427
  * inside the line above and below without reaching the next status in a
401
428
  * list (dossier § 5). The root isolates a
402
429
  * stacking context so the wave can sit under the mark (`z-index: -1`)
403
430
  * without falling behind the surface the indicator is drawn on.
404
431
  */
405
- [data-ui='status-indicator'][data-pulse] {
432
+ [data-ui-status-indicator][data-pulse] {
406
433
  isolation: isolate;
407
434
  }
408
435
 
409
- [data-ui='status-indicator'][data-pulse]::after {
436
+ [data-ui-status-indicator][data-pulse] [data-part-mark]::after {
410
437
  animation: slotted-status-indicator-pulse var(--slotted-duration-loop-slow)
411
438
  var(--slotted-easing-enter) infinite;
412
439
  background-color: var(--_rim);
413
- block-size: var(--_mark-size);
414
440
  border-radius: var(--slotted-radius-full, 9999px);
415
441
  content: '';
416
- inline-size: var(--_mark-size);
417
- inset-block-start: var(--_pulse-inset);
418
- inset-inline-start: 0;
442
+ inset: 0;
419
443
  pointer-events: none;
420
444
  position: absolute;
421
445
  z-index: -1;
@@ -429,7 +453,7 @@
429
453
  * carried by the tone, the glyph and the word, as it is under reduced
430
454
  * motion.
431
455
  */
432
- [data-ui='status-indicator'][data-mark='icon'][data-pulse]::after {
456
+ [data-ui-status-indicator][data-mark='icon'][data-pulse] [data-part-mark]::after {
433
457
  content: none;
434
458
  }
435
459
 
@@ -440,16 +464,16 @@
440
464
  * and the status is left to the parts that were always carrying it.
441
465
  */
442
466
  @media (prefers-reduced-motion: reduce) {
443
- [data-ui='status-indicator'][data-pulse]::after {
467
+ [data-ui-status-indicator][data-pulse] [data-part-mark]::after {
444
468
  animation: none;
445
469
  content: none;
446
470
  }
447
471
  }
448
472
 
449
473
  /**
450
- * ── Forced colours ─────────────────────────────────────────────────────
474
+ * ── Forced colors ─────────────────────────────────────────────────────
451
475
  *
452
- * The operating system replaces every author colour here, so the tone is
476
+ * The operating system replaces every author color here, so the tone is
453
477
  * gone whatever the family writes: the six statuses become one mark. What is
454
478
  * left to decide is whether that mark is visible, and a dot painted from a
455
479
  * forced `Canvas` background is not — the defect `link` found on its own
@@ -460,21 +484,21 @@
460
484
  * would bury it. It keeps its silhouette, which is the whole reason the icon
461
485
  * mark exists: a triangle and a circled cross are still different from each
462
486
  * other when neither of them is red. The pulse is withdrawn, because its wave
463
- * is painted from a tone the system replaces with a face colour, and a wave
487
+ * is painted from a tone the system replaces with a face color, and a wave
464
488
  * in `ButtonFace` on `Canvas` is an animation of nothing. The halo needs no
465
489
  * rule: the system sets `box-shadow` to `none`.
466
490
  */
467
491
  @media (forced-colors: active) {
468
- [data-ui='status-indicator'][data-mark='dot'] [data-part='mark'] {
492
+ [data-ui-status-indicator][data-mark='dot'] [data-part-mark] {
469
493
  background-color: CanvasText;
470
494
  border-color: CanvasText;
471
495
  }
472
496
 
473
- [data-ui='status-indicator'][data-mark='dot'][data-status='unknown'] [data-part='mark'] {
497
+ [data-ui-status-indicator][data-mark='dot'][data-status='unknown'] [data-part-mark] {
474
498
  background-color: Canvas;
475
499
  }
476
500
 
477
- [data-ui='status-indicator'][data-pulse]::after {
501
+ [data-ui-status-indicator][data-pulse] [data-part-mark]::after {
478
502
  content: none;
479
503
  }
480
504
  }
@@ -6,9 +6,6 @@
6
6
  "--slotted-control-font-size-lg",
7
7
  "--slotted-control-font-size-md",
8
8
  "--slotted-control-font-size-sm",
9
- "--slotted-control-icon-size-lg",
10
- "--slotted-control-icon-size-md",
11
- "--slotted-control-icon-size-sm",
12
9
  "--slotted-duration-loop-slow",
13
10
  "--slotted-duration-short",
14
11
  "--slotted-easing-enter",