@slotted/styles 0.1.0-beta.12 → 0.1.0-beta.14

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 (33) hide show
  1. package/package.json +1 -1
  2. package/src/action-bar/action-bar.css +10 -0
  3. package/src/action-bar/action-bar.tokens.json +1 -0
  4. package/src/alert/alert.css +11 -13
  5. package/src/chart/chart.css +13 -9
  6. package/src/combobox/combobox.css +34 -16
  7. package/src/combobox/combobox.tokens.json +1 -0
  8. package/src/date-picker/date-picker.css +34 -16
  9. package/src/date-picker/date-picker.tokens.json +1 -0
  10. package/src/drawer/drawer.css +10 -0
  11. package/src/drawer/drawer.tokens.json +1 -0
  12. package/src/entity-picker/entity-picker.css +34 -16
  13. package/src/entity-picker/entity-picker.tokens.json +1 -0
  14. package/src/icon/icon.css +43 -0
  15. package/src/inline-message/inline-message.css +105 -53
  16. package/src/kbd/kbd.css +18 -10
  17. package/src/kbd/kbd.tokens.json +3 -0
  18. package/src/menu/menu.css +34 -11
  19. package/src/menu/menu.tokens.json +1 -0
  20. package/src/multi-select/multi-select.css +24 -16
  21. package/src/popover/popover.css +34 -13
  22. package/src/popover/popover.tokens.json +1 -0
  23. package/src/section/section.css +14 -2
  24. package/src/section/section.tokens.json +1 -0
  25. package/src/select/select.css +34 -16
  26. package/src/select/select.tokens.json +1 -0
  27. package/src/status-indicator/status-indicator.css +84 -59
  28. package/src/status-indicator/status-indicator.tokens.json +0 -3
  29. package/src/table-of-contents/table-of-contents.css +6 -2
  30. package/src/table-of-contents/table-of-contents.tokens.json +1 -0
  31. package/src/toast/toast.css +7 -8
  32. package/src/tooltip/tooltip.css +34 -13
  33. package/src/tooltip/tooltip.tokens.json +1 -0
@@ -84,7 +84,6 @@
84
84
  /* The layer is only a frame around the panel; the panel takes the pointer. */
85
85
  pointer-events: none;
86
86
 
87
- opacity: 0;
88
87
  /**
89
88
  * R7: the layer arrives along the axis it opens on — from one space step
90
89
  * above its place when it opens downward, from one step below when it
@@ -94,9 +93,7 @@
94
93
  */
95
94
  --_enter-distance: var(--slotted-space-2, 0.25rem);
96
95
  translate: 0 calc(-1 * var(--_enter-distance));
97
- transition:
98
- opacity var(--slotted-duration-short) var(--slotted-easing-exit),
99
- translate var(--slotted-duration-short) var(--slotted-easing-exit);
96
+ transition: translate var(--slotted-duration-short) var(--slotted-easing-exit);
100
97
  }
101
98
 
102
99
  [data-ui-popover][data-side='top'] {
@@ -118,7 +115,6 @@
118
115
  * leaves from wherever the layer is, on the closed rule's durations.
119
116
  */
120
117
  [data-ui-popover][data-open] {
121
- opacity: 1;
122
118
  translate: 0 0;
123
119
  transition: none;
124
120
  }
@@ -136,20 +132,14 @@
136
132
  animation-name: slotted-popover-enter-up;
137
133
  }
138
134
 
139
- [data-ui-popover][data-open][data-positioned]:is([data-side='left'], [data-side='right']) {
140
- animation-name: slotted-popover-fade;
141
- }
142
-
143
135
  @keyframes slotted-popover-enter-down {
144
136
  from {
145
- opacity: 0;
146
137
  translate: 0 calc(-1 * var(--_enter-distance));
147
138
  }
148
139
  }
149
140
 
150
141
  @keyframes slotted-popover-enter-up {
151
142
  from {
152
- opacity: 0;
153
143
  translate: 0 var(--_enter-distance);
154
144
  }
155
145
  }
