@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
|
@@ -713,7 +713,7 @@
|
|
|
713
713
|
/**
|
|
714
714
|
* A timed event of one day in the month is a line, not a bar: its mark, its
|
|
715
715
|
* time and its title, and no ground. A month where every meeting was a bar
|
|
716
|
-
* read as a wall of
|
|
716
|
+
* read as a wall of color, and the all-day events — the ones a month is
|
|
717
717
|
* for — no longer stood out from it.
|
|
718
718
|
*/
|
|
719
719
|
[data-ui-event-calendar] [data-part-day-events] > [data-part-event]:not([data-bar]) {
|
|
@@ -755,7 +755,7 @@
|
|
|
755
755
|
|
|
756
756
|
/**
|
|
757
757
|
* A bar and a block: the calendar's ground inside the calendar's edge, all
|
|
758
|
-
* the way round, written in the calendar's ink. A
|
|
758
|
+
* the way round, written in the calendar's ink. A colored stripe down one
|
|
759
759
|
* side was the other answer, and it is the one every generated interface
|
|
760
760
|
* reaches for. `--_ground` is named because the block's fade below paints
|
|
761
761
|
* with it, so the fade follows every state the ground does.
|
|
@@ -824,7 +824,7 @@
|
|
|
824
824
|
|
|
825
825
|
/**
|
|
826
826
|
* The event whose detail is open, and the one the pointer is carrying, is
|
|
827
|
-
* the solid slot: the one thing on the grid in its calendar's full
|
|
827
|
+
* the solid slot: the one thing on the grid in its calendar's full color,
|
|
828
828
|
* so the eye finds it without reading. The slot is darkened by a fifth so
|
|
829
829
|
* white type holds 4.5:1 on every slot of the scale. The event a context
|
|
830
830
|
* menu acts on is drawn the same way, for the same reason.
|
|
@@ -903,7 +903,7 @@
|
|
|
903
903
|
}
|
|
904
904
|
|
|
905
905
|
/**
|
|
906
|
-
* An event that has ended steps back: less of its
|
|
906
|
+
* An event that has ended steps back: less of its color, its words in the
|
|
907
907
|
* muted ink. The day's remaining events are the ones a reader acts on.
|
|
908
908
|
*/
|
|
909
909
|
[data-ui-event-calendar] [data-part-event][data-past]:not([data-open], [data-dragging]) {
|
|
@@ -1147,7 +1147,7 @@
|
|
|
1147
1147
|
* goes last; the time is already said by where the event stands, and the
|
|
1148
1148
|
* place is a detail. A day of the month narrower than a time and a word keeps
|
|
1149
1149
|
* the mark and the title; a block narrower than a word keeps the title, and
|
|
1150
|
-
* one narrower than three letters keeps its
|
|
1150
|
+
* one narrower than three letters keeps its color alone — its name stays in
|
|
1151
1151
|
* the accessibility tree whatever the width. Cut to "D…" and "1:…", the
|
|
1152
1152
|
* words were noise that looked like text.
|
|
1153
1153
|
*/
|
|
@@ -1240,8 +1240,8 @@
|
|
|
1240
1240
|
}
|
|
1241
1241
|
|
|
1242
1242
|
/**
|
|
1243
|
-
* The weekday over the date,
|
|
1244
|
-
* mark with its digits
|
|
1243
|
+
* The weekday over the date, centerd in the column. The date is a round
|
|
1244
|
+
* mark with its digits centerd in it, and a weekday set on the column's
|
|
1245
1245
|
* start edge sat a padding and a half away from digits it was meant to
|
|
1246
1246
|
* stand over.
|
|
1247
1247
|
*/
|
|
@@ -1710,7 +1710,7 @@
|
|
|
1710
1710
|
padding-inline: var(--slotted-space-3, 0.375rem);
|
|
1711
1711
|
}
|
|
1712
1712
|
|
|
1713
|
-
/** The mark sits on the
|
|
1713
|
+
/** The mark sits on the center of the title's first line, whatever the row's height. */
|
|
1714
1714
|
[data-ui-event-calendar] [data-part-list-events] [data-part-event]::before {
|
|
1715
1715
|
grid-column: 2;
|
|
1716
1716
|
grid-row: 1;
|
|
@@ -1863,8 +1863,8 @@
|
|
|
1863
1863
|
|
|
1864
1864
|
/**
|
|
1865
1865
|
* 600: a list row's time column goes under its title, the month and the
|
|
1866
|
-
* week draw their events as marks of
|
|
1867
|
-
* target. Seven columns of 50 pixels hold a
|
|
1866
|
+
* week draw their events as marks of color, and the day becomes the
|
|
1867
|
+
* target. Seven columns of 50 pixels hold a color and nothing legible:
|
|
1868
1868
|
* three letters of a title are a guess, not a name, and every event keeps
|
|
1869
1869
|
* its whole name for assistive technology.
|
|
1870
1870
|
*/
|
|
@@ -1942,7 +1942,7 @@
|
|
|
1942
1942
|
/**
|
|
1943
1943
|
* A block with no words carries its calendar alone, so it takes the
|
|
1944
1944
|
* pressed tint and the calendar's own edge: at the resting tint a column
|
|
1945
|
-
* of pale blocks read as one
|
|
1945
|
+
* of pale blocks read as one color.
|
|
1946
1946
|
*/
|
|
1947
1947
|
[data-ui-event-calendar] [data-part-column] > [data-part-event] {
|
|
1948
1948
|
background-color: light-dark(
|
|
@@ -2069,7 +2069,7 @@
|
|
|
2069
2069
|
|
|
2070
2070
|
@media (forced-colors: active) {
|
|
2071
2071
|
/* The event's dot and the now marker are shapes painted with a
|
|
2072
|
-
background, which forced
|
|
2072
|
+
background, which forced colors would replace: the mark would go and
|
|
2073
2073
|
the box it sat in would stay. The icons are `Glyph` elements stroked
|
|
2074
2074
|
with the forced ink, and need nothing here. */
|
|
2075
2075
|
[data-ui-event-calendar] [data-part-event]::before,
|
|
@@ -2079,7 +2079,7 @@
|
|
|
2079
2079
|
|
|
2080
2080
|
/**
|
|
2081
2081
|
* The tint has nothing to mix in a palette the system replaced, so an
|
|
2082
|
-
* event keeps its edge, in the text
|
|
2082
|
+
* event keeps its edge, in the text color.
|
|
2083
2083
|
*/
|
|
2084
2084
|
[data-ui-event-calendar] [data-part-event][data-bar],
|
|
2085
2085
|
[data-ui-event-calendar] [data-part-column] > [data-part-event] {
|
|
@@ -2088,7 +2088,7 @@
|
|
|
2088
2088
|
|
|
2089
2089
|
/* A timed line of the month and a row of the list have no edge: the
|
|
2090
2090
|
transparent one they keep for geometry would be painted in the text
|
|
2091
|
-
|
|
2091
|
+
color, and the line would read as a bar. */
|
|
2092
2092
|
[data-ui-event-calendar] [data-part-day-events] > [data-part-event]:not([data-bar]),
|
|
2093
2093
|
[data-ui-event-calendar] [data-part-list-events] [data-part-event] {
|
|
2094
2094
|
border-color: Canvas;
|
package/src/field/field.css
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* Type, control height and glyph come from the control scales, the only
|
|
25
25
|
* ones the theme restates per density, so a field in a dense table shrinks
|
|
26
26
|
* whole rather than in parts. The control height is read for one reason:
|
|
27
|
-
* the side label is
|
|
27
|
+
* the side label is centerd on the control's first line, and that is the
|
|
28
28
|
* only distance in the family that depends on the control's own size.
|
|
29
29
|
*/
|
|
30
30
|
--_font-size: var(--slotted-control-font-size-md, 13px);
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
* a red asterisk is the convention every surveyed implementation follows, and
|
|
205
205
|
* the field deliberately does *not* repaint the label when it is invalid: a
|
|
206
206
|
* red marker on a red label is a marker nobody can see, and the error already
|
|
207
|
-
* says the same thing in words, in
|
|
207
|
+
* says the same thing in words, in color and in a glyph.
|
|
208
208
|
*/
|
|
209
209
|
[data-ui-field] > [data-part-label] > [data-part-mark],
|
|
210
210
|
[data-ui-field] > [data-part-header] > [data-part-label] > [data-part-mark] {
|
|
@@ -251,10 +251,10 @@
|
|
|
251
251
|
* The label row, when the label has company: the help behind an icon, an
|
|
252
252
|
* indicator such as `Beta`, an action such as `Forgot password?`, and the
|
|
253
253
|
* counter. ReUI writes the same row by hand in four of its examples — a
|
|
254
|
-
* `div` with `justify-between` around the label — and
|
|
254
|
+
* `div` with `justify-between` around the label — and centers every item in
|
|
255
255
|
* it; here the row is a part, and it aligns its items on the label's first
|
|
256
256
|
* baseline instead, so a 13-pixel label, a 12-pixel count and an emblem with
|
|
257
|
-
* a box of its own sit on one line of text rather than on one
|
|
257
|
+
* a box of its own sit on one line of text rather than on one center.
|
|
258
258
|
*
|
|
259
259
|
* The row takes the label's type, so `1lh`, `1cap` and `1ex` measured by
|
|
260
260
|
* anything inside it are the label's line. It wraps: in a narrow field the
|
|
@@ -305,7 +305,7 @@
|
|
|
305
305
|
* label's type at its own height and gives the difference back in the block
|
|
306
306
|
* axis, so a field with a help icon is exactly as tall as one without. The
|
|
307
307
|
* line inside it is the label's own — `font: inherit` — and a `button`
|
|
308
|
-
*
|
|
308
|
+
* centers its content in the block axis, so the button's baseline stands
|
|
309
309
|
* where the label's does; a line as tall as the box put it 0.44 pixels lower
|
|
310
310
|
* at comfortable and 0.69 at dense, and the row grew by that much. Only
|
|
311
311
|
* the block axis gives it back: a negative inline margin would pull the box
|
|
@@ -316,11 +316,11 @@
|
|
|
316
316
|
*
|
|
317
317
|
* The glyph is placed on the label's text rather than on its line box: the
|
|
318
318
|
* button holds one line of the label's type, and the glyph sits on that
|
|
319
|
-
* line's baseline and
|
|
319
|
+
* line's baseline and centerd on the band between the middle of the
|
|
320
320
|
* capitals and the middle of the lowercase — `(1cap + 1ex) / 2` — the band
|
|
321
321
|
* `toast` settled on (`docs/build-briefing.md`, a mark beside a line of
|
|
322
322
|
* text). The first capture raised the glyph's bottom by the band less half
|
|
323
|
-
* the glyph, which put its
|
|
323
|
+
* the glyph, which put its center on the band's top: four pixels high, and a
|
|
324
324
|
* line box 3.3 pixels taller than the label's.
|
|
325
325
|
*/
|
|
326
326
|
[data-ui-field] > [data-part-header] > [data-part-help] {
|
|
@@ -362,7 +362,7 @@
|
|
|
362
362
|
var(--slotted-control-transition-easing);
|
|
363
363
|
}
|
|
364
364
|
|
|
365
|
-
/* The pointer target: a transparent square
|
|
365
|
+
/* The pointer target: a transparent square centerd on the box that reaches
|
|
366
366
|
the WCAG minimum wherever the box falls short of it — 22 pixels at
|
|
367
367
|
comfortable, 16 at dense. It takes no room, so the row keeps its height. */
|
|
368
368
|
[data-ui-field] > [data-part-header] > [data-part-help]::before {
|
|
@@ -412,7 +412,7 @@
|
|
|
412
412
|
align-items: center;
|
|
413
413
|
/* A badge is a box, not a line of text. Set on the label's baseline, its
|
|
414
414
|
own inset stood it 1.77 pixels above the label's line and the row grew
|
|
415
|
-
by that much;
|
|
415
|
+
by that much; centerd on the line, an 18.8-pixel badge fits in the
|
|
416
416
|
18.85-pixel line and the row is the label's height with or without it. */
|
|
417
417
|
align-self: center;
|
|
418
418
|
column-gap: var(--slotted-space-2, 0.25rem);
|
|
@@ -425,7 +425,7 @@
|
|
|
425
425
|
* A link or a button at the end of the label row: `Forgot password?`,
|
|
426
426
|
* `Generate`, `Use the billing address`. It is a text control, so it speaks
|
|
427
427
|
* the vocabulary `link` settled for text that answers a pointer: accent ink
|
|
428
|
-
* at rest, a hover a third of the way to the body
|
|
428
|
+
* at rest, a hover a third of the way to the body color with the underline
|
|
429
429
|
* drawn, and a press two thirds of the way. ReUI paints the same action in
|
|
430
430
|
* muted ink, where it reads as inert text beside the counter, and answers
|
|
431
431
|
* press with a one-pixel shift of a line of 12-pixel type.
|
|
@@ -503,7 +503,7 @@
|
|
|
503
503
|
|
|
504
504
|
/**
|
|
505
505
|
* On a finger both controls of the row reach the comfortable target with a
|
|
506
|
-
* transparent halo
|
|
506
|
+
* transparent halo centerd on the box. The halo takes no room, so the row
|
|
507
507
|
* keeps its height and the ground and the ring stay the box a mouse sees.
|
|
508
508
|
*/
|
|
509
509
|
@media (pointer: coarse) {
|
|
@@ -639,7 +639,7 @@
|
|
|
639
639
|
}
|
|
640
640
|
|
|
641
641
|
/**
|
|
642
|
-
*
|
|
642
|
+
* Centerd on the control's first line rather than on the control, so the
|
|
643
643
|
* label stays level with the text a reader is typing when the control is a
|
|
644
644
|
* textarea four lines tall. `max()` keeps a label taller than its control —
|
|
645
645
|
* three wrapped lines beside a 30-pixel input — from being pushed down.
|
|
@@ -683,12 +683,12 @@
|
|
|
683
683
|
|
|
684
684
|
/* ── Disabled ─────────────────────────────────────────────────────────
|
|
685
685
|
*
|
|
686
|
-
* Muted to the
|
|
686
|
+
* Muted to the color the theme measures rather than faded by opacity: a
|
|
687
687
|
* label nobody can read is a field nobody can identify, and a form that
|
|
688
688
|
* disables a section still has to say what the section was for.
|
|
689
689
|
*
|
|
690
690
|
* The messages need no rule here. The field passes `disabled` to them, and
|
|
691
|
-
* `inline-message` mutes itself to the same
|
|
691
|
+
* `inline-message` mutes itself to the same color and stops its own ring.
|
|
692
692
|
*/
|
|
693
693
|
[data-ui-field][data-part-root][data-disabled] > [data-part-label],
|
|
694
694
|
[data-ui-field][data-part-root][data-disabled] > [data-part-counter],
|
|
@@ -227,8 +227,7 @@
|
|
|
227
227
|
*
|
|
228
228
|
* The fields inside are muted by the group providing `disabled` to them, not
|
|
229
229
|
* by a descendant selector: a field used outside a group would then have no
|
|
230
|
-
* disabled appearance at all
|
|
231
|
-
* `docs/history/designs/2026-08-31-field-aware-controls-design.md` records.
|
|
230
|
+
* disabled appearance at all.
|
|
232
231
|
*/
|
|
233
232
|
[data-ui-field-group][data-part-root][data-disabled] > [data-part-legend],
|
|
234
233
|
[data-ui-field-group][data-part-root][data-disabled] > [data-part-legend] > [data-part-mark] {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
--_hover: var(--slotted-tone-secondary-subtle-hover, ButtonFace);
|
|
40
40
|
--_active: var(--slotted-tone-secondary-subtle-active, ButtonFace);
|
|
41
41
|
--_invalid: var(--slotted-tone-danger-border, GrayText);
|
|
42
|
-
/* Width as well as
|
|
42
|
+
/* Width as well as color (WCAG 1.4.1): in `high-contrast` the danger edge is the resting edge's black, so every invalid box adds the edge `text-field` draws, inside its border, where nothing moves. */
|
|
43
43
|
--_invalid-edge-width: var(--slotted-control-invalid-edge-width, 1px);
|
|
44
44
|
--_invalid-edge: inset 0 0 0 var(--_invalid-edge-width) var(--_invalid);
|
|
45
45
|
--_duration: var(--slotted-control-transition-duration, var(--slotted-duration-short));
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
* none showed a chip.
|
|
130
130
|
*
|
|
131
131
|
* Every member of the first line starts at its top and is a control tall,
|
|
132
|
-
* so the count
|
|
132
|
+
* so the count centers its text against the search whatever wraps.
|
|
133
133
|
*/
|
|
134
134
|
[data-ui-filter-bar] > [data-part-frame] {
|
|
135
135
|
align-items: start;
|
|
@@ -739,7 +739,7 @@
|
|
|
739
739
|
|
|
740
740
|
[data-ui-filter-bar][data-part-builder] [data-part-conjunction] {
|
|
741
741
|
color: var(--_muted);
|
|
742
|
-
/*
|
|
742
|
+
/* Centerd on the first control of its row, whatever the row stacks to. */
|
|
743
743
|
line-height: var(--_height);
|
|
744
744
|
overflow: hidden;
|
|
745
745
|
text-align: end;
|
|
@@ -923,7 +923,7 @@
|
|
|
923
923
|
box-shadow: var(--_invalid-edge);
|
|
924
924
|
}
|
|
925
925
|
|
|
926
|
-
/* Forced
|
|
926
|
+
/* Forced colors remove the shadow; the edge comes back as an outline. */
|
|
927
927
|
@media (forced-colors: active) {
|
|
928
928
|
[data-ui-filter-bar][data-part-builder] [data-part-rule][data-invalid] {
|
|
929
929
|
outline: var(--_invalid-edge-width) solid CanvasText;
|
|
@@ -1006,7 +1006,7 @@
|
|
|
1006
1006
|
/*
|
|
1007
1007
|
* The remove control stands level with the chevron, in the middle of the
|
|
1008
1008
|
* header: the header's own height is the summary's, so the row it shares
|
|
1009
|
-
* with the summary is
|
|
1009
|
+
* with the summary is centerd on it, and an expanded card's controls
|
|
1010
1010
|
* below do not pull it down.
|
|
1011
1011
|
*/
|
|
1012
1012
|
[data-ui-filter-bar][data-part-builder] [data-part-rule] > [data-part-remove] {
|
|
@@ -1239,7 +1239,7 @@
|
|
|
1239
1239
|
/*
|
|
1240
1240
|
* On a finger the remove control of a builder row and `more` are full
|
|
1241
1241
|
* targets, and the box is the one a mouse sees: a transparent `::before`
|
|
1242
|
-
*
|
|
1242
|
+
* centerd on each reaches the comfortable size in both axes, so no row grows
|
|
1243
1243
|
* and the builder's remove track keeps its width. A chip's segments take the
|
|
1244
1244
|
* control height, which the theme already raises to the comfortable target.
|
|
1245
1245
|
*/
|
|
@@ -1256,7 +1256,7 @@
|
|
|
1256
1256
|
}
|
|
1257
1257
|
|
|
1258
1258
|
@media (forced-colors: active) {
|
|
1259
|
-
/* Forced
|
|
1259
|
+
/* Forced colors remove the invalid edge's shadow; it comes back as an
|
|
1260
1260
|
outline inside the border, and a focused invalid pill draws its ring
|
|
1261
1261
|
double. A chip's ring belongs to a segment and leaves it alone. */
|
|
1262
1262
|
[data-ui-filter-bar] [data-part-pill][data-invalid],
|
package/src/form/form.css
CHANGED
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
|
|
280
280
|
/**
|
|
281
281
|
* The one block the theme cannot write for the family. The summary's start
|
|
282
|
-
* edge is what tells a forced-
|
|
282
|
+
* edge is what tells a forced-colors reader that the panel is the errors
|
|
283
283
|
* and not a note, and a tone surface flattened to `Canvas` would leave the
|
|
284
284
|
* panel with nothing but its border.
|
|
285
285
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* draws a black `::backdrop` behind it. What it does not draw is a ground:
|
|
14
14
|
* an element with none shows the black through it, so a region of text
|
|
15
15
|
* went full screen as text on black. The ground is the theme's page ground,
|
|
16
|
-
* and the backdrop takes the same
|
|
16
|
+
* and the backdrop takes the same color so the edge of the region never
|
|
17
17
|
* shows.
|
|
18
18
|
*
|
|
19
19
|
* `layout` is the same picture drawn by this sheet, fixed over the viewport
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
* screen" beside the four corners opening, "Exit full screen" beside the
|
|
195
195
|
* four corners closing. It is not a toggle: the Button pattern says a
|
|
196
196
|
* control whose label changes with its state is not announced as pressed,
|
|
197
|
-
* so it carries no `aria-pressed` and no "on"
|
|
197
|
+
* so it carries no `aria-pressed` and no "on" color. The geometry is the
|
|
198
198
|
* control scale's, the same box `toggle` and `button` stand in, so the
|
|
199
199
|
* control sits in a toolbar beside them without a pixel of difference.
|
|
200
200
|
*/
|
package/src/grid/grid.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@layer slotted.components {
|
|
2
2
|
/**
|
|
3
3
|
* Grid arranges its children across two axes and reflows by measuring itself,
|
|
4
|
-
* not the viewport. It paints nothing: a layout that carried a
|
|
4
|
+
* not the viewport. It paints nothing: a layout that carried a color would be
|
|
5
5
|
* a surface, and a surface is another family's decision.
|
|
6
6
|
*
|
|
7
7
|
* Without a stated column count the track list is as many equal tracks as fit
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* inline padding, `Blueberry` measured 70.03px marked against 63.17px plain,
|
|
23
23
|
* and the run moved 6.86px as the query grew (CB6). Weight, spacing and
|
|
24
24
|
* padding are therefore the label's own, and the mark is carried entirely by
|
|
25
|
-
*
|
|
25
|
+
* color: the accent's text tone over a band mixed from that same tone, with
|
|
26
26
|
* a rule of the accent's border tone under it.
|
|
27
27
|
*
|
|
28
28
|
* The rule is `text-decoration` rather than a shadow, so it follows the
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
* a ground is calibrated to sit under text on the page rather than to
|
|
34
34
|
* separate from it: it measured 1.220 | 1.014 | 1.000:1 against the panel in
|
|
35
35
|
* `light` | `dark` | `high-contrast`, so in two schemes out of three the band
|
|
36
|
-
* did not exist and the mark was carried by its
|
|
36
|
+
* did not exist and the mark was carried by its color and its rule alone
|
|
37
37
|
* (CB10, the same fact CK7 found under the pointer halo). The band is mixed
|
|
38
38
|
* from `accent-text` instead — the one role every scheme keeps legible over
|
|
39
39
|
* the surface — so one share gives one gesture in all three: 1.120 | 1.165 |
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
* is why the option is here", and saying it in the accent tone on a row that
|
|
99
99
|
* answers nothing puts the loudest thing on the surface on the one option a
|
|
100
100
|
* reader cannot take. The rule stays: the reader still has to see which span
|
|
101
|
-
* matched, and it is the part of the mark that costs no
|
|
101
|
+
* matched, and it is the part of the mark that costs no color.
|
|
102
102
|
*
|
|
103
103
|
* The state is the root's own, or any row's above it: the host's option
|
|
104
104
|
* already carries `data-disabled`, and the family reads it from there rather
|
|
@@ -112,9 +112,9 @@
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
|
-
* Under forced
|
|
115
|
+
* Under forced colors the accent ground becomes `Canvas` and the mark would
|
|
116
116
|
* vanish. `Mark` and `MarkText` are the system pair for exactly this element,
|
|
117
|
-
* and they are the one case where this sheet names a system
|
|
117
|
+
* and they are the one case where this sheet names a system color because
|
|
118
118
|
* the theme has no token that maps to it. The current match takes
|
|
119
119
|
* `Highlight` and `HighlightText`, the pair the user agent draws its own
|
|
120
120
|
* active find match in.
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
67
|
* While the card shows, the word it is about is marked: the tint behind it
|
|
68
|
-
* and a halo of the same
|
|
68
|
+
* and a halo of the same color drawn as a spread shadow, so the inline box
|
|
69
69
|
* grows by one step of space without moving the line it sits on. A padding
|
|
70
70
|
* would have reflowed the paragraph on every open.
|
|
71
71
|
*/
|
|
@@ -81,9 +81,9 @@
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
|
-
* Forced
|
|
84
|
+
* Forced colors remove backgrounds, so the open mark would vanish with them;
|
|
85
85
|
* a link the reader is looking at is underlined in the system's own link
|
|
86
|
-
*
|
|
86
|
+
* color instead, which is the one thing forced colors keep.
|
|
87
87
|
*/
|
|
88
88
|
@media (forced-colors: active) {
|
|
89
89
|
[data-ui-hover-card][data-open] {
|
package/src/icon/icon.css
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Icon is the box a glyph is drawn in, not the glyph. The library ships no
|
|
4
4
|
* catalogue: the artwork is the consumer's, and this family owns the size it
|
|
5
|
-
* is drawn at, the
|
|
5
|
+
* is drawn at, the color it inherits, where it sits against a line of text,
|
|
6
6
|
* and whether it mirrors in a right-to-left document.
|
|
7
7
|
*
|
|
8
8
|
* The size is read through the family token rather than stated, so a
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
line-height: 1;
|
|
25
25
|
/**
|
|
26
26
|
* An inline box sits with its bottom edge on the baseline, which puts its
|
|
27
|
-
*
|
|
27
|
+
* center half its own height above the line while text reads centerd
|
|
28
28
|
* between the baseline and the cap height. The icon reads high without a
|
|
29
29
|
* correction, and by more the larger it is relative to the type around it:
|
|
30
30
|
* a constant shift is right at one ratio and wrong at every other, which a
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
*
|
|
33
33
|
* The default is therefore computed rather than stated. `cap` is the cap
|
|
34
34
|
* height of the font the icon inherits and `--_size` is the box, so the
|
|
35
|
-
* expression puts the box's
|
|
35
|
+
* expression puts the box's center on the text's optical center at every
|
|
36
36
|
* combination of the two. At `1em` it resolves near the `-0.125em` this
|
|
37
37
|
* family used to state, which is why that constant looked right until the
|
|
38
38
|
* ratio changed. A theme still overrides the whole thing through the token.
|
|
@@ -132,8 +132,8 @@
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
/**
|
|
135
|
-
*
|
|
136
|
-
*
|
|
135
|
+
* Color is inherited rather than painted, so an icon beside a label is the
|
|
136
|
+
* color of that label without anyone deciding it. The family sets `color`
|
|
137
137
|
* and never `fill` or `stroke`: stroked artwork declares
|
|
138
138
|
* `stroke="currentColor"` and filled artwork declares `fill="currentColor"`,
|
|
139
139
|
* and imposing either would break the other.
|
package/src/image/image.css
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*
|
|
16
16
|
* Nothing is reserved without a decision. A root with no ratio and an
|
|
17
17
|
* `<img>` with no `width`/`height` has no height until the picture reports,
|
|
18
|
-
* which is the platform's own
|
|
18
|
+
* which is the platform's own behavior and the honest one: a family that
|
|
19
19
|
* guessed a ratio would guess it wrong for half its consumers. `width` and
|
|
20
20
|
* `height` on the element, or `ratio` on the root, are the two ways to
|
|
21
21
|
* decide, and both reserve the box before the first byte arrives.
|
|
@@ -439,11 +439,11 @@
|
|
|
439
439
|
}
|
|
440
440
|
|
|
441
441
|
/**
|
|
442
|
-
* ── Forced
|
|
442
|
+
* ── Forced colors ─────────────────────────────────────────────────────
|
|
443
443
|
*
|
|
444
444
|
* The theme maps the ground to `Canvas` and the edge to `ButtonBorder`, so
|
|
445
445
|
* nothing here needs restating for them. The picture is exempt by the user
|
|
446
446
|
* agent's own rule: `forced-color-adjust` does not apply to images, and a
|
|
447
|
-
* photograph reduced to two system
|
|
447
|
+
* photograph reduced to two system colors is not a photograph.
|
|
448
448
|
*/
|
|
449
449
|
}
|
|
@@ -320,7 +320,7 @@
|
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
/**
|
|
323
|
-
* The tile. The kind's
|
|
323
|
+
* The tile. The kind's color from the File kind scale `upload` owns, the
|
|
324
324
|
* kind's glyph — an `Icon` the binding draws from the kind — knocked out of
|
|
325
325
|
* it in the scale's foreground. Aligned to the job title's first line box,
|
|
326
326
|
* so the tile and the name start on one line.
|
|
@@ -339,7 +339,7 @@
|
|
|
339
339
|
inline-size: var(--_tile);
|
|
340
340
|
justify-content: center;
|
|
341
341
|
/*
|
|
342
|
-
*
|
|
342
|
+
* Centerd on the name and the first line of meta, the pair the eye reads
|
|
343
343
|
* as the job's label, rather than hung from the name's line box: the tile
|
|
344
344
|
* is shorter than the two lines, and top-aligned it stood above them.
|
|
345
345
|
*/
|
|
@@ -510,7 +510,7 @@
|
|
|
510
510
|
margin-inline-end: calc((var(--_separator-gap) - var(--_separator)) / 2);
|
|
511
511
|
margin-inline-start: calc((var(--_separator-gap) + var(--_separator)) / -2);
|
|
512
512
|
opacity: 0.6;
|
|
513
|
-
/* The dot's
|
|
513
|
+
/* The dot's center on the middle of the x-height, measured from the
|
|
514
514
|
baseline rather than from the line box, so it sits where the lowercase
|
|
515
515
|
letters are at every size and in every face. */
|
|
516
516
|
vertical-align: calc(0.5ex - var(--_separator) / 2);
|
|
@@ -562,13 +562,13 @@
|
|
|
562
562
|
* consumer's stage in the muted voice. The mark takes the line's own size
|
|
563
563
|
* and sits a step of air before the word.
|
|
564
564
|
*
|
|
565
|
-
* It is
|
|
565
|
+
* It is centerd on the band `toast` measured for a mark beside a line of
|
|
566
566
|
* text: the midpoint of the cap height and the x-height, `(1cap + 1ex) / 2`
|
|
567
|
-
* tall from the baseline, so the mark's
|
|
567
|
+
* tall from the baseline, so the mark's center is half that band above the
|
|
568
568
|
* baseline. The box is baseline-aligned — its bottom edge on the baseline,
|
|
569
|
-
* its
|
|
569
|
+
* its center `0.5em` above it — and moved down by the difference, rounded
|
|
570
570
|
* to a whole pixel so the mark snaps with the glyphs beside it. The first
|
|
571
|
-
* version put the
|
|
571
|
+
* version put the center on the band's top instead of its middle, and the
|
|
572
572
|
* mark stood four pixels above the words at every size.
|
|
573
573
|
*/
|
|
574
574
|
[data-ui-import-export-center] [data-part-body] > [data-part-status] {
|
|
@@ -1125,7 +1125,7 @@
|
|
|
1125
1125
|
}
|
|
1126
1126
|
}
|
|
1127
1127
|
|
|
1128
|
-
/* ── Forced
|
|
1128
|
+
/* ── Forced colors ──────────────────────────────────────────────────── */
|
|
1129
1129
|
|
|
1130
1130
|
@media (forced-colors: active) {
|
|
1131
1131
|
/**
|
|
@@ -1141,7 +1141,7 @@
|
|
|
1141
1141
|
forced-color-adjust: none;
|
|
1142
1142
|
}
|
|
1143
1143
|
|
|
1144
|
-
/** The tile loses its kind's
|
|
1144
|
+
/** The tile loses its kind's color, as every tone does here; its edge keeps the square. */
|
|
1145
1145
|
[data-ui-import-export-center] [data-part-job] > [data-part-visual] {
|
|
1146
1146
|
border: var(--slotted-border-width-thin, 1px) solid CanvasText;
|
|
1147
1147
|
color: CanvasText;
|
package/src/inline/inline.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@layer slotted.components {
|
|
2
2
|
/**
|
|
3
3
|
* Inline arranges its children along the inline axis and lets them wrap. It
|
|
4
|
-
* paints nothing: a layout that carried a
|
|
4
|
+
* paints nothing: a layout that carried a color would be a surface, and a
|
|
5
5
|
* surface is another family's decision.
|
|
6
6
|
*
|
|
7
7
|
* Wrapping is the default because a row that cannot wrap has only one answer
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
/**
|
|
29
29
|
* The default is the help tone, which is what most fields carry. It is the
|
|
30
30
|
* one tone that paints in the neutral muted ink rather than in a tone's
|
|
31
|
-
* own `text` role: `--slotted-tone-secondary-text` is a label
|
|
31
|
+
* own `text` role: `--slotted-tone-secondary-text` is a label color
|
|
32
32
|
* calibrated for that tone's tinted ground — `#172033` in the light scheme
|
|
33
33
|
* — and text at that strength under a field reads as loud as the label
|
|
34
34
|
* above it. `--slotted-text-muted` is the ink the theme already darkened to
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
* line, and this box holds a sentence.
|
|
44
44
|
*
|
|
45
45
|
* The mark is the sentence's own size (R5), the rule `alert` draws its
|
|
46
|
-
* mark with, rounded to an even pixel so its
|
|
46
|
+
* mark with, rounded to an even pixel so its center lands on a whole one:
|
|
47
47
|
* 12 pixels beside 12-pixel type, 14 beside 13. The status glyphs are
|
|
48
48
|
* drawn on those two grids (`@slotted/core/glyph`), so every cut of the
|
|
49
49
|
* symbol is on a device pixel. A fourteen-pixel Lucide glyph reduced to
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
font-size: var(--_font-size);
|
|
72
72
|
/**
|
|
73
73
|
* The leading, rounded up to an even pixel: 13 × 1.5 is 19.5 and lands
|
|
74
|
-
* every line, and the mark
|
|
74
|
+
* every line, and the mark centerd on it, across two device pixels. 20
|
|
75
75
|
* and 18 leave a whole pixel of half-leading on each side.
|
|
76
76
|
*/
|
|
77
77
|
line-height: round(
|
|
@@ -178,11 +178,11 @@
|
|
|
178
178
|
*
|
|
179
179
|
* The defect this family exists to fix. A reader who cannot see the message
|
|
180
180
|
* hears the sentence and nothing else: neither the red ink nor the mark
|
|
181
|
-
* reaches the accessibility tree, so “
|
|
181
|
+
* reaches the accessibility tree, so “Enter a valid tax ID” carries
|
|
182
182
|
* no evidence that it is an error rather than a hint.
|
|
183
183
|
*
|
|
184
184
|
* GOV.UK's Error message component answers it with a hidden “Error:” before
|
|
185
|
-
* the text. This is that answer,
|
|
185
|
+
* the text. This is that answer, generalized to every severity and to a table
|
|
186
186
|
* an application replaces once.
|
|
187
187
|
*
|
|
188
188
|
* The rule set is WCAG 2.2 technique C7, as `visually-hidden` publishes it:
|
|
@@ -203,8 +203,8 @@
|
|
|
203
203
|
|
|
204
204
|
/* ── The mark ─────────────────────────────────────────────────────────
|
|
205
205
|
*
|
|
206
|
-
* A square the sentence's own size, on its first line (R5). Its
|
|
207
|
-
* the
|
|
206
|
+
* A square the sentence's own size, on its first line (R5). Its center is
|
|
207
|
+
* the center of the capitals, `0.5cap` above the baseline — the axis
|
|
208
208
|
* `[data-ui-icon]` aligns every icon on — so the mark sits on the words
|
|
209
209
|
* rather than on the line box around them, and stays there when the
|
|
210
210
|
* sentence wraps to three. The offset is rounded to the device pixel: half
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
*
|
|
213
213
|
* The glyph is the binding's `Glyph` in an `icon` box, chosen from the tone
|
|
214
214
|
* and filled in `currentcolor`; the slot sizes it through the icon token.
|
|
215
|
-
* A mark the page supplies instead takes the same box,
|
|
215
|
+
* A mark the page supplies instead takes the same box, centerd in it.
|
|
216
216
|
*
|
|
217
217
|
* `text-indent` is inherited, and the root's is negative: every box the
|
|
218
218
|
* message holds takes it back.
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
* help under a field draws no mark, and an error draws the tone's own.
|
|
252
252
|
*
|
|
253
253
|
* The disc is a third of the mark rounded to an even pixel — 4 pixels at
|
|
254
|
-
* both steps — so its
|
|
254
|
+
* both steps — so its center is on a whole pixel like every other mark. The
|
|
255
255
|
* slot is the disc's own width and the glyph's box is twice that, because
|
|
256
256
|
* the `dot` glyph draws a circle half the width of its own viewBox: at twice
|
|
257
257
|
* the slot the disc fills the slot exactly, the box overhanging it equally
|
|
@@ -381,7 +381,7 @@
|
|
|
381
381
|
* one of the thirteen surveyed implementations ships it. It is a state of the
|
|
382
382
|
* same message rather than a sixth tone: the mark becomes a ring turning in
|
|
383
383
|
* the same place, and the tone, the size and every distance stay where they
|
|
384
|
-
* were — so “
|
|
384
|
+
* were — so “Checking availability…” becomes “Name available” with no
|
|
385
385
|
* geometry moving under the reader's eye.
|
|
386
386
|
*
|
|
387
387
|
* It is the ring `button` draws for the same reason, at the same duration,
|
|
@@ -411,7 +411,7 @@
|
|
|
411
411
|
|
|
412
412
|
/* ── Disabled ─────────────────────────────────────────────────────────
|
|
413
413
|
*
|
|
414
|
-
* Muted rather than faded: `--slotted-disabled-foreground` is a
|
|
414
|
+
* Muted rather than faded: `--slotted-disabled-foreground` is a color the
|
|
415
415
|
* theme measures, and lowering opacity until the sentence is unreadable is
|
|
416
416
|
* how a message beside a disabled control stops being a message.
|
|
417
417
|
*
|
|
@@ -438,16 +438,16 @@
|
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
440
|
|
|
441
|
-
/* ── Forced
|
|
441
|
+
/* ── Forced colors ───────────────────────────────────────────────────
|
|
442
442
|
*
|
|
443
|
-
* The theme remaps every
|
|
444
|
-
* here. The mark takes a system
|
|
443
|
+
* The theme remaps every color this family reads, so the ink needs no rule
|
|
444
|
+
* here. The mark takes a system color of its own, so the silhouette keeps
|
|
445
445
|
* the ink that says it is a mark and not a word, and the muted one when the
|
|
446
446
|
* message is disabled.
|
|
447
447
|
*
|
|
448
448
|
* The ring is the same problem from the other side: its missing quarter is
|
|
449
449
|
* `transparent`, which survives, but its border would otherwise be forced to
|
|
450
|
-
* one
|
|
450
|
+
* one color and the turn would be a complete circle turning invisibly.
|
|
451
451
|
*/
|
|
452
452
|
@media (forced-colors: active) {
|
|
453
453
|
[data-ui-inline-message] > [data-part-icon] {
|