@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
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
*
|
|
22
22
|
* Two inks carry the list. `--_text` is the muted step every link rests in
|
|
23
23
|
* and `--_current` is the accent text step the current link is set in;
|
|
24
|
-
* hover mixes the first toward the page's own text
|
|
24
|
+
* hover mixes the first toward the page's own text color, which is the rule
|
|
25
25
|
* `link` and `breadcrumb` arrived at for a line of text.
|
|
26
26
|
*/
|
|
27
27
|
[data-ui-table-of-contents] {
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
|
|
98
98
|
/* ── The label ──────────────────────────────────────────────────────────
|
|
99
99
|
*
|
|
100
|
-
* The list's title, set in the page's own text
|
|
100
|
+
* The list's title, set in the page's own text color and one step of
|
|
101
101
|
* weight above the links, so the column reads as a titled list and not as a
|
|
102
102
|
* link that happens to be bold. It stands on the same inset as the links.
|
|
103
103
|
*/
|
|
@@ -516,7 +516,7 @@
|
|
|
516
516
|
inline-size: 6rem;
|
|
517
517
|
}
|
|
518
518
|
|
|
519
|
-
/* ── Forced
|
|
519
|
+
/* ── Forced colors ───────────────────────────────────────────────────── */
|
|
520
520
|
|
|
521
521
|
@media (forced-colors: active) {
|
|
522
522
|
/* A painted background is the one thing the mode throws away: the marker is redrawn in the system's highlight. */
|
package/src/tabs/tabs.css
CHANGED
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
*/
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
|
-
* A column of labels reads down its own start edge.
|
|
205
|
+
* A column of labels reads down its own start edge. Centering them is what the
|
|
206
206
|
* horizontal rule wants — a row of equal shares has a middle — and in a
|
|
207
207
|
* column it produces a ragged left edge nobody can scan.
|
|
208
208
|
*/
|
|
@@ -345,7 +345,7 @@
|
|
|
345
345
|
/**
|
|
346
346
|
* What stands beside the words: an icon before them, a count after them.
|
|
347
347
|
* Each is a flex item of the tab, so the tab's inner gap spaces it and the
|
|
348
|
-
* row
|
|
348
|
+
* row centers it, and neither shrinks: under `fit="equal"` the label is what
|
|
349
349
|
* gives way. An icon box reads `--slotted-icon-size` from the slot, so it
|
|
350
350
|
* takes the tab's icon step.
|
|
351
351
|
*/
|
|
@@ -426,7 +426,7 @@
|
|
|
426
426
|
|
|
427
427
|
/**
|
|
428
428
|
* The closing control keeps the library's outward ring. It is shorter than
|
|
429
|
-
* the item and
|
|
429
|
+
* the item and centerd in it, so the ring has room inside the list's own box
|
|
430
430
|
* and nothing about it reaches the edge the scroller clips at — and an inset
|
|
431
431
|
* ring on a twenty-four pixel box would be drawn through the mark.
|
|
432
432
|
*/
|
|
@@ -461,7 +461,7 @@
|
|
|
461
461
|
* `--slotted-tabs-marker-inset`, which defaults to the tab's own inline
|
|
462
462
|
* padding, and never the closing control: a tab followed by one gives up its
|
|
463
463
|
* end padding, so the end inset is nought there. Below the width of a short
|
|
464
|
-
* label it keeps a minimum length,
|
|
464
|
+
* label it keeps a minimum length, centerd on the content. It stands
|
|
465
465
|
* `--slotted-tabs-marker-offset` above the list's edge, over the track, and the axes are physical in this one rule
|
|
466
466
|
* because the measurement is: the position is from the list's left edge.
|
|
467
467
|
* At rest the bar is laid out by `left` and `inline-size`, so its ends keep
|
|
@@ -689,7 +689,7 @@
|
|
|
689
689
|
}
|
|
690
690
|
|
|
691
691
|
/* On a finger the target is the comfortable size in both axes and the box
|
|
692
|
-
is the one a mouse sees: a transparent box
|
|
692
|
+
is the one a mouse sees: a transparent box centerd on the control reaches
|
|
693
693
|
44 pixels, and the ground and the ring stay square. */
|
|
694
694
|
@media (pointer: coarse) {
|
|
695
695
|
[data-ui-tabs] > :where([data-part-list]) > :where([data-part-item]) > [data-part-dismiss] {
|
|
@@ -996,16 +996,16 @@
|
|
|
996
996
|
background-color: var(--slotted-disabled-border);
|
|
997
997
|
}
|
|
998
998
|
|
|
999
|
-
/* ── Forced
|
|
999
|
+
/* ── Forced colors ──────────────────────────────────────────────────── */
|
|
1000
1000
|
|
|
1001
1001
|
/**
|
|
1002
|
-
* The theme maps every scheme token to a system
|
|
1002
|
+
* The theme maps every scheme token to a system color, so the rules here
|
|
1003
1003
|
* are about paint the theme cannot reach: the track drawn as a shadow, the
|
|
1004
1004
|
* marker's ground, and a selected tab in the contained variant, whose fill
|
|
1005
1005
|
* flattens to `Canvas` along with the track it stands in.
|
|
1006
1006
|
*/
|
|
1007
1007
|
@media (forced-colors: active) {
|
|
1008
|
-
/* A shadow is not drawn under forced
|
|
1008
|
+
/* A shadow is not drawn under forced colors: the track is a border again. */
|
|
1009
1009
|
[data-ui-tabs][data-variant='line'][data-track='line'] > [data-part-list] {
|
|
1010
1010
|
border-block-end: var(--_track-size) solid CanvasText;
|
|
1011
1011
|
padding-block-end: 0;
|
package/src/tag/tag.css
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
[data-ui-tag][data-part-root] {
|
|
27
27
|
/**
|
|
28
28
|
* Tone. The neutral fill is the tone's `solid-hover` step rather than its
|
|
29
|
-
* `solid` one, for the reason `badge` recorded: `solid` is the
|
|
29
|
+
* `solid` one, for the reason `badge` recorded: `solid` is the color of
|
|
30
30
|
* the surface itself in all three schemes, so a filled neutral chip and a
|
|
31
31
|
* tinted one were the same rectangle and neither read as filled.
|
|
32
32
|
*/
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
* What a filled chip draws around itself, and for four of the five tones
|
|
44
44
|
* the answer is its own fill: the edge is the ground, so the chip is one
|
|
45
45
|
* shape. `secondary` overrides it below, because its fill is the page's
|
|
46
|
-
* own
|
|
46
|
+
* own color in `high-contrast` and a chip with neither edge nor contrast
|
|
47
47
|
* is a run of text.
|
|
48
48
|
*/
|
|
49
49
|
--_edge: var(--_solid);
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
*/
|
|
133
133
|
max-inline-size: 100%;
|
|
134
134
|
min-block-size: var(--_block-size);
|
|
135
|
-
/* Written inside a sentence, a tag sits on the text's
|
|
135
|
+
/* Written inside a sentence, a tag sits on the text's center. */
|
|
136
136
|
vertical-align: middle;
|
|
137
137
|
white-space: nowrap;
|
|
138
138
|
}
|
|
@@ -152,10 +152,10 @@
|
|
|
152
152
|
display: none;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
/* ── Tone: which of the five semantic
|
|
155
|
+
/* ── Tone: which of the five semantic colors the tag speaks in ────────── */
|
|
156
156
|
|
|
157
157
|
/**
|
|
158
|
-
* The one tone whose fill is the
|
|
158
|
+
* The one tone whose fill is the color of the page. It keeps the tone's own
|
|
159
159
|
* border, where the other four let their fill be their edge.
|
|
160
160
|
*/
|
|
161
161
|
[data-ui-tag][data-part-root][data-tone='secondary'] {
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
|
|
332
332
|
/**
|
|
333
333
|
* A body followed by a remove control gives back most of its trailing inset.
|
|
334
|
-
* The control is a square as tall as the chip, so its own
|
|
334
|
+
* The control is a square as tall as the chip, so its own centering already
|
|
335
335
|
* puts seven pixels between the words and the glyph at the medium step; the
|
|
336
336
|
* full inset on top of that made the label sit closer to the start edge than
|
|
337
337
|
* to the X, which the capture of a one-character chip showed as a pill made
|
|
@@ -371,10 +371,10 @@
|
|
|
371
371
|
@supports (text-box: trim-both cap alphabetic) {
|
|
372
372
|
[data-ui-tag] [data-part-label] {
|
|
373
373
|
/**
|
|
374
|
-
* The line box a flex container
|
|
374
|
+
* The line box a flex container centers is not symmetric around the
|
|
375
375
|
* letters inside it: the ascender reaches further above the cap than the
|
|
376
376
|
* descender reaches below the baseline, so a word with no descender sits
|
|
377
|
-
* high in its chip and a word with one looks right. `text-box`
|
|
377
|
+
* high in its chip and a word with one looks right. `text-box` centers
|
|
378
378
|
* the ink instead of the font's metrics.
|
|
379
379
|
*
|
|
380
380
|
* The padding gives `overflow: hidden` room for the descenders and the
|
|
@@ -420,7 +420,7 @@
|
|
|
420
420
|
/**
|
|
421
421
|
* ── The selection mark ─────────────────────────────────────────────────
|
|
422
422
|
*
|
|
423
|
-
* A selected chip changes its ground, and a ground is a
|
|
423
|
+
* A selected chip changes its ground, and a ground is a color. WCAG 2.2
|
|
424
424
|
* 1.4.1 asks for a second signal, so the check is drawn as well — the
|
|
425
425
|
* `check` glyph the binding renders in an icon box, never a character.
|
|
426
426
|
*
|
|
@@ -438,7 +438,7 @@
|
|
|
438
438
|
display: inline-flex;
|
|
439
439
|
flex: none;
|
|
440
440
|
inline-size: 0;
|
|
441
|
-
/* The icon keeps its size while the box grows round it,
|
|
441
|
+
/* The icon keeps its size while the box grows round it, centerd and
|
|
442
442
|
clipped, so the check is uncovered from its middle outwards. */
|
|
443
443
|
justify-content: center;
|
|
444
444
|
/* A flex gap is drawn beside a zero-width item as readily as beside a wide
|
|
@@ -571,10 +571,10 @@
|
|
|
571
571
|
* tinted role either lightened or did nothing, and the first hover capture
|
|
572
572
|
* showed the remove segment reading paler than the chip it sits in.
|
|
573
573
|
*
|
|
574
|
-
* Its step is a state layer instead: the chip's own text
|
|
574
|
+
* Its step is a state layer instead: the chip's own text color, at a low
|
|
575
575
|
* strength, over whatever ground it already has. It darkens a tinted chip
|
|
576
576
|
* and never depends on a role the foundation does not carry. The cost is
|
|
577
|
-
* that a theme retunes it by strength rather than by
|
|
577
|
+
* that a theme retunes it by strength rather than by color, which is what
|
|
578
578
|
* the two component tokens are for.
|
|
579
579
|
*/
|
|
580
580
|
|
|
@@ -718,7 +718,7 @@
|
|
|
718
718
|
|
|
719
719
|
/**
|
|
720
720
|
* A remove control the consumer disabled on its own, inside a chip that is
|
|
721
|
-
* otherwise operable. It loses its
|
|
721
|
+
* otherwise operable. It loses its color rather than the whole chip's.
|
|
722
722
|
*/
|
|
723
723
|
[data-ui-tag] [data-part-remove]:disabled {
|
|
724
724
|
color: var(--slotted-disabled-foreground, GrayText);
|
|
@@ -757,7 +757,7 @@
|
|
|
757
757
|
}
|
|
758
758
|
|
|
759
759
|
/**
|
|
760
|
-
* ── Forced
|
|
760
|
+
* ── Forced colors ─────────────────────────────────────────────────────
|
|
761
761
|
*
|
|
762
762
|
* The one place a family may write its own rule. The theme maps every tone
|
|
763
763
|
* ground to `ButtonFace` or `Canvas` and every tone border to
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
* **An invalid value is a chip with a mark.** The tone is `tag`'s `danger`,
|
|
37
37
|
* written in the DOM; the alert glyph in the chip's `start` slot is the
|
|
38
38
|
* `Glyph` element the binding renders there, because `tag` has no opinion
|
|
39
|
-
* about what a slot holds.
|
|
39
|
+
* about what a slot holds. Color, mark and — in the tree — a description,
|
|
40
40
|
* which is what §2.5 asks of an invalid state.
|
|
41
41
|
*
|
|
42
42
|
* **A collapsed row opens where the reader is.** Under `overflow='collapse'`
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
* each — which is why the grid answers neither `ArrowDown` nor `ArrowUp`.
|
|
159
159
|
*/
|
|
160
160
|
[data-ui-tags-input] [data-part-chips] {
|
|
161
|
-
/* `safe`, because this box scrolls:
|
|
161
|
+
/* `safe`, because this box scrolls: centering a scroll container's content
|
|
162
162
|
pushes the first line above the scrollport when there is more than fits,
|
|
163
163
|
and nothing can scroll back to it. `multi-select` found the first three
|
|
164
164
|
chips unreachable at 240 pixels without it. */
|
|
@@ -313,7 +313,7 @@
|
|
|
313
313
|
* inset shadow is the only way to reach it. The signal is kept rather than
|
|
314
314
|
* erased, in the accent surface the theme owns, and it is the whole
|
|
315
315
|
* control's: the frame takes the tint under its border and inside its
|
|
316
|
-
* corner, and the input repaints the browser's ground in the same
|
|
316
|
+
* corner, and the input repaints the browser's ground in the same color.
|
|
317
317
|
* Painted on the input alone, the tint left the frame's padding, the slots
|
|
318
318
|
* and the buttons bare.
|
|
319
319
|
*/
|
|
@@ -343,7 +343,7 @@
|
|
|
343
343
|
* pixels past the chip; a ring two pixels further out lost its outer half on
|
|
344
344
|
* every side, at every density. One width inside is `listbox`'s answer for an
|
|
345
345
|
* option in a scrolling list: the ring covers the chip's own edge and reads
|
|
346
|
-
* as the chip's edge turned to the ring
|
|
346
|
+
* as the chip's edge turned to the ring color, whole, with the text clear
|
|
347
347
|
* of it even at `dense`, where the chip has no inset to spare. `tag` draws
|
|
348
348
|
* its own inner ring two widths in to keep a sliver of ground outside it;
|
|
349
349
|
* here that sliver would cost the text its leading.
|
|
@@ -635,7 +635,7 @@
|
|
|
635
635
|
|
|
636
636
|
border-color: var(--slotted-tags-input-invalid-border-color, var(--slotted-tone-danger-border));
|
|
637
637
|
/*
|
|
638
|
-
* Width as well as
|
|
638
|
+
* Width as well as color (WCAG 1.4.1), the edge `text-field` draws: in
|
|
639
639
|
* `high-contrast` the danger border is the resting edge's black. The line
|
|
640
640
|
* is a shadow inside the border, so neither box nor text moves, and it
|
|
641
641
|
* takes the resting lift's place.
|
|
@@ -670,7 +670,7 @@
|
|
|
670
670
|
}
|
|
671
671
|
|
|
672
672
|
/*
|
|
673
|
-
* Forced
|
|
673
|
+
* Forced colors remove every box shadow, and the edge with them. The
|
|
674
674
|
* width comes back as an outline inside the border, and a focused invalid
|
|
675
675
|
* control draws its ring double, which a valid ring is not.
|
|
676
676
|
*/
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
* earlier rule aligned the glyph to the text's margin and left the hover
|
|
128
128
|
* ground nine pixels from the end and four from the top at `md`; ReUI's
|
|
129
129
|
* `c-input-group-11` measures four and four with a radius of seven inside
|
|
130
|
-
* ten
|
|
130
|
+
* ten.
|
|
131
131
|
*
|
|
132
132
|
* The cost is written down: at `md` the glyph now ends four pixels nearer
|
|
133
133
|
* the border than the text begins from it.
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
* inset shadow is the only way to reach it. The signal is kept rather than
|
|
200
200
|
* erased, in the accent surface the theme owns, and it is the whole
|
|
201
201
|
* control's: the frame takes the tint under its border and inside its
|
|
202
|
-
* corner, and the input repaints the browser's ground in the same
|
|
202
|
+
* corner, and the input repaints the browser's ground in the same color.
|
|
203
203
|
* Painted on the input alone, the tint left the frame's padding, the slots
|
|
204
204
|
* and the buttons bare, and covered the border the input overlaps by one width.
|
|
205
205
|
*/
|
|
@@ -301,7 +301,7 @@
|
|
|
301
301
|
|
|
302
302
|
/**
|
|
303
303
|
* The one rule the theme cannot write for the family. A transparent border
|
|
304
|
-
* has no system
|
|
304
|
+
* has no system color to be remapped to, so the `plain` control would lose
|
|
305
305
|
* its only edge exactly where an edge matters most.
|
|
306
306
|
*/
|
|
307
307
|
@media (forced-colors: active) {
|
|
@@ -459,15 +459,15 @@
|
|
|
459
459
|
|
|
460
460
|
/**
|
|
461
461
|
* Words and a mark in one button — a country code over its chevron, a model
|
|
462
|
-
* name, a notation. The mark is
|
|
462
|
+
* name, a notation. The mark is centerd on the band the letters occupy, not
|
|
463
463
|
* on the line box: the line box keeps room under the baseline for
|
|
464
|
-
* descenders, so a box
|
|
464
|
+
* descenders, so a box centerd in it sits low beside the letters — every
|
|
465
465
|
* chevron in these buttons did. The rule is the briefing's (_A mark beside a
|
|
466
466
|
* line of text is aligned to the text_), here in a grid: items share the
|
|
467
467
|
* baseline, the mark's synthesized baseline is its bottom edge, a negative
|
|
468
468
|
* start margin takes back the height it would add above the letters, and a
|
|
469
|
-
* translate puts its
|
|
470
|
-
* midpoint of the capitals' and the lowercase letters' own
|
|
469
|
+
* translate puts its center at `(1cap + 1ex) / 4` above the baseline — the
|
|
470
|
+
* midpoint of the capitals' and the lowercase letters' own centers.
|
|
471
471
|
*/
|
|
472
472
|
[data-ui-text-field]
|
|
473
473
|
> :is([data-part-start], [data-part-end])
|
|
@@ -736,9 +736,9 @@
|
|
|
736
736
|
*/
|
|
737
737
|
[data-ui-text-field][data-part-root]:has(> [data-part-input]:focus-visible) {
|
|
738
738
|
/**
|
|
739
|
-
* The resting shadow,
|
|
739
|
+
* The resting shadow, recolored. The geometry is the foundation's and the
|
|
740
740
|
* ink is the focus ring's, so the lift under the control and the ring
|
|
741
|
-
* around it are one
|
|
741
|
+
* around it are one color and the state decides which color that is.
|
|
742
742
|
*/
|
|
743
743
|
box-shadow: var(--slotted-control-shadow-focus-geometry, 0 1px 4px -1px)
|
|
744
744
|
var(--slotted-focus-ring-color, Highlight);
|
|
@@ -768,7 +768,7 @@
|
|
|
768
768
|
* The ring is retargeted rather than repainted. Every rule that draws focus —
|
|
769
769
|
* the frame's outline, the shadow under it, the ring on either button — reads
|
|
770
770
|
* `--slotted-focus-ring-color`, so pointing that one name at the invalid
|
|
771
|
-
*
|
|
771
|
+
* color on the element moves all of them at once. That is the whole of the
|
|
772
772
|
* rule for a family, and it is the rule `checkbox`, `radio-group` and
|
|
773
773
|
* `switch` inherit rather than restate when they arrive.
|
|
774
774
|
*/
|
|
@@ -789,7 +789,7 @@
|
|
|
789
789
|
|
|
790
790
|
border-color: var(--slotted-text-field-invalid-border-color, var(--slotted-tone-danger-border));
|
|
791
791
|
/*
|
|
792
|
-
*
|
|
792
|
+
* Color alone does not say the field is wrong (WCAG 1.4.1): in
|
|
793
793
|
* `high-contrast` the edge at rest, the danger border and both rings are
|
|
794
794
|
* one black. An edge inside the border makes the invalid line thicker in
|
|
795
795
|
* every scheme. It is a shadow rather than a wider border, so the box and
|
|
@@ -820,7 +820,7 @@
|
|
|
820
820
|
}
|
|
821
821
|
|
|
822
822
|
/*
|
|
823
|
-
* Forced
|
|
823
|
+
* Forced colors remove every box shadow, and the edge with them. The
|
|
824
824
|
* width comes back as an outline inside the border, and a focused invalid
|
|
825
825
|
* control draws its ring double, which a valid ring is not.
|
|
826
826
|
*/
|
|
@@ -887,7 +887,7 @@
|
|
|
887
887
|
}
|
|
888
888
|
|
|
889
889
|
/**
|
|
890
|
-
* Muted to the
|
|
890
|
+
* Muted to the color the theme measures rather than faded by opacity: a
|
|
891
891
|
* value nobody can read is a field nobody can check, and a disabled form
|
|
892
892
|
* still has to say what it holds.
|
|
893
893
|
*/
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
box-shadow: none;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
/** A transparent border has no system
|
|
147
|
+
/** A transparent border has no system color to be remapped to. */
|
|
148
148
|
@media (forced-colors: active) {
|
|
149
149
|
[data-ui-textarea][data-part-root][data-variant='plain'] {
|
|
150
150
|
border-color: ButtonBorder;
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
[data-ui-textarea][data-part-root]:focus-visible {
|
|
241
|
-
/** Foundation geometry, focus-ring ink: the lift and the ring are one
|
|
241
|
+
/** Foundation geometry, focus-ring ink: the lift and the ring are one color. */
|
|
242
242
|
box-shadow: var(--slotted-control-shadow-focus-geometry, 0 1px 4px -1px)
|
|
243
243
|
var(--slotted-focus-ring-color, Highlight);
|
|
244
244
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
/**
|
|
261
261
|
* The ring is retargeted rather than repainted: every rule that draws focus
|
|
262
262
|
* reads `--slotted-focus-ring-color`, so pointing that one name at the
|
|
263
|
-
* invalid
|
|
263
|
+
* invalid color on the element moves the outline and the shadow together.
|
|
264
264
|
*/
|
|
265
265
|
[data-ui-textarea][data-part-root][data-invalid] {
|
|
266
266
|
--slotted-focus-ring-color: var(
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
|
|
280
280
|
border-color: var(--slotted-textarea-invalid-border-color, var(--slotted-tone-danger-border));
|
|
281
281
|
/*
|
|
282
|
-
* Width as well as
|
|
282
|
+
* Width as well as color (WCAG 1.4.1), the edge `text-field` draws: in
|
|
283
283
|
* `high-contrast` the danger border is the resting edge's black. The line
|
|
284
284
|
* is a shadow inside the border, so neither box nor text moves, and it
|
|
285
285
|
* takes the resting lift's place.
|
|
@@ -306,7 +306,7 @@
|
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
/*
|
|
309
|
-
* Forced
|
|
309
|
+
* Forced colors remove every box shadow, and the edge with them. The
|
|
310
310
|
* width comes back as an outline inside the border, and a focused invalid
|
|
311
311
|
* control draws its ring double, which a valid ring is not.
|
|
312
312
|
*/
|
|
@@ -262,7 +262,7 @@
|
|
|
262
262
|
/**
|
|
263
263
|
* One line box, not a flex row. The chevron sits *in* the line rather than
|
|
264
264
|
* beside it, which is the only way it can be aligned to the text at all —
|
|
265
|
-
* a flex box
|
|
265
|
+
* a flex box centers its children on the whole line box, and the letters
|
|
266
266
|
* do not live in the middle of that.
|
|
267
267
|
*/
|
|
268
268
|
--_mark: 1cap;
|
|
@@ -279,12 +279,12 @@
|
|
|
279
279
|
*
|
|
280
280
|
* Two things were wrong and only together: it was drawn at the control glyph
|
|
281
281
|
* size — sixteen pixels of chevron beside a nine-pixel capital, which is a
|
|
282
|
-
* control's mark standing in a sentence — and it was
|
|
282
|
+
* control's mark standing in a sentence — and it was centerd on the line box
|
|
283
283
|
* rather than on the band the letters occupy, so it read high. `1cap` is the
|
|
284
284
|
* size `status-indicator` already uses for a mark inside a line of text, and
|
|
285
285
|
* the `vertical-align` is the formula `docs/build-briefing.md` records under
|
|
286
286
|
* _Decisions already taken_: half the difference between the band and the
|
|
287
|
-
* mark, which lands the mark's
|
|
287
|
+
* mark, which lands the mark's center on the middle of the band.
|
|
288
288
|
*
|
|
289
289
|
* The band is the midpoint of cap and x-height, which is the one `toast`
|
|
290
290
|
* chose after reading all three at four times the type size: `1cap` alone
|
|
@@ -305,7 +305,7 @@
|
|
|
305
305
|
/**
|
|
306
306
|
* A duration that ran past midnight. It resolves into a different day, and
|
|
307
307
|
* this library holds no day beside a time — so the preview changes tone and
|
|
308
|
-
* the family writes the day beside the time.
|
|
308
|
+
* the family writes the day beside the time. Color alone never says it:
|
|
309
309
|
* `docs/component-features.md` §2.5 refuses that, and a reader on a screen
|
|
310
310
|
* reader hears the same words the sighted reader sees.
|
|
311
311
|
*/
|
|
@@ -592,7 +592,7 @@
|
|
|
592
592
|
|
|
593
593
|
border-color: var(--slotted-time-field-invalid-border-color, var(--slotted-tone-danger-border));
|
|
594
594
|
/*
|
|
595
|
-
* Width as well as
|
|
595
|
+
* Width as well as color (WCAG 1.4.1), the edge `text-field` draws: in
|
|
596
596
|
* `high-contrast` the danger border is the resting edge's black. The line
|
|
597
597
|
* is a shadow inside the border, so neither box nor text moves, and it
|
|
598
598
|
* takes the resting lift's place.
|
|
@@ -625,7 +625,7 @@
|
|
|
625
625
|
}
|
|
626
626
|
|
|
627
627
|
/*
|
|
628
|
-
* Forced
|
|
628
|
+
* Forced colors remove every box shadow, and the edge with them. The
|
|
629
629
|
* width comes back as an outline inside the border, and a focused invalid
|
|
630
630
|
* control draws its ring double, which a valid ring is not.
|
|
631
631
|
*/
|
|
@@ -680,7 +680,7 @@
|
|
|
680
680
|
}
|
|
681
681
|
|
|
682
682
|
/**
|
|
683
|
-
* Muted to the
|
|
683
|
+
* Muted to the color the theme measures rather than faded by opacity: a
|
|
684
684
|
* time nobody can read is a field nobody can check, and a disabled form
|
|
685
685
|
* still has to say what it holds.
|
|
686
686
|
*/
|
|
@@ -709,7 +709,7 @@
|
|
|
709
709
|
}
|
|
710
710
|
|
|
711
711
|
@media (forced-colors: active) {
|
|
712
|
-
/* A transparent border has no system
|
|
712
|
+
/* A transparent border has no system color to be remapped to, so the
|
|
713
713
|
`plain` control would lose its only edge where an edge matters most. */
|
|
714
714
|
[data-ui-time-field][data-part-root][data-variant='plain'] {
|
|
715
715
|
border-color: ButtonBorder;
|
|
@@ -568,7 +568,7 @@
|
|
|
568
568
|
* The chosen row still answers the pointer — one step along its own tone,
|
|
569
569
|
* rather than the grey every other row takes. Measured on the default theme:
|
|
570
570
|
* rgb(29 78 216) at rest and rgb(42 91 220) under the pointer, which is the
|
|
571
|
-
* same blue and a visible change. A row that swapped
|
|
571
|
+
* same blue and a visible change. A row that swapped color family under the
|
|
572
572
|
* pointer read as a different row, and that is the defect this pair replaces.
|
|
573
573
|
*/
|
|
574
574
|
[data-ui-time-picker] [data-part-option][data-selected]:hover:not([data-disabled]) {
|
|
@@ -581,7 +581,7 @@
|
|
|
581
581
|
/**
|
|
582
582
|
* A time a bound or the predicate refuses. It stays in the list by default,
|
|
583
583
|
* because a list that silently drops rows is a list whose step the reader
|
|
584
|
-
* cannot infer — and it is muted to the
|
|
584
|
+
* cannot infer — and it is muted to the color the theme measures rather
|
|
585
585
|
* than faded by opacity, so it stays readable.
|
|
586
586
|
*/
|
|
587
587
|
[data-ui-time-picker] [data-part-option][data-disabled] {
|
|
@@ -668,7 +668,7 @@
|
|
|
668
668
|
|
|
669
669
|
/**
|
|
670
670
|
* The grip every bottom sheet carries, in the drawer's geometry and line
|
|
671
|
-
*
|
|
671
|
+
* color: a pill three rem by a quarter, centerd in a row one target tall
|
|
672
672
|
* that the content keeps clear at its top. A pull down on it dismisses the
|
|
673
673
|
* sheet; Escape and the press outside stay the accessible ways out.
|
|
674
674
|
*/
|
|
@@ -213,7 +213,7 @@
|
|
|
213
213
|
[data-ui-time-range-picker] [data-part-trigger] > [data-ui-icon] {
|
|
214
214
|
--slotted-icon-size: var(--_icon-size);
|
|
215
215
|
|
|
216
|
-
/* No system-
|
|
216
|
+
/* No system-color fallback on a decoration: unthemed, it takes the
|
|
217
217
|
trigger's ink rather than shouts. */
|
|
218
218
|
color: var(--slotted-time-range-picker-action-color, var(--slotted-text-muted));
|
|
219
219
|
inset-block-start: 50%;
|
|
@@ -379,7 +379,7 @@
|
|
|
379
379
|
var(--slotted-tone-danger-border)
|
|
380
380
|
);
|
|
381
381
|
/*
|
|
382
|
-
* Width as well as
|
|
382
|
+
* Width as well as color (WCAG 1.4.1), the edge `text-field` draws: in
|
|
383
383
|
* `high-contrast` the danger border is the resting edge's black. The line
|
|
384
384
|
* is a shadow inside the border, so neither box nor text moves, and it
|
|
385
385
|
* takes the resting lift's place.
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
}
|
|
408
408
|
|
|
409
409
|
/*
|
|
410
|
-
* Forced
|
|
410
|
+
* Forced colors remove every box shadow, and the edge with them. The
|
|
411
411
|
* width comes back as an outline inside the border, and a focused invalid
|
|
412
412
|
* control draws its ring double, which a valid ring is not.
|
|
413
413
|
*/
|
|
@@ -444,7 +444,7 @@
|
|
|
444
444
|
cursor: default;
|
|
445
445
|
}
|
|
446
446
|
|
|
447
|
-
/* Muted to the
|
|
447
|
+
/* Muted to the color the theme measures rather than faded by opacity. */
|
|
448
448
|
[data-ui-time-range-picker][data-part-root][data-disabled] [data-part-control] {
|
|
449
449
|
background-color: var(
|
|
450
450
|
--slotted-time-range-picker-disabled-background,
|
|
@@ -1001,7 +1001,7 @@
|
|
|
1001
1001
|
[data-ui-time-range-picker] [data-part-option] {
|
|
1002
1002
|
/* The time and its duration share a baseline, and the line box is the
|
|
1003
1003
|
row: baseline alignment alone would seat both at the top of a row
|
|
1004
|
-
taller than one line, and a length line-height
|
|
1004
|
+
taller than one line, and a length line-height centers them in it. */
|
|
1005
1005
|
align-items: baseline;
|
|
1006
1006
|
background-color: transparent;
|
|
1007
1007
|
border-radius: var(--slotted-time-range-picker-option-radius, var(--slotted-radius-sm, 4px));
|
|
@@ -1098,7 +1098,7 @@
|
|
|
1098
1098
|
/**
|
|
1099
1099
|
* A time a bound, the predicate or the other end refuses. It stays in the
|
|
1100
1100
|
* list by default, because a list that silently drops rows is a list whose
|
|
1101
|
-
* step the reader cannot infer — and it is muted to the
|
|
1101
|
+
* step the reader cannot infer — and it is muted to the color the theme
|
|
1102
1102
|
* measures rather than faded by opacity, so it stays readable.
|
|
1103
1103
|
*/
|
|
1104
1104
|
[data-ui-time-range-picker] [data-part-option][data-disabled] {
|
|
@@ -1253,7 +1253,7 @@
|
|
|
1253
1253
|
|
|
1254
1254
|
/**
|
|
1255
1255
|
* The grip every bottom sheet carries, in the drawer's geometry and line
|
|
1256
|
-
*
|
|
1256
|
+
* color: a pill three rem by a quarter, centerd in a row one target tall
|
|
1257
1257
|
* that the content keeps clear at its top. A pull down on it dismisses the
|
|
1258
1258
|
* sheet; Escape and the press outside stay the accessible ways out.
|
|
1259
1259
|
*/
|
|
@@ -1290,7 +1290,7 @@
|
|
|
1290
1290
|
border-color: ButtonBorder;
|
|
1291
1291
|
}
|
|
1292
1292
|
|
|
1293
|
-
/* The tab's underline is painted with a background, and forced
|
|
1293
|
+
/* The tab's underline is painted with a background, and forced colors
|
|
1294
1294
|
replace a background that is not one of the system's own. */
|
|
1295
1295
|
[data-ui-time-range-picker] [data-part-tab]::after {
|
|
1296
1296
|
forced-color-adjust: none;
|