@@ -167,14 +157,14 @@
167
157
  [data-ui-popover][data-side='left'],
168
158
  [data-ui-popover][data-side='right'] {
169
159
  translate: 0 0;
170
- transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
160
+ transition: translate var(--slotted-duration-short) var(--slotted-easing-exit);
171
161
  }
172
162
 
173
163
  [data-ui-popover][data-open][data-positioned],
174
164
  [data-ui-popover][data-open][data-positioned][data-side='top'],
175
165
  [data-ui-popover][data-open][data-positioned][data-side='left'],
176
166
  [data-ui-popover][data-open][data-positioned][data-side='right'] {
177
- animation-name: slotted-popover-fade;
167
+ animation-name: none;
178
168
  }
179
169
  }
180
170
 
@@ -259,6 +249,37 @@
259
249
  pointer-events: auto;
260
250
  /* The panel takes focus on open and is not a tab stop of its own. */
261
251
  outline: none;
252
+ /* A theme that paints this surface as a translucent material blurs what moves behind it. */
253
+ -webkit-backdrop-filter: var(--slotted-popover-backdrop-filter, none);
254
+ backdrop-filter: var(--slotted-popover-backdrop-filter, none);
255
+ }
256
+
257
+ /**
258
+ * The fade belongs to the part that paints the surface, and the layer only
259
+ * moves. In Chromium an ancestor with `opacity` below one is the Backdrop Root
260
+ * of what it holds, so a `backdrop-filter` on the content blurs nothing until
261
+ * the layer is opaque and then appears at once. The content's own opacity
262
+ * leaves its own filter drawn on every frame of the motion.
263
+ */
264
+ [data-ui-popover] > [data-part-content] {
265
+ opacity: 0;
266
+ transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
267
+ }
268
+
269
+ [data-ui-popover][data-open] > [data-part-content] {
270
+ opacity: 1;
271
+ transition: none;
272
+ }
273
+
274
+ [data-ui-popover][data-open][data-positioned] > [data-part-content] {
275
+ animation: slotted-popover-fade var(--slotted-duration-medium) var(--slotted-easing-enter);
276
+ }
277
+
278
+ @media (prefers-reduced-transparency: reduce), (forced-colors: active) {
279
+ [data-ui-popover] > [data-part-content] {
280
+ -webkit-backdrop-filter: none;
281
+ backdrop-filter: none;
282
+ }
262
283
  }
263
284
 
264
285
  /**
@@ -26,6 +26,7 @@
26
26
  "--slotted-line-height-sm",
27
27
  "--slotted-popover-arrow-size",
28
28
  "--slotted-popover-arrow-tip-radius",
29
+ "--slotted-popover-backdrop-filter",
29
30
  "--slotted-popover-border-color",
30
31
  "--slotted-popover-gap",
31
32
  "--slotted-popover-measure",
@@ -130,13 +130,25 @@
130
130
  padding-block-end: var(--slotted-space-4, 0.5rem);
131
131
  }
132
132
 
133
+ /**
134
+ * On a surface the rule runs from edge to edge of the surface, not of its
135
+ * padding: the header takes the inset back as margin and keeps it as
136
+ * padding, so its contents stay where they were.
137
+ */
138
+ [data-ui-section][data-ground='surface'][data-divider] > [data-part-header] {
139
+ margin-inline: calc(-1 * var(--slotted-section-inset, var(--slotted-space-6, 1rem)));
140
+ padding-inline: var(--slotted-section-inset, var(--slotted-space-6, 1rem));
141
+ }
142
+
133
143
  /**
134
144
  * Under the page chrome, and painted, so what scrolls under it is covered.
135
- * The inset a surface section gives its header is kept by sticking the
145
+ * The header writes `data-stuck` while content passes under it, so a theme
146
+ * whose page ground is translucent can fill it only then, through
147
+ * `--slotted-section-header-background`. The inset a surface section gives its header is kept by sticking the
136
148
  * header at the same distance the surface's padding put it at.
137
149
  */
