@slotted/styles 0.1.0-beta.29 → 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.
- package/package.json +11 -1
- package/src/accordion/accordion.css +1 -1
- package/src/action-bar/action-bar.css +2 -2
- package/src/action-sheet/action-sheet.css +3 -3
- package/src/alert/alert.css +31 -32
- package/src/app-shell/app-shell.css +20 -20
- package/src/attachment/attachment.css +14 -14
- package/src/avatar/avatar.css +25 -25
- package/src/avatar-group/avatar-group.css +1 -1
- package/src/badge/badge.css +9 -9
- package/src/breadcrumb/breadcrumb.css +15 -15
- package/src/button/button.css +20 -20
- package/src/button-group/button-group.css +4 -4
- package/src/calendar/calendar.css +7 -7
- package/src/card/card.css +4 -4
- package/src/carousel/carousel.css +8 -8
- package/src/cascader/cascader.css +4 -4
- package/src/chart/chart.css +16 -16
- package/src/checkbox/checkbox.css +24 -24
- package/src/code-block/code-block.css +4 -4
- package/src/collapsible/collapsible.css +5 -5
- package/src/color-picker/color-picker.css +23 -23
- package/src/column-manager/column-manager.css +5 -5
- package/src/combobox/combobox.css +6 -6
- package/src/command-palette/command-palette.css +12 -12
- package/src/container/container.css +3 -3
- package/src/context-menu/context-menu.css +1 -1
- package/src/currency-field/currency-field.css +13 -13
- package/src/dashboard-grid/dashboard-grid.css +1 -1
- package/src/data-grid/data-grid.css +15 -15
- package/src/data-list/data-list.css +1 -1
- package/src/date-field/date-field.css +5 -5
- package/src/date-picker/date-picker.css +2 -2
- package/src/date-range-picker/date-range-picker.css +9 -10
- package/src/datetime-field/datetime-field.css +10 -10
- package/src/datetime-picker/datetime-picker.css +5 -5
- package/src/datetime-range-picker/datetime-range-picker.css +8 -8
- package/src/description-list/description-list.css +5 -5
- package/src/detail-panel/detail-panel.css +1 -1
- package/src/dialog/dialog.css +15 -15
- package/src/divider/divider.css +2 -2
- package/src/drawer/drawer.css +20 -20
- package/src/entity-picker/entity-picker.css +15 -15
- package/src/event-calendar/event-calendar.css +14 -14
- package/src/field/field.css +14 -14
- package/src/field-group/field-group.css +1 -2
- package/src/filter-bar/filter-bar.css +7 -7
- package/src/form/form.css +1 -1
- package/src/fullscreen/fullscreen.css +2 -2
- package/src/grid/grid.css +1 -1
- package/src/highlight/highlight.css +5 -5
- package/src/hover-card/hover-card.css +3 -3
- package/src/icon/icon.css +5 -5
- package/src/image/image.css +3 -3
- package/src/import-export-center/import-export-center.css +9 -9
- package/src/inline/inline.css +1 -1
- package/src/inline-message/inline-message.css +15 -15
- package/src/kbd/kbd.css +14 -14
- package/src/link/link.css +18 -18
- package/src/list/list.css +3 -3
- package/src/list-item/list-item.css +9 -9
- package/src/listbox/listbox.css +10 -10
- package/src/loading-overlay/loading-overlay.css +11 -11
- package/src/markdown/markdown.css +3 -3
- package/src/media-viewer/media-viewer.css +8 -8
- package/src/menu/menu.css +7 -7
- package/src/menubar/menubar.css +3 -3
- package/src/message/message.css +13 -13
- package/src/message-scroller/message-scroller.css +1 -1
- package/src/multi-select/multi-select.css +11 -11
- package/src/navigation-menu/navigation-menu.css +2 -2
- package/src/notification-center/notification-center.css +13 -13
- package/src/number-field/number-field.css +10 -10
- package/src/otp-input/otp-input.css +7 -7
- package/src/page-header/page-header.css +3 -3
- package/src/pagination/pagination.css +7 -7
- package/src/popover/popover.css +3 -3
- package/src/progress-indicator/progress-indicator.css +23 -23
- package/src/prompt-composer/prompt-composer.css +10 -10
- package/src/prose/prose.css +6 -7
- package/src/radio-group/radio-group.css +9 -9
- package/src/rating/rating.css +10 -10
- package/src/result-state/result-state.css +20 -24
- package/src/runtime-properties.mjs +6 -6
- package/src/saved-views/saved-views.css +2 -2
- package/src/scroll-area/scroll-area.css +5 -5
- package/src/section/section.css +1 -1
- package/src/segmented-control/segmented-control.css +16 -16
- package/src/select/select.css +13 -13
- package/src/side-navigation/side-navigation.css +14 -14
- package/src/skeleton/skeleton.css +10 -10
- package/src/slider/slider.css +15 -15
- package/src/sparkline/sparkline.css +13 -13
- package/src/spinner/spinner.css +1 -1
- package/src/split-button/split-button.css +4 -4
- package/src/splitter/splitter.css +12 -13
- package/src/stack/stack.css +1 -1
- package/src/stat-card/stat-card.css +3 -3
- package/src/status-indicator/status-indicator.css +22 -23
- package/src/stepper/stepper.css +20 -20
- package/src/switch/switch.css +14 -14
- package/src/table/table.css +11 -11
- package/src/table-of-contents/table-of-contents.css +3 -3
- package/src/tabs/tabs.css +8 -8
- package/src/tag/tag.css +14 -14
- package/src/tags-input/tags-input.css +6 -6
- package/src/text-field/text-field.css +13 -13
- package/src/textarea/textarea.css +5 -5
- package/src/time-field/time-field.css +8 -8
- package/src/time-picker/time-picker.css +3 -3
- package/src/time-range-picker/time-range-picker.css +8 -8
- package/src/timeline/timeline.css +26 -26
- package/src/toast/toast.css +26 -26
- package/src/toggle/toggle.css +5 -5
- package/src/toggle-group/toggle-group.css +6 -6
- package/src/toolbar/toolbar.css +3 -3
- package/src/tooltip/tooltip.css +1 -1
- package/src/top-navigation/top-navigation.css +9 -9
- package/src/tour/tour.css +13 -13
- package/src/transfer/transfer.css +4 -4
- package/src/tree/tree.css +10 -10
- package/src/typography/typography.css +2 -2
- package/src/upload/upload.css +32 -33
- package/src/wizard/wizard.css +2 -2
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
* a graphic bearing meaning, so WCAG 2.2 1.4.11 binds it at 3:1; the tone
|
|
101
101
|
* `text` roles are the steps the theme's contrast test holds to the 4.5:1
|
|
102
102
|
* reading ratio against every surface, which clears it with room over.
|
|
103
|
-
* And `--slotted-tone-secondary-solid` is the surface's own
|
|
103
|
+
* And `--slotted-tone-secondary-solid` is the surface's own color in
|
|
104
104
|
* `light` and the page's own white in `high-contrast` — a secondary bar
|
|
105
105
|
* painted from it would be an invisible bar in two schemes out of three,
|
|
106
106
|
* which is the deviation `button` recorded and could not fix inside its
|
|
@@ -129,8 +129,8 @@
|
|
|
129
129
|
);
|
|
130
130
|
/**
|
|
131
131
|
* The second quantity, halfway between the two: received but not yet
|
|
132
|
-
* processed. It has to be legible as *neither* — a buffer the
|
|
133
|
-
* the track says nothing has arrived, and a buffer the
|
|
132
|
+
* processed. It has to be legible as *neither* — a buffer the color of
|
|
133
|
+
* the track says nothing has arrived, and a buffer the color of the
|
|
134
134
|
* indicator says the work is done.
|
|
135
135
|
*/
|
|
136
136
|
--_buffer-color: var(--slotted-progress-indicator-buffer-color, transparent);
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
|
|
234
234
|
/* ── Tone ─────────────────────────────────────────────────────────────
|
|
235
235
|
*
|
|
236
|
-
* Five
|
|
236
|
+
* Five colors the theme owns, and the family adds none. Only the ink is
|
|
237
237
|
* stated: the track and the buffer are derived from it, so a sixth tone
|
|
238
238
|
* added by an application is one declaration rather than three.
|
|
239
239
|
*/
|
|
@@ -322,7 +322,7 @@
|
|
|
322
322
|
/**
|
|
323
323
|
* Tabular figures, and the reason is the whole point of the part: the value
|
|
324
324
|
* changes while the reader is looking at it, and a proportional `1` is
|
|
325
|
-
* narrower than a `7`, so a counting bar jitters its own label. The
|
|
325
|
+
* narrower than a `7`, so a counting bar jitters its own label. The color
|
|
326
326
|
* is the muted step, because the number annotates the bar rather than
|
|
327
327
|
* naming it.
|
|
328
328
|
*/
|
|
@@ -435,7 +435,7 @@
|
|
|
435
435
|
|
|
436
436
|
/**
|
|
437
437
|
* Complete, and there is nothing left to separate. The remaining track goes
|
|
438
|
-
* and the stop indicator goes with it: a dot in the indicator's
|
|
438
|
+
* and the stop indicator goes with it: a dot in the indicator's color on
|
|
439
439
|
* top of a full indicator is a dot nobody can see, and leaving the gap
|
|
440
440
|
* would put a notch a whole thickness wide at the end of a finished bar.
|
|
441
441
|
*
|
|
@@ -687,7 +687,7 @@
|
|
|
687
687
|
* ring rather than inside it, and that is a measurement rather than a
|
|
688
688
|
* preference: the largest ring this family draws is 38 pixels across with a
|
|
689
689
|
* 4.75-pixel stroke, which leaves 28 pixels of hole, and a percentage
|
|
690
|
-
*
|
|
690
|
+
* centerd in it would be four-pixel type. Ant Design and MUI both put it
|
|
691
691
|
* inside because both draw rings twice this size.
|
|
692
692
|
*/
|
|
693
693
|
[data-ui-progress-indicator][data-part-root][data-shape='circular'],
|
|
@@ -775,7 +775,7 @@
|
|
|
775
775
|
|
|
776
776
|
/**
|
|
777
777
|
* Indeterminate: no track at all, which is M3's own answer — its circular
|
|
778
|
-
* track
|
|
778
|
+
* track color is transparent — and the reason is sound. An arc with no
|
|
779
779
|
* value has no remainder to show, and a ring behind it would claim there is
|
|
780
780
|
* one.
|
|
781
781
|
*
|
|
@@ -901,7 +901,7 @@
|
|
|
901
901
|
* stroke are ten thicknesses and three quarters of one, and the viewBox is
|
|
902
902
|
* sized so a unit *is* a thickness at every size and density — the box is
|
|
903
903
|
* twelve hundred thicknesses long and two and a half tall, which is the
|
|
904
|
-
* crest plus half the stroke either side of the
|
|
904
|
+
* crest plus half the stroke either side of the center line.
|
|
905
905
|
*
|
|
906
906
|
* The crest needs room the band does not have. `margin-block` reserves it on
|
|
907
907
|
* the track, and the track's block axis does not clip, so the wave is
|
|
@@ -931,8 +931,8 @@
|
|
|
931
931
|
|
|
932
932
|
/**
|
|
933
933
|
* The crest travels with the text. The path is drawn from its own left, so
|
|
934
|
-
* a right-to-left document mirrors the box about its
|
|
935
|
-
* anchored to the inline start, and its
|
|
934
|
+
* a right-to-left document mirrors the box about its center — the box is
|
|
935
|
+
* anchored to the inline start, and its center is the one point that stays
|
|
936
936
|
* inside the track.
|
|
937
937
|
*/
|
|
938
938
|
[data-ui-progress-indicator][data-shape='linear'][data-wave] [data-part-indicator]:dir(rtl) {
|
|
@@ -944,7 +944,7 @@
|
|
|
944
944
|
*
|
|
945
945
|
* The path carries `pathLength` equal to its extent along the inline axis,
|
|
946
946
|
* so a dash of one unit is one thickness of travel whatever the amplitude —
|
|
947
|
-
* the arc length of a sine is longer than its span, and
|
|
947
|
+
* the arc length of a sine is longer than its span, and normalizing the
|
|
948
948
|
* length to the span is what lets the end sit at the value while `d` is
|
|
949
949
|
* mid-transition between flat and wavy.
|
|
950
950
|
*
|
|
@@ -1061,7 +1061,7 @@
|
|
|
1061
1061
|
rotate: calc(-45deg * var(--slotted-progress-indicator-wave-phase));
|
|
1062
1062
|
stroke-dasharray: var(--_percent) calc(100 - var(--_percent));
|
|
1063
1063
|
stroke-dashoffset: calc(-12.5 * var(--slotted-progress-indicator-wave-phase));
|
|
1064
|
-
/* The rotation is about the viewBox's own
|
|
1064
|
+
/* The rotation is about the viewBox's own center, which is where the ring
|
|
1065
1065
|
is; a fill box would turn it about the path's bounding box instead. */
|
|
1066
1066
|
transform-box: view-box;
|
|
1067
1067
|
transform-origin: 50% 50%;
|
|
@@ -1170,7 +1170,7 @@
|
|
|
1170
1170
|
* fifty is the minority parcel and exists so it never freezes between forms.
|
|
1171
1171
|
*
|
|
1172
1172
|
* A single constant turn — this family's first answer — is the *old*
|
|
1173
|
-
* circular indicator's
|
|
1173
|
+
* circular indicator's behavior, and it is what the loading indicator was
|
|
1174
1174
|
* introduced to replace.
|
|
1175
1175
|
*
|
|
1176
1176
|
* CSS has no way to add two animations of one property without
|
|
@@ -1213,10 +1213,10 @@
|
|
|
1213
1213
|
* M3's 38-in-48, rounded to an even number of pixels — and the rounding is
|
|
1214
1214
|
* the whole rule rather than a tidy-up.
|
|
1215
1215
|
*
|
|
1216
|
-
* A grid
|
|
1216
|
+
* A grid centers a box by splitting the remainder in half, so a shape whose
|
|
1217
1217
|
* size leaves an odd remainder inside its container sits half a pixel off
|
|
1218
|
-
*
|
|
1219
|
-
* ratio happens to land on 30 inside 38 and the shape is
|
|
1218
|
+
* center and the browser rasterises that half-pixel to one side. At `lg` the
|
|
1219
|
+
* ratio happens to land on 30 inside 38 and the shape is centerd; at `md` it
|
|
1220
1220
|
* lands on 26.86 inside 34, and the capture showed it low and to one side.
|
|
1221
1221
|
*
|
|
1222
1222
|
* Every control height this family reads is an even number at every density,
|
|
@@ -1564,19 +1564,19 @@
|
|
|
1564
1564
|
}
|
|
1565
1565
|
}
|
|
1566
1566
|
|
|
1567
|
-
/* ── Forced
|
|
1567
|
+
/* ── Forced colors ───────────────────────────────────────────────────
|
|
1568
1568
|
*
|
|
1569
|
-
* The operating system replaces every author
|
|
1569
|
+
* The operating system replaces every author color, so the tone is gone
|
|
1570
1570
|
* whatever the family writes and the five tones become one indicator. What
|
|
1571
1571
|
* is left to decide is whether the geometry survives, and three things do
|
|
1572
|
-
* not survive on their own: a `color-mix` of two forced
|
|
1573
|
-
* mix and paints an author
|
|
1572
|
+
* not survive on their own: a `color-mix` of two forced colors is still a
|
|
1573
|
+
* mix and paints an author color the system did not choose; a masked
|
|
1574
1574
|
* indicator is masked by artwork the system does not replace; and a
|
|
1575
1575
|
* `clip-path` shape has no edge of its own to be seen by.
|
|
1576
1576
|
*
|
|
1577
1577
|
* The remaining track therefore moves from the pseudo-element to the track
|
|
1578
1578
|
* itself, which is a real element the system palette reaches — a decorative
|
|
1579
|
-
* rule may not name a system
|
|
1579
|
+
* rule may not name a system color at all, and
|
|
1580
1580
|
* `packages/styles/src/fallbacks.test.mjs` is what holds that. The gap goes
|
|
1581
1581
|
* with it, and a gap is a refinement rather than a meaning.
|
|
1582
1582
|
*/
|
|
@@ -1594,7 +1594,7 @@
|
|
|
1594
1594
|
|
|
1595
1595
|
/**
|
|
1596
1596
|
* An edge bar keeps no track of its own. The box it stands on already
|
|
1597
|
-
* draws its edge in a system
|
|
1597
|
+
* draws its edge in a system color, and an outline here would be a
|
|
1598
1598
|
* second line beside the first.
|
|
1599
1599
|
*/
|
|
1600
1600
|
[data-ui-progress-indicator]:is([data-placement='edge-start'], [data-placement='edge-end'])
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* it for what the message is sent with — a model, a tool, the send itself.
|
|
8
8
|
* The root paints the border, the ground, the lift and the ring; the
|
|
9
9
|
* textarea inside gives up all four and keeps the value, the caret and the
|
|
10
|
-
* selection
|
|
10
|
+
* selection.
|
|
11
11
|
*
|
|
12
12
|
* Three variants. `raised` is the chat composer: a surface lifted off the
|
|
13
13
|
* page, round buttons, a corner derived from them. `outline` and `subtle`
|
|
@@ -274,15 +274,15 @@
|
|
|
274
274
|
|
|
275
275
|
/**
|
|
276
276
|
* Words and a mark in one button — a country code over its chevron, a model
|
|
277
|
-
* name, a notation. The mark is
|
|
277
|
+
* name, a notation. The mark is centerd on the band the letters occupy, not
|
|
278
278
|
* on the line box: the line box keeps room under the baseline for
|
|
279
|
-
* descenders, so a box
|
|
279
|
+
* descenders, so a box centerd in it sits low beside the letters — every
|
|
280
280
|
* chevron in these buttons did. The rule is the briefing's (_A mark beside a
|
|
281
281
|
* line of text is aligned to the text_), here in a grid: items share the
|
|
282
282
|
* baseline, the mark's synthesized baseline is its bottom edge, a negative
|
|
283
283
|
* start margin takes back the height it would add above the letters, and a
|
|
284
|
-
* translate puts its
|
|
285
|
-
* midpoint of the capitals' and the lowercase letters' own
|
|
284
|
+
* translate puts its center at `(1cap + 1ex) / 4` above the baseline — the
|
|
285
|
+
* midpoint of the capitals' and the lowercase letters' own centers.
|
|
286
286
|
*/
|
|
287
287
|
[data-ui-prompt-composer]
|
|
288
288
|
> :is([data-part-header], [data-part-footer])
|
|
@@ -574,7 +574,7 @@
|
|
|
574
574
|
|
|
575
575
|
/**
|
|
576
576
|
* Writing lifts the surface: the ring the theme draws for focus, and the
|
|
577
|
-
* shadow one step deeper — in a form the resting lift
|
|
577
|
+
* shadow one step deeper — in a form the resting lift recolored in the
|
|
578
578
|
* ring's ink, the rule every framed control follows; in the chat composer
|
|
579
579
|
* the theme's large shadow, because a surface that is being written on
|
|
580
580
|
* comes forward.
|
|
@@ -703,7 +703,7 @@
|
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
705
|
|
|
706
|
-
/* The system's
|
|
706
|
+
/* The system's colors draw no gradient: the marks go, and the frame's own
|
|
707
707
|
border and focus outline return. */
|
|
708
708
|
@media (forced-colors: active) {
|
|
709
709
|
[data-ui-prompt-composer] > :is([data-part-ring], [data-part-glow]) {
|
|
@@ -736,7 +736,7 @@
|
|
|
736
736
|
|
|
737
737
|
[data-ui-prompt-composer][data-part-root]::before {
|
|
738
738
|
/* Unthemed, the dashed edge disappears rather than shouting in a system
|
|
739
|
-
|
|
739
|
+
color; the wash and the frame's edge still say where the drop lands. */
|
|
740
740
|
border: var(--slotted-border-width-medium, 1.5px) dashed
|
|
741
741
|
var(
|
|
742
742
|
--slotted-prompt-composer-drop-border-color,
|
|
@@ -786,11 +786,11 @@
|
|
|
786
786
|
}
|
|
787
787
|
|
|
788
788
|
/*
|
|
789
|
-
* Width as well as
|
|
789
|
+
* Width as well as color (WCAG 1.4.1), the edge `text-field` draws: in
|
|
790
790
|
* `high-contrast` the danger border is the resting edge's black. It is a
|
|
791
791
|
* border on a box laid over the frame's padding box rather than a shadow on
|
|
792
792
|
* the frame, so the frame keeps its own elevation at rest and under focus —
|
|
793
|
-
* the large one in `raised` — and forced
|
|
793
|
+
* the large one in `raised` — and forced colors, which remove shadows, keep
|
|
794
794
|
* a border. Nothing moves: the box is out of flow.
|
|
795
795
|
*/
|
|
796
796
|
[data-ui-prompt-composer][data-part-root][data-invalid]::after {
|
package/src/prose/prose.css
CHANGED
|
@@ -40,8 +40,7 @@
|
|
|
40
40
|
* 1.5rem because no control needs more. An `h1` taken from it would be 1.33
|
|
41
41
|
* times its own body text at `size="xl"`, and adding a fourth step to the
|
|
42
42
|
* scale would change ground thirty-four families stand on to serve this
|
|
43
|
-
* one. `docs/
|
|
44
|
-
* the trade; `docs/token-foundation.md` rule 1 grants the exemption to a
|
|
43
|
+
* one. `docs/token-foundation.md` rule 1 grants the exemption to a
|
|
45
44
|
* family token whose reason is recorded, which is what `container` already
|
|
46
45
|
* used for its three page widths.
|
|
47
46
|
*/
|
|
@@ -85,7 +84,7 @@
|
|
|
85
84
|
* without a rule of its own.
|
|
86
85
|
*/
|
|
87
86
|
overflow-wrap: anywhere;
|
|
88
|
-
/* No
|
|
87
|
+
/* No color is painted: text on a tonal surface reads that surface. */
|
|
89
88
|
}
|
|
90
89
|
|
|
91
90
|
/* ── The two axes ───────────────────────────────────────────────────── */
|
|
@@ -272,8 +271,8 @@
|
|
|
272
271
|
}
|
|
273
272
|
|
|
274
273
|
/**
|
|
275
|
-
* The one element in editorial text that carries a
|
|
276
|
-
* warning tone is the highlighter a reader
|
|
274
|
+
* The one element in editorial text that carries a color of its own. The
|
|
275
|
+
* warning tone is the highlighter a reader recognizes, and the pair is the
|
|
277
276
|
* theme's own — a mark painted with a background and no matching ink is a
|
|
278
277
|
* mark that vanishes in the dark scheme.
|
|
279
278
|
*/
|
|
@@ -304,7 +303,7 @@
|
|
|
304
303
|
*
|
|
305
304
|
* A bare `a` from a Markdown renderer reads the `link` family's own tokens,
|
|
306
305
|
* so a rendered link and a `<Link>` on the same page are one theme decision
|
|
307
|
-
* rather than two
|
|
306
|
+
* rather than two colors for one idea. No selector here names another
|
|
308
307
|
* family's `data-ui`, which is the rule `accordion` and `collapsible` set: a
|
|
309
308
|
* `<Link>` placed inside this region wins on specificity and is left alone.
|
|
310
309
|
*/
|
|
@@ -436,7 +435,7 @@
|
|
|
436
435
|
* fence needs none of them to be readable.
|
|
437
436
|
*
|
|
438
437
|
* The ground is a fill and the edge is a border, deliberately: under forced
|
|
439
|
-
*
|
|
438
|
+
* colors the fill is replaced and the border is what still says where the
|
|
440
439
|
* code starts.
|
|
441
440
|
*/
|
|
442
441
|
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
[data-ui-radio-group] [data-part-control] {
|
|
142
142
|
appearance: none;
|
|
143
143
|
background-color: var(--slotted-radio-group-background, var(--slotted-surface, Canvas));
|
|
144
|
-
/* The medium step in the strong border
|
|
144
|
+
/* The medium step in the strong border color, as `checkbox` edges its
|
|
145
145
|
square: a sixteen-pixel circle is edged too lightly at one pixel and too
|
|
146
146
|
heavily at two. */
|
|
147
147
|
border: var(--slotted-radio-group-border-width, var(--slotted-border-width-medium, 1.5px)) solid
|
|
@@ -164,10 +164,10 @@
|
|
|
164
164
|
|
|
165
165
|
/**
|
|
166
166
|
* The dot: the accent's solid step on the surface, inside a circle whose
|
|
167
|
-
* edge has turned the same
|
|
167
|
+
* edge has turned the same color. The glyph scale's dot is authored at half
|
|
168
168
|
* its grid, so the `Glyph` element the binding renders, filling the box,
|
|
169
169
|
* draws a dot of eight pixels in a circle of sixteen — the proportion every surveyed implementation lands
|
|
170
|
-
* on — and the box the dot is
|
|
170
|
+
* on — and the box the dot is centerd in is the control's own, of whole
|
|
171
171
|
* pixels, so the two are concentric at every step.
|
|
172
172
|
*
|
|
173
173
|
* A dot rather than a hole punched in a thick accent edge, which was the
|
|
@@ -388,13 +388,13 @@
|
|
|
388
388
|
}
|
|
389
389
|
|
|
390
390
|
/**
|
|
391
|
-
* The border thickens as well as changing
|
|
391
|
+
* The border thickens as well as changing color. In the `high-contrast`
|
|
392
392
|
* scheme the theme paints `--slotted-tone-danger-border` the same black as
|
|
393
|
-
* every other border, so
|
|
393
|
+
* every other border, so color alone would make an invalid control identical
|
|
394
394
|
* to a valid one — and `docs/component-features.md` §2.5 refuses a state that
|
|
395
|
-
* only
|
|
395
|
+
* only color carries. It thickens by the edge every invalid control adds,
|
|
396
396
|
* `--slotted-control-invalid-edge-width`, and as a border rather than the
|
|
397
|
-
* inset shadow a field draws, because a width survives forced
|
|
397
|
+
* inset shadow a field draws, because a width survives forced colors and a
|
|
398
398
|
* shadow does not. The box keeps its size, because the border box is what is
|
|
399
399
|
* measured.
|
|
400
400
|
*/
|
|
@@ -520,7 +520,7 @@
|
|
|
520
520
|
/**
|
|
521
521
|
* The edge is drawn over the border box and never in flow, so a hairline
|
|
522
522
|
* becoming a two-pixel chosen edge moves no line of text inside the tile. It
|
|
523
|
-
* is a border rather than a shadow so that it survives forced
|
|
523
|
+
* is a border rather than a shadow so that it survives forced colors, where
|
|
524
524
|
* a shadow is removed outright and a width is not. `card` draws its own edge
|
|
525
525
|
* the same way and for the same two reasons.
|
|
526
526
|
*/
|
|
@@ -720,7 +720,7 @@
|
|
|
720
720
|
/* ── Forced colors ────────────────────────────────────────────────────
|
|
721
721
|
*
|
|
722
722
|
* Forced colors overrides the circle's `background-color` and the dot's
|
|
723
|
-
* `color`, so the dot would vanish into the circle it is drawn in. Restated in system
|
|
723
|
+
* `color`, so the dot would vanish into the circle it is drawn in. Restated in system colors, as `checkbox` restates the same pair.
|
|
724
724
|
*/
|
|
725
725
|
@media (forced-colors: active) {
|
|
726
726
|
[data-ui-radio-group] [data-part-control] {
|
package/src/rating/rating.css
CHANGED
|
@@ -363,7 +363,7 @@
|
|
|
363
363
|
}
|
|
364
364
|
|
|
365
365
|
/*
|
|
366
|
-
* Width as well as
|
|
366
|
+
* Width as well as color (WCAG 1.4.1): in `high-contrast` the danger pair is
|
|
367
367
|
* the page's white and the edge's black, which an empty star already wears.
|
|
368
368
|
* The empty star's outline grows by the edge every invalid control adds. A
|
|
369
369
|
* stroke grows about its path inside the drawing's own box, so no star and
|
|
@@ -444,13 +444,13 @@
|
|
|
444
444
|
}
|
|
445
445
|
|
|
446
446
|
/**
|
|
447
|
-
* The text beside the stars is
|
|
448
|
-
* flex row
|
|
447
|
+
* The text beside the stars is centerd on its ink, not on its line box. A
|
|
448
|
+
* flex row centers the line box, and a line box is not symmetric around the
|
|
449
449
|
* letters: the ascender reaches further above the cap than the descender
|
|
450
450
|
* reaches below the baseline, so every figure sat high beside a star whose
|
|
451
|
-
* drawing is
|
|
451
|
+
* drawing is centerd in its box. `text-box` trims the box to the cap and the
|
|
452
452
|
* baseline — the decision `badge` measured first — so the capitals and the
|
|
453
|
-
* figures share the star's
|
|
453
|
+
* figures share the star's center. Each part is a flex or grid item, which is
|
|
454
454
|
* a block container, the condition `text-box-trim` needs; the level's
|
|
455
455
|
* number is its own `span` for the same reason, because the text of an
|
|
456
456
|
* `inline-flex` lives in an anonymous item no selector reaches. A wrapped
|
|
@@ -690,7 +690,7 @@
|
|
|
690
690
|
* from a thousand. So the distribution is drawn as columns on the scale's own
|
|
691
691
|
* axis, the mean is a line at its exact place on that axis, the 95% interval
|
|
692
692
|
* of the mean is a band behind the columns, and one conclusion stands above
|
|
693
|
-
* (`@slotted/core/rating`, `
|
|
693
|
+
* (`@slotted/core/rating`, `summarizeRatings`). Every figure, the interval
|
|
694
694
|
* included, is also written as text.
|
|
695
695
|
*/
|
|
696
696
|
[data-ui-rating][data-part-root][data-variant='spectrum'] {
|
|
@@ -823,7 +823,7 @@
|
|
|
823
823
|
}
|
|
824
824
|
|
|
825
825
|
/**
|
|
826
|
-
* A column is a bar at most forty pixels wide,
|
|
826
|
+
* A column is a bar at most forty pixels wide, centerd, as tall as its
|
|
827
827
|
* level's share of the largest level. A level nobody chose draws nothing;
|
|
828
828
|
* any other is at least two pixels, so one reading is never invisible. It
|
|
829
829
|
* grows from the baseline on the long step and the enter curve.
|
|
@@ -858,7 +858,7 @@
|
|
|
858
858
|
}
|
|
859
859
|
|
|
860
860
|
/**
|
|
861
|
-
* A value on the scale is placed on the columns' axis: the
|
|
861
|
+
* A value on the scale is placed on the columns' axis: the center of the
|
|
862
862
|
* first column, plus one column and one gap per unit. The interval sits
|
|
863
863
|
* behind the columns and the mean in front of them.
|
|
864
864
|
*/
|
|
@@ -1033,9 +1033,9 @@
|
|
|
1033
1033
|
}
|
|
1034
1034
|
|
|
1035
1035
|
/**
|
|
1036
|
-
* Under forced
|
|
1036
|
+
* Under forced colors every tone becomes a button face, which is the page's
|
|
1037
1037
|
* own ground, and a lit star would be indistinguishable from an unlit one.
|
|
1038
|
-
* The lit shape is filled with the text
|
|
1038
|
+
* The lit shape is filled with the text color and the unlit one outlined in
|
|
1039
1039
|
* it — the shape carries the value, as it does in every scheme.
|
|
1040
1040
|
*/
|
|
1041
1041
|
@media (forced-colors: active) {
|
|
@@ -78,8 +78,7 @@
|
|
|
78
78
|
/**
|
|
79
79
|
* Eight pixels between the title and the sentence under it. Six glued the
|
|
80
80
|
* description to an eighteen- and a twenty-four-pixel title; ReUI's three
|
|
81
|
-
* blocks hold eight
|
|
82
|
-
* § 3).
|
|
81
|
+
* blocks hold eight.
|
|
83
82
|
*/
|
|
84
83
|
--_text-gap: var(--slotted-result-state-text-gap, var(--slotted-space-4, 0.5rem));
|
|
85
84
|
/**
|
|
@@ -143,7 +142,7 @@
|
|
|
143
142
|
* needed: `1lh` read on the mark itself resolved against the mark's own
|
|
144
143
|
* inherited twelve pixels and `normal`, which is a fourteen-pixel line box
|
|
145
144
|
* against the title's nineteen. The mark sat two and a half pixels above
|
|
146
|
-
* the line it was supposed to be
|
|
145
|
+
* the line it was supposed to be centerd on, which is visible and was
|
|
147
146
|
* reported from the picture rather than by a test.
|
|
148
147
|
*/
|
|
149
148
|
font-size: var(--_title-font-size);
|
|
@@ -265,12 +264,12 @@
|
|
|
265
264
|
/* ── Align ────────────────────────────────────────────────────────────
|
|
266
265
|
*
|
|
267
266
|
* Carbon left-aligns its empty states inside data-dense views; the other six
|
|
268
|
-
* surveyed implementations
|
|
267
|
+
* surveyed implementations center unconditionally. Both readings are real,
|
|
269
268
|
* and one axis is cheaper than a second family.
|
|
270
269
|
*
|
|
271
270
|
* `justify-items` places the boxes and `text-align` places the words inside
|
|
272
|
-
* them, because a
|
|
273
|
-
* would otherwise ship: the title looks
|
|
271
|
+
* them, because a centerd box holding left-aligned prose is the defect this
|
|
272
|
+
* would otherwise ship: the title looks centerd until the description wraps
|
|
274
273
|
* onto a second line.
|
|
275
274
|
*/
|
|
276
275
|
[data-ui-result-state][data-part-root][data-align='center'] {
|
|
@@ -309,7 +308,7 @@
|
|
|
309
308
|
* projecting a node: the page names its own illustration and shows the box in
|
|
310
309
|
* the same rule, which is one snippet in the family's documentation. It is
|
|
311
310
|
* painted as an image rather than as a mask, because what goes there now is a
|
|
312
|
-
* drawing in its own
|
|
311
|
+
* drawing in its own colors and not a silhouette in a tone; and when nothing
|
|
313
312
|
* names it, the declaration is invalid at computed-value time and the box
|
|
314
313
|
* paints nothing at all.
|
|
315
314
|
*/
|
|
@@ -347,7 +346,7 @@
|
|
|
347
346
|
max-inline-size: 100%;
|
|
348
347
|
}
|
|
349
348
|
|
|
350
|
-
/** Supplied artwork on the same line,
|
|
349
|
+
/** Supplied artwork on the same line, centerd on the same axis by its own size. */
|
|
351
350
|
[data-ui-result-state][data-reach='inline'] > [data-part-media]:not(:empty) {
|
|
352
351
|
align-self: start;
|
|
353
352
|
grid-column: 1;
|
|
@@ -369,13 +368,10 @@
|
|
|
369
368
|
* the guide forbids an illustration from dominating a dense screen. The
|
|
370
369
|
* artwork the page supplied is drawn there as it is.
|
|
371
370
|
*
|
|
372
|
-
* Under forced
|
|
371
|
+
* Under forced colors the browser would replace every fill with `Canvas`
|
|
373
372
|
* and leave each drawing as outlines laid on top of one another. The theme
|
|
374
|
-
* already maps the roles used here to system
|
|
373
|
+
* already maps the roles used here to system colors in that mode, so the
|
|
375
374
|
* drawing opts out of the browser's adjustment and keeps the theme's.
|
|
376
|
-
*
|
|
377
|
-
* The measurements, and where each came from, are in
|
|
378
|
-
* `docs/history/designs/2026-09-25-result-state-reui-dossier.md` § 3.
|
|
379
375
|
*/
|
|
380
376
|
|
|
381
377
|
/**
|
|
@@ -444,15 +440,15 @@
|
|
|
444
440
|
*
|
|
445
441
|
* Three layers and two pseudo-elements: the front face is `::before`, the
|
|
446
442
|
* middle layer `::after`, and the farthest is the box's own shadow, drawn
|
|
447
|
-
* twice — a fill, then a pixel wider in the border
|
|
443
|
+
* twice — a fill, then a pixel wider in the border color — because a
|
|
448
444
|
* shadow has no border of its own. The box itself paints nothing, since a
|
|
449
445
|
* transformed box is a stacking context and its own background would sit
|
|
450
446
|
* above nothing and beneath both pseudo-elements.
|
|
451
447
|
*
|
|
452
448
|
* The drawing's visual bounds are wider and taller than the box, so the box
|
|
453
|
-
* reserves the difference in its margins and is moved back onto the
|
|
449
|
+
* reserves the difference in its margins and is moved back onto the center
|
|
454
450
|
* of those bounds: 0.325 of a side along the lean and 0.145 down, the
|
|
455
|
-
*
|
|
451
|
+
* center of the sheared stack measured against the center of the square.
|
|
456
452
|
*/
|
|
457
453
|
[data-ui-result-state]:not([data-reach='inline'])[data-illustration='stack']
|
|
458
454
|
> [data-part-media]:not(:empty) {
|
|
@@ -554,7 +550,7 @@
|
|
|
554
550
|
* stand above the box, which reserves their two steps in its top margin.
|
|
555
551
|
*
|
|
556
552
|
* ReUI fades the bottom of the drawing into `--background`. That supposes
|
|
557
|
-
* the
|
|
553
|
+
* the color of the ground, and a result state inside a card or on the
|
|
558
554
|
* sunken surface is on another one; a mask would clip the cards behind,
|
|
559
555
|
* which stand outside the box. The drawing does not fade.
|
|
560
556
|
*/
|
|
@@ -585,7 +581,7 @@
|
|
|
585
581
|
);
|
|
586
582
|
/* A length, not a percentage: a percentage in a background offset is a
|
|
587
583
|
share of the room the layer leaves, which differs for each line height
|
|
588
|
-
and set the two lines four and three pixels above
|
|
584
|
+
and set the two lines four and three pixels above center. */
|
|
589
585
|
--_line-1-y: calc(
|
|
590
586
|
(var(--_thumb) + 2 * var(--_pad) - var(--_line) - var(--_line-gap) - var(--_line-2)) / 2
|
|
591
587
|
);
|
|
@@ -729,7 +725,7 @@
|
|
|
729
725
|
|
|
730
726
|
/**
|
|
731
727
|
* `balance` is what keeps a two-line title from leaving one word on the
|
|
732
|
-
* second line, and it is the reason a
|
|
728
|
+
* second line, and it is the reason a centerd region reads as a shape rather
|
|
733
729
|
* than as a ragged edge. It is capped by the browser at a handful of lines,
|
|
734
730
|
* so a long title is unaffected rather than slow.
|
|
735
731
|
*
|
|
@@ -802,9 +798,9 @@
|
|
|
802
798
|
* tall as its tallest item, so a control taller than a line of text made the
|
|
803
799
|
* row thirty pixels deep: the mark and the words then sat at the top of it
|
|
804
800
|
* while the control sat in the middle, and a row with one thing at the top
|
|
805
|
-
* and another in the
|
|
801
|
+
* and another in the center reads as a mistake. Reported from the picture.
|
|
806
802
|
*
|
|
807
|
-
* The box is one line box tall and the control is
|
|
803
|
+
* The box is one line box tall and the control is centerd in it, which lets
|
|
808
804
|
* the control stand proud of the line by the same distance above and below —
|
|
809
805
|
* a distance the region's own block inset already holds.
|
|
810
806
|
*/
|
|
@@ -812,7 +808,7 @@
|
|
|
812
808
|
/**
|
|
813
809
|
* `align-content` rather than `align-items`, because the row is allowed to
|
|
814
810
|
* wrap and a wrapping flex container aligns its *lines*: with the line
|
|
815
|
-
* taller than the box, `align-items: center`
|
|
811
|
+
* taller than the box, `align-items: center` centers the control inside a
|
|
816
812
|
* line that is itself parked at the top, which left the control exactly
|
|
817
813
|
* half its overhang too low.
|
|
818
814
|
*/
|
|
@@ -967,10 +963,10 @@
|
|
|
967
963
|
transition-delay: var(--slotted-duration-short);
|
|
968
964
|
}
|
|
969
965
|
|
|
970
|
-
/* ── Forced
|
|
966
|
+
/* ── Forced colors ───────────────────────────────────────────────────
|
|
971
967
|
*
|
|
972
968
|
* Nothing beyond the drawings' own `forced-color-adjust`, above. The
|
|
973
|
-
* operating system replaces every author
|
|
969
|
+
* operating system replaces every author color, the theme already remaps
|
|
974
970
|
* `--slotted-text` and `--slotted-text-muted`, and the words carry the
|
|
975
971
|
* region as they do everywhere else.
|
|
976
972
|
*/
|
|
@@ -241,7 +241,7 @@ export const RUNTIME_PROPERTY_PREFIXES = [
|
|
|
241
241
|
/**
|
|
242
242
|
* `rating` — where the spectrum places the mean and the two ends of its 95%
|
|
243
243
|
* interval on the scale, from 1 to the maximum, written on the summary's
|
|
244
|
-
* root from `
|
|
244
|
+
* root from `summarizeRatings`.
|
|
245
245
|
*/
|
|
246
246
|
'--slotted-rating-mean',
|
|
247
247
|
'--slotted-rating-low',
|
|
@@ -285,11 +285,11 @@ export const RUNTIME_PROPERTY_PREFIXES = [
|
|
|
285
285
|
*/
|
|
286
286
|
'--slotted-carousel-overscroll',
|
|
287
287
|
/**
|
|
288
|
-
* `color-picker` — the
|
|
289
|
-
* alpha, the hue it remembers when the
|
|
290
|
-
* thumb stands (saturation and brightness, 0 to 1), how opaque the
|
|
291
|
-
* is (0 to 1), and the
|
|
292
|
-
* root by the binding from the value `@slotted/core/color` parsed; a
|
|
288
|
+
* `color-picker` — the color this instance holds, with and without its
|
|
289
|
+
* alpha, the hue it remembers when the color has none, where the area's
|
|
290
|
+
* thumb stands (saturation and brightness, 0 to 1), how opaque the color
|
|
291
|
+
* is (0 to 1), and the color the panel opened with. Each is written on the
|
|
292
|
+
* root by the binding from the value `@slotted/core/color` parsed; a color
|
|
293
293
|
* the reader picked is a fact about this instance, which no theme can hold.
|
|
294
294
|
*/
|
|
295
295
|
'--slotted-color-picker-color',
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
/**
|
|
117
117
|
* The mark: a dot in the accent solid and the word, in the muted ink and
|
|
118
118
|
* the regular weight, so the name stays the loudest thing in the control
|
|
119
|
-
* and the state is never
|
|
119
|
+
* and the state is never color alone.
|
|
120
120
|
*/
|
|
121
121
|
[data-ui-saved-views] > [data-part-trigger] > [data-part-modified] {
|
|
122
122
|
display: inline-flex;
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
* The check, an `icon` on the name's first line and on its text rather than
|
|
252
252
|
* its line box (`docs/build-briefing.md`, Decisions already taken). Its
|
|
253
253
|
* bottom sits on the baseline; the translate lowers it by half its size less
|
|
254
|
-
* half the band, the midpoint of cap height and x-height, so its
|
|
254
|
+
* half the band, the midpoint of cap height and x-height, so its center is
|
|
255
255
|
* the band's.
|
|
256
256
|
*/
|
|
257
257
|
[data-ui-saved-views][data-part-panel] [data-part-apply] > [data-ui-icon] {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* all hide the native bar — `scrollbar-width: none` plus a
|
|
7
7
|
* `::-webkit-scrollbar` rule — and redraw it from a thumb element kept in
|
|
8
8
|
* sync by a scroll listener and a `ResizeObserver`. That costs the trough
|
|
9
|
-
* click, the scrollbar context menu, the system's own overlay
|
|
9
|
+
* click, the scrollbar context menu, the system's own overlay behavior, and
|
|
10
10
|
* the correct bar before hydration or without JavaScript.
|
|
11
11
|
* `docs/component-features.md` §4 asks for the opposite in this family's own
|
|
12
12
|
* sentence, and `scrollbar-color` reached Baseline in December 2025, so the
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
131
|
* `thin` rather than `auto`, and it is still the platform's bar: the trough
|
|
132
|
-
* click, the scrollbar context menu and the system's own
|
|
132
|
+
* click, the scrollbar context menu and the system's own behavior all
|
|
133
133
|
* survive it. What it drops is the pair of stepper buttons Chrome draws on
|
|
134
134
|
* Linux and Windows once a scrollbar is themed at all — read in the first
|
|
135
135
|
* capture with a bar visible, they took thirty-two pixels off a hundred and
|
|
@@ -152,10 +152,10 @@
|
|
|
152
152
|
* content. A mask applies to the border box and stays.
|
|
153
153
|
*
|
|
154
154
|
* It is a mask rather than a gradient for the reason `table` wrote when it
|
|
155
|
-
* refused one: a gradient over the content has to be the
|
|
155
|
+
* refused one: a gradient over the content has to be the color of the
|
|
156
156
|
* ground beneath it, so it is wrong on every surface but one and in every
|
|
157
157
|
* scheme but one. A mask fades the content to transparent and needs no ink
|
|
158
|
-
* at all — `#000` here is alpha 1, not a
|
|
158
|
+
* at all — `#000` here is alpha 1, not a color decision.
|
|
159
159
|
*
|
|
160
160
|
* One layer per physical axis, each fading both of its ends, composed with
|
|
161
161
|
* `intersect` so the two alphas multiply at a corner.
|
|
@@ -442,7 +442,7 @@
|
|
|
442
442
|
}
|
|
443
443
|
|
|
444
444
|
/**
|
|
445
|
-
* The system owns the palette under forced
|
|
445
|
+
* The system owns the palette under forced colors, and a veil over system
|
|
446
446
|
* text is a legibility loss with nothing bought. The scrollbar goes back to
|
|
447
447
|
* the system's own, which is what `scrollbar-color: auto` means.
|
|
448
448
|
*/
|
package/src/section/section.css
CHANGED
|
@@ -229,7 +229,7 @@
|
|
|
229
229
|
|
|
230
230
|
/**
|
|
231
231
|
* A subsection: the case, the size and the tone all change, so the level is
|
|
232
|
-
* read without the
|
|
232
|
+
* read without the color. The text stays the muted token, which the theme
|
|
233
233
|
* holds above 4.5:1 on every ground a section stands on.
|
|
234
234
|
*/
|
|
235
235
|
[data-ui-section]
|