138
150
  [data-ui-section][data-sticky] > [data-part-header] {
139
- background-color: var(--_ground);
151
+ background-color: var(--slotted-section-header-background, var(--_ground));
140
152
  inset-block-start: var(--slotted-page-sticky-top, 0px);
141
153
  /* Stuck, the header's text and buttons met the chrome's edge with no
142
154
  air. The padding gives it, and the negative margin takes the same
@@ -18,6 +18,7 @@
18
18
  "--slotted-section-border",
19
19
  "--slotted-section-description-measure",
20
20
  "--slotted-section-gap",
21
+ "--slotted-section-header-background",
21
22
  "--slotted-section-heading-size-lg",
22
23
  "--slotted-section-heading-size-md",
23
24
  "--slotted-section-heading-size-sm",
@@ -834,7 +834,6 @@
834
834
  pointer, and the frame must not swallow a press meant for the page. */
835
835
  pointer-events: none;
836
836
 
837
- opacity: 0;
838
837
  /**
839
838
  * R7: the layer arrives along the axis it opens on — from one space step
840
839
  * above its place when it opens downward, from one step below when it
@@ -844,9 +843,7 @@
844
843
  */
845
844
  --_enter-distance: var(--slotted-space-2, 0.25rem);
846
845
  translate: 0 calc(-1 * var(--_enter-distance));
847
- transition:
848
- opacity var(--slotted-duration-short) var(--slotted-easing-exit),
849
- translate var(--slotted-duration-short) var(--slotted-easing-exit);
846
+ transition: translate var(--slotted-duration-short) var(--slotted-easing-exit);
850
847
  }
851
848
 
852
849
  [data-ui-select][data-part-positioner][data-side='top'] {
@@ -868,7 +865,6 @@
868
865
  * leaves from wherever the layer is, on the closed rule's durations.
869
866
  */
870
867
  [data-ui-select][data-part-positioner][data-open] {
871
- opacity: 1;
872
868
  translate: 0 0;
873
869
  transition: none;
874
870
  }
@@ -886,23 +882,14 @@
886
882
  animation-name: slotted-select-enter-up;
887
883
  }
888
884
 
889
- [data-ui-select][data-part-positioner][data-open][data-positioned]:is(
890
- [data-side='left'],
891
- [data-side='right']
892
- ) {
893
- animation-name: slotted-select-fade;
894
- }
895
-
896
885
  @keyframes slotted-select-enter-down {
897
886
  from {
898
- opacity: 0;
899
887
  translate: 0 calc(-1 * var(--_enter-distance));
900
888
  }
901
889
  }
902
890
 
903
891
  @keyframes slotted-select-enter-up {
904
892
  from {
905
- opacity: 0;
906
893
  translate: 0 var(--_enter-distance);
907
894
  }
908
895
  }
@@ -913,6 +900,27 @@
913
900
  }
914
901
  }
915
902
 
903
+ /**
904
+ * The fade belongs to the part that paints the surface, and the layer only
905
+ * moves. In Chromium an ancestor with `opacity` below one is the Backdrop Root
906
+ * of what it holds, so a `backdrop-filter` on the content blurs nothing until
907
+ * the layer is opaque and then appears at once. The content's own opacity
908
+ * leaves its own filter drawn on every frame of the motion.
909
+ */
910
+ [data-ui-select][data-part-positioner] > [data-part-content] {
911
+ opacity: 0;
912
+ transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
913
+ }
914
+
915
+ [data-ui-select][data-part-positioner][data-open] > [data-part-content] {
916
+ opacity: 1;
917
+ transition: none;
918
+ }
919
+
920
+ [data-ui-select][data-part-positioner][data-open][data-positioned] > [data-part-content] {
921
+ animation: slotted-select-fade var(--slotted-duration-medium) var(--slotted-easing-enter);
922
+ }
923
+
916
924
  /* Stillness keeps the fade and drops the movement (R7). */
917
925
  @media (prefers-reduced-motion: reduce) {
918
926
  [data-ui-select][data-part-positioner],
@@ -920,14 +928,14 @@
920
928
  [data-ui-select][data-part-positioner][data-side='left'],
921
929
  [data-ui-select][data-part-positioner][data-side='right'] {
922
930
  translate: 0 0;
923
- transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
931
+ transition: translate var(--slotted-duration-short) var(--slotted-easing-exit);
924
932
  }
925
933
 
926
934
  [data-ui-select][data-part-positioner][data-open][data-positioned],
927
935
  [data-ui-select][data-part-positioner][data-open][data-positioned][data-side='top'],
928
936
  [data-ui-select][data-part-positioner][data-open][data-positioned][data-side='left'],
929
937
  [data-ui-select][data-part-positioner][data-open][data-positioned][data-side='right'] {
930
- animation-name: slotted-select-fade;
938
+ animation-name: none;
931
939
  }
932
940
  }
933
941
 
@@ -996,6 +1004,16 @@
996
1004
  );
997
1005
  outline: none;
998
1006
  pointer-events: auto;
1007
+ /* A theme that paints this surface as a translucent material blurs what moves behind it. */
1008
+ -webkit-backdrop-filter: var(--slotted-select-content-backdrop-filter, none);
1009
+ backdrop-filter: var(--slotted-select-content-backdrop-filter, none);
1010
+ }
1011
+
1012
+ @media (prefers-reduced-transparency: reduce), (forced-colors: active) {
1013
+ [data-ui-select] > [data-part-content] {
1014
+ -webkit-backdrop-filter: none;
1015
+ backdrop-filter: none;
1016
+ }
999
1017
  }
1000
1018
 
1001
1019
  /**
@@ -58,6 +58,7 @@
58
58
  "--slotted-select-background",
59
59
  "--slotted-select-border-color",
60
60
  "--slotted-select-color",
61
+ "--slotted-select-content-backdrop-filter",
61
62
  "--slotted-select-content-border-color",
62
63
  "--slotted-select-content-padding-block",
63
64
  "--slotted-select-content-padding-inline",
@@ -8,12 +8,19 @@
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, centred 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.
20
+ *
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.
17
24
  *
18
25
  * The words take the page's own colour. The tone is on the mark, which is
19
26
  * what keeps a column of statuses in a table as readable as the column
@@ -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
@@ -69,31 +80,21 @@
69
80
  --_halo: color-mix(in oklab, var(--_rim) 20%, transparent);
70
81
  --_halo-width: calc(var(--slotted-space-1, 0.125rem) * 1.5);
71
82
 
72
- /**
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
83
  /**
85
84
  * The words keep the page's colour when `render` makes the root an `<a>`;
86
85
  * without this the user agent paints the label in its link blue.
87
86
  */
88
87
  color: inherit;
89
- display: inline-flex;
90
88
  font-family: var(
91
89
  --slotted-status-indicator-font-family,
92
90
  var(--slotted-control-font-family, sans-serif)
93
91
  );
94
92
  font-size: var(--_font-size);
95
- line-height: var(--_line-height);
96
- max-inline-size: 100%;
93
+ /**
94
+ * The leading, rounded up to an even pixel: 13 × 1.5 is 19.5 and lands the
95
+ * line, and the mark centred on it, across two device pixels.
96
+ */
97
+ line-height: round(up, 1em * var(--slotted-line-height-md, 1.5), 2px);
97
98
  /**
98
99
  * The indicator never widens the box that holds it. Its own minimum is the
99
100
  * longest word of a label it did not choose, and a grid or flex parent
@@ -103,15 +104,21 @@
103
104
  * label breaks the token at whatever width it is given.
104
105
  */
105
106
  min-inline-size: 0;
106
- position: relative;
107
107
  /**
108
108
  * `render` can make the root an `<a>`, and the rule a browser writes on
109
109
  * every anchor would put a line under a status at rest. The linked root
110
110
  * below draws its own underline, hidden until the pointer arrives.
111
111
  */
112
112
  text-decoration: none;
113
- /* Written inside a sentence, the indicator sits on the text's centre. */
114
- vertical-align: middle;
113
+ /* The mark and the label never part; the label wraps inside its own box. */
114
+ white-space: nowrap;
115
+ }
116
+
117
+ /* Written inside a sentence, the indicator sits on the sentence's baseline. */
118
+ [data-ui-status-indicator][data-part-root]:not(td, th, li, div, p) {
119
+ display: inline-block;
120
+ max-inline-size: 100%;
121
+ vertical-align: baseline;
115
122
  }
116
123
 
117
124
  /* ── Status: the tone each state speaks in ────────────────────────────
@@ -201,30 +208,37 @@
201
208
  [data-ui-status-indicator][data-part-root][data-size='sm'] {
202
209
  --_dot-size: var(--slotted-space-3, 0.375rem);
203
210
  --_font-size: var(--slotted-control-font-size-sm, 12px);
204
- --_glyph-size: var(--slotted-control-icon-size-sm, 14px);
205
211
  --_gap: var(--slotted-space-3, 0.375rem);
206
212
  --_halo-width: var(--slotted-space-1, 0.125rem);
207
213
  }
208
214
 
209
215
  [data-ui-status-indicator][data-part-root][data-size='lg'] {
210
216
  --_font-size: var(--slotted-control-font-size-lg, 14px);
211
- --_glyph-size: var(--slotted-control-icon-size-lg, 18px);
212
217
  }
213
218
 
214
219
  /* ── The mark ─────────────────────────────────────────────────────────
215
220
  *
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.
221
+ * One box, painted two ways, inside the first line. Its centre is the
222
+ * centre of the capitals, `0.5cap` above the baseline — the axis
223
+ * `[data-ui-icon]` aligns every icon on — rounded to the device pixel: half
224
+ * a pixel at 2×, a whole one below 1.5×. Layout containment makes the box's
225
+ * own bottom edge its baseline, whatever it holds.
221
226
  */
222
227
  [data-ui-status-indicator] [data-part-mark] {
223
228
  block-size: var(--_mark-size);
224
229
  box-sizing: border-box;
225
- flex: none;
230
+ contain: layout;
231
+ display: inline-flex;
226
232
  inline-size: var(--_mark-size);
227
- margin-block-start: var(--_pulse-inset);
233
+ margin-inline-end: var(--_gap);
234
+ position: relative;
235
+ vertical-align: round(nearest, calc(0.5cap - var(--_mark-size) / 2), 0.5px);
236
+ }
237
+
238
+ @media (max-resolution: 1.49dppx) {
239
+ [data-ui-status-indicator] [data-part-mark] {
240
+ vertical-align: round(nearest, calc(0.5cap - var(--_mark-size) / 2), 1px);
241
+ }
228
242
  }
229
243
 
230
244
  [data-ui-status-indicator][data-mark='dot'] [data-part-mark] {
@@ -241,7 +255,6 @@
241
255
  */
242
256
  [data-ui-status-indicator][data-mark='dot'][data-status='unknown'] [data-part-mark] {
243
257
  border: 0;
244
- position: relative;
245
258
  }
246
259
 
247
260
  /**
@@ -275,24 +288,25 @@
275
288
  *
276
289
  * The mark is the icon box's container: it hands the box its own size
277
290
  * 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.
291
+ * binding puts the status's glyph inside, drawn on the grid of that size.
280
292
  */
281
293
  [data-ui-status-indicator][data-mark='icon'] [data-part-mark] {
282
294
  --slotted-icon-size: var(--_mark-size);
283
295
 
284
296
  color: var(--_text, CanvasText);
285
- display: flex;
286
297
  }
287
298
 
288
299
  /* ── The words ────────────────────────────────────────────────────────
289
300
  *
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.
301
+ * An `inline-block` on the first line, as wide as the root less the mark:
302
+ * the words wrap inside it, so the lines after the first hang under the
303
+ * first word. `baseline-source: first` is what a table row reads — a label
304
+ * with a detail under it aligns the row on its first line, not its last.
305
+ *
306
+ * `overflow-wrap` breaks the one string a status is likeliest to hold that
307
+ * no language can break — a deployment id, a container digest, a hostname
308
+ * without a hyphen. Nothing is ever removed: the whole string stays in the
309
+ * DOM, in the accessibility tree and findable by a page search.
296
310
  *
297
311
  * `break-word` rather than `anywhere`, and the difference is the one this
298
312
  * family was caught by. Both break the token; only `anywhere` also reports a
@@ -303,20 +317,34 @@
303
317
  * minimum and breaks only what still does not fit.
304
318
  */
305
319
  [data-ui-status-indicator] [data-part-label] {
306
- margin-inline-start: var(--_gap);
307
- min-inline-size: 0;
320
+ baseline-source: first;
321
+ display: inline-block;
322
+ max-inline-size: calc(100% - var(--_mark-size) - var(--_gap));
308
323
  overflow-wrap: break-word;
324
+ /* No `vertical-align`: the shorthand resets `baseline-source` to `auto`,
325
+ the last line, and the root then aligned on the detail. */
326
+ white-space: normal;
327
+ }
328
+
329
+ /**
330
+ * A second, quieter line under the words — “62% · build”, “4 minutes ago” —
331
+ * in the label's own column, so it hangs under the first word as well.
332
+ */
333
+ [data-ui-status-indicator] [data-part-detail] {
334
+ color: var(--slotted-text-muted, GrayText);
335
+ display: block;
309
336
  }
310
337
 
311
338
  /**
312
339
  * The gap taken back when the label holds nothing a reader can see. A mark
313
340
  * with no visible words still carries its own word, clipped by
314
341
  * `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.
342
+ * empty, and a gap after the mark puts a bare dot off the centre of the
343
+ * cell it was meant to sit in.
317
344
  */
318
- [data-ui-status-indicator] [data-part-label]:has(> [data-part-announcement]) {
319
- margin-inline-start: 0;
345
+ [data-ui-status-indicator]:has(> [data-part-label] > [data-part-announcement]:only-child)
346
+ > [data-part-mark] {
347
+ margin-inline-end: 0;
320
348
  }
321
349
 
322
350
  /* ── Focus ────────────────────────────────────────────────────────────
@@ -406,16 +434,13 @@
406
434
  isolation: isolate;
407
435
  }
408
436
 
409
- [data-ui-status-indicator][data-pulse]::after {
437
+ [data-ui-status-indicator][data-pulse] [data-part-mark]::after {
410
438
  animation: slotted-status-indicator-pulse var(--slotted-duration-loop-slow)
411
439
  var(--slotted-easing-enter) infinite;
412
440
  background-color: var(--_rim);
413
- block-size: var(--_mark-size);
414
441
  border-radius: var(--slotted-radius-full, 9999px);
415
442
  content: '';
416
- inline-size: var(--_mark-size);
417
- inset-block-start: var(--_pulse-inset);
418
- inset-inline-start: 0;
443
+ inset: 0;
419
444
  pointer-events: none;
420
445
  position: absolute;
421
446
  z-index: -1;
@@ -429,7 +454,7 @@
429
454
  * carried by the tone, the glyph and the word, as it is under reduced
430
455
  * motion.
431
456
  */
432
- [data-ui-status-indicator][data-mark='icon'][data-pulse]::after {
457
+ [data-ui-status-indicator][data-mark='icon'][data-pulse] [data-part-mark]::after {
433
458
  content: none;
434
459
  }
435
460
 
@@ -440,7 +465,7 @@
440
465
  * and the status is left to the parts that were always carrying it.
441
466
  */
442
467
  @media (prefers-reduced-motion: reduce) {
443
- [data-ui-status-indicator][data-pulse]::after {
468
+ [data-ui-status-indicator][data-pulse] [data-part-mark]::after {
444
469
  animation: none;
445
470
  content: none;
446
471
  }
@@ -474,7 +499,7 @@
474
499
  background-color: Canvas;
475
500
  }
476
501
 
477
- [data-ui-status-indicator][data-pulse]::after {
502
+ [data-ui-status-indicator][data-pulse] [data-part-mark]::after {
478
503
  content: none;
479
504
  }
480
505
  }
@@ -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",
@@ -253,12 +253,16 @@
253
253
  * viewport; the panel scrolls, the label stays. `100dvh` because a phone's
254
254
  * toolbar comes and goes; the panel's own scrollbar is hidden, because a
255
255
  * column of a dozen links with a scrollbar beside it reads as a control.
256
+ * The column stops a step clear of the chrome, as the content beside it
257
+ * stands clear of the header, instead of touching it.
256
258
  */
257
259
  [data-ui-table-of-contents][data-sticky] {
260
+ --_sticky-inset: var(--slotted-table-of-contents-sticky-inset, var(--slotted-space-5, 0.75rem));
261
+
258
262
  display: flex;
259
263
  flex-direction: column;
260
- inset-block-start: var(--slotted-page-sticky-top, 0px);
261
- max-block-size: calc(100dvh - var(--slotted-page-sticky-top, 0px));
264
+ inset-block-start: calc(var(--slotted-page-sticky-top, 0px) + var(--_sticky-inset));
265
+ max-block-size: calc(100dvh - var(--slotted-page-sticky-top, 0px) - var(--_sticky-inset));
262
266
  position: sticky;
263
267
  }
264
268
 
@@ -43,6 +43,7 @@
43
43
  "--slotted-table-of-contents-color-hover",
44
44
  "--slotted-table-of-contents-indent",
45
45
  "--slotted-table-of-contents-marker-color",
46
+ "--slotted-table-of-contents-sticky-inset",
46
47
  "--slotted-table-of-contents-track-color",
47
48
  "--slotted-table-of-contents-track-width",
48
49
  "--slotted-text",
@@ -421,14 +421,13 @@
421
421
  /* ── The mark ─────────────────────────────────────────────────────────
422
422
  *
423
423
  * `alert`'s mark, rule for rule: a filled disc on the title's first line,
424
- * the binding's `Glyph` in its `solid` form, which fills the glyph's ring
425
- * and cuts the tone's symbol out of the fill, so the ground shows through
426
- * the symbol on every variant. Every tone's glyph is a circle, so every
427
- * mark is the same round silhouette on the same centre, and the symbol
428
- * inside is what tells the five apart when colour is gone.
424
+ * the binding's `Glyph` drawing a hand-drawn status mark, the silhouette
425
+ * filled and the tone's symbol cut out of it, so the ground shows through
426
+ * the symbol on every variant. Every silhouette — the circle, the warning's
427
+ * diamond — is symmetric on both axes, so every mark has the same centre,
428
+ * and the symbol inside is what tells the five apart when colour is gone.
429
429
  *
430
- * The glyph's filled ring reaches radius 11 of its 24-unit box, so the box
431
- * is 12/11 of the mark and the disc is the mark's own size.
430
+ * The silhouette fills its box edge to edge, so the box is the mark.
432
431
  *
433
432
  * The mark hangs from the first line's baseline. Grid baseline alignment
434
433
  * puts the mark's bottom edge on the words' baseline, and a relative offset
@@ -454,7 +453,7 @@
454
453
  * box stays, so the layout does not jump when the spinner becomes a tick.
455
454
  */
456
455
  [data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-icon] {
457
- --slotted-icon-size: calc(var(--_mark-size) * 12 / 11);
456
+ --slotted-icon-size: var(--_mark-size);
458
457
  /**
459
458
  * The loading mark is `progress-indicator`'s contained loader, and these
460
459
  * three are the whole of what this family says to it: the disc is the