@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
|
@@ -463,7 +463,7 @@
|
|
|
463
463
|
* It is drawn as a control and not as a link. `time-picker` writes its own
|
|
464
464
|
* `now` as accent text, and alone at the head of a single list that reads
|
|
465
465
|
* correctly; here it stands at the end of a band opposite a title, where bare
|
|
466
|
-
*
|
|
466
|
+
* colored text is a third register beside the panel's plain ink and its one
|
|
467
467
|
* solid accent block — it read as a stray link rather than as the shortcut it
|
|
468
468
|
* is. A quiet bordered control at the small step is the shape the library
|
|
469
469
|
* already gives an action of this weight, and the divergence from the sibling
|
|
@@ -514,7 +514,7 @@
|
|
|
514
514
|
* as one control with a glyph rather than as two things of equal weight.
|
|
515
515
|
*/
|
|
516
516
|
[data-ui-datetime-picker] [data-part-now] > [data-ui-icon] {
|
|
517
|
-
/* No system
|
|
517
|
+
/* No system color: a theme that never loaded should let the mark take the
|
|
518
518
|
label's ink rather than the operating system's own grey, which is the
|
|
519
519
|
rule `fallbacks.test.mjs` holds. */
|
|
520
520
|
color: var(--slotted-datetime-picker-now-icon-color, var(--slotted-text-muted));
|
|
@@ -735,7 +735,7 @@
|
|
|
735
735
|
}
|
|
736
736
|
|
|
737
737
|
/* The chosen row still answers the pointer — one step along its own tone,
|
|
738
|
-
rather than the grey every other row takes. A row that swapped
|
|
738
|
+
rather than the grey every other row takes. A row that swapped color
|
|
739
739
|
family under the pointer read as a different row. */
|
|
740
740
|
[data-ui-datetime-picker] [data-part-option][data-selected]:hover:not([data-disabled]) {
|
|
741
741
|
background-color: var(
|
|
@@ -747,7 +747,7 @@
|
|
|
747
747
|
/**
|
|
748
748
|
* A time a bound or a predicate refuses. It stays in the list by default,
|
|
749
749
|
* because a list that silently drops rows is a list whose step the reader
|
|
750
|
-
* cannot infer — and it is muted to the
|
|
750
|
+
* cannot infer — and it is muted to the color the theme measures rather than
|
|
751
751
|
* faded by opacity, so it stays readable.
|
|
752
752
|
*/
|
|
753
753
|
[data-ui-datetime-picker] [data-part-option][data-disabled] {
|
|
@@ -840,7 +840,7 @@
|
|
|
840
840
|
|
|
841
841
|
/**
|
|
842
842
|
* The grip every bottom sheet carries, in the drawer's geometry and line
|
|
843
|
-
*
|
|
843
|
+
* color: a pill three rem by a quarter, centerd in a row one target tall
|
|
844
844
|
* that the content keeps clear at its top. A pull down on it dismisses the
|
|
845
845
|
* sheet; Escape and the press outside stay the accessible ways out.
|
|
846
846
|
*/
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
[data-ui-datetime-range-picker] [data-part-trigger] > [data-ui-icon] {
|
|
217
217
|
--slotted-icon-size: var(--_icon-size);
|
|
218
218
|
|
|
219
|
-
/* No system-
|
|
219
|
+
/* No system-color fallback on a decoration: unthemed, it takes the
|
|
220
220
|
trigger's ink rather than shouts. */
|
|
221
221
|
color: var(--slotted-datetime-range-picker-action-color, var(--slotted-text-muted));
|
|
222
222
|
inset-block-start: 50%;
|
|
@@ -382,7 +382,7 @@
|
|
|
382
382
|
var(--slotted-tone-danger-border)
|
|
383
383
|
);
|
|
384
384
|
/*
|
|
385
|
-
* Width as well as
|
|
385
|
+
* Width as well as color (WCAG 1.4.1), the edge `text-field` draws: in
|
|
386
386
|
* `high-contrast` the danger border is the resting edge's black. The line
|
|
387
387
|
* is a shadow inside the border, so neither box nor text moves, and it
|
|
388
388
|
* takes the resting lift's place.
|
|
@@ -410,7 +410,7 @@
|
|
|
410
410
|
}
|
|
411
411
|
|
|
412
412
|
/*
|
|
413
|
-
* Forced
|
|
413
|
+
* Forced colors remove every box shadow, and the edge with them. The
|
|
414
414
|
* width comes back as an outline inside the border, and a focused invalid
|
|
415
415
|
* control draws its ring double, which a valid ring is not.
|
|
416
416
|
*/
|
|
@@ -447,7 +447,7 @@
|
|
|
447
447
|
cursor: default;
|
|
448
448
|
}
|
|
449
449
|
|
|
450
|
-
/* Muted to the
|
|
450
|
+
/* Muted to the color the theme measures rather than faded by opacity. */
|
|
451
451
|
[data-ui-datetime-range-picker][data-part-root][data-disabled] [data-part-control] {
|
|
452
452
|
background-color: var(
|
|
453
453
|
--slotted-datetime-range-picker-disabled-background,
|
|
@@ -1060,7 +1060,7 @@
|
|
|
1060
1060
|
[data-ui-datetime-range-picker] [data-part-option] {
|
|
1061
1061
|
/* The time and its duration share a baseline, and the line box is the
|
|
1062
1062
|
row: baseline alignment alone would seat both at the top of a row
|
|
1063
|
-
taller than one line, and a length line-height
|
|
1063
|
+
taller than one line, and a length line-height centers them in it. */
|
|
1064
1064
|
align-items: baseline;
|
|
1065
1065
|
background-color: transparent;
|
|
1066
1066
|
border-radius: var(
|
|
@@ -1160,7 +1160,7 @@
|
|
|
1160
1160
|
/**
|
|
1161
1161
|
* A time a bound, the predicate or the other end refuses. It stays in the
|
|
1162
1162
|
* list by default, because a list that silently drops rows is a list whose
|
|
1163
|
-
* step the reader cannot infer — and it is muted to the
|
|
1163
|
+
* step the reader cannot infer — and it is muted to the color the theme
|
|
1164
1164
|
* measures rather than faded by opacity, so it stays readable.
|
|
1165
1165
|
*/
|
|
1166
1166
|
[data-ui-datetime-range-picker] [data-part-option][data-disabled] {
|
|
@@ -1341,7 +1341,7 @@
|
|
|
1341
1341
|
|
|
1342
1342
|
/**
|
|
1343
1343
|
* The grip every bottom sheet carries, in the drawer's geometry and line
|
|
1344
|
-
*
|
|
1344
|
+
* color: a pill three rem by a quarter, centerd in a row one target tall
|
|
1345
1345
|
* that the content keeps clear at its top. A pull down on it dismisses the
|
|
1346
1346
|
* sheet; Escape and the press outside stay the accessible ways out.
|
|
1347
1347
|
*/
|
|
@@ -1378,7 +1378,7 @@
|
|
|
1378
1378
|
border-color: ButtonBorder;
|
|
1379
1379
|
}
|
|
1380
1380
|
|
|
1381
|
-
/* The tab's underline is painted with a background, and forced
|
|
1381
|
+
/* The tab's underline is painted with a background, and forced colors
|
|
1382
1382
|
replace a background that is not one of the system's own. */
|
|
1383
1383
|
[data-ui-datetime-range-picker] [data-part-tab]::after {
|
|
1384
1384
|
forced-color-adjust: none;
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
[data-ui-description-list] [data-part-list] {
|
|
43
|
-
/* ── The
|
|
43
|
+
/* ── The colors ─────────────────────────────────────────────────── */
|
|
44
44
|
--_ink: var(--slotted-description-list-color, var(--slotted-text, CanvasText));
|
|
45
45
|
--_term-ink: var(--slotted-description-list-term-color, var(--slotted-text-muted, GrayText));
|
|
46
46
|
--_hint-ink: var(--slotted-description-list-hint-color, var(--slotted-text-muted, GrayText));
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
* The mark standing in for a missing value, held on the list rather than
|
|
55
55
|
* stated inside the pseudo-element that paints it: an unthemed decoration
|
|
56
56
|
* should disappear rather than shout, which is why
|
|
57
|
-
* `packages/styles/src/fallbacks.test.mjs` refuses a system
|
|
57
|
+
* `packages/styles/src/fallbacks.test.mjs` refuses a system color inside a
|
|
58
58
|
* `::before` or `::after` rule. Reading it through one property keeps the
|
|
59
59
|
* last resort where the theme's own tokens are.
|
|
60
60
|
*/
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
* The distance between a term and the value under it, which is three times
|
|
109
109
|
* the distance between a term and its own hint: without that ratio the
|
|
110
110
|
* three lines of a stacked pair read as one paragraph and the reader has to
|
|
111
|
-
* find the value by its
|
|
111
|
+
* find the value by its color alone.
|
|
112
112
|
*/
|
|
113
113
|
--_stack-gap: var(--slotted-description-list-stack-gap, var(--slotted-space-3, 0.375rem));
|
|
114
114
|
--_pad-block: var(
|
|
@@ -438,7 +438,7 @@
|
|
|
438
438
|
}
|
|
439
439
|
|
|
440
440
|
/**
|
|
441
|
-
* A copy that finished. The mark changes as well as the
|
|
441
|
+
* A copy that finished. The mark changes as well as the color — the binding
|
|
442
442
|
* draws the check `Glyph` in place of the copy one — because a green
|
|
443
443
|
* clipboard says nothing to a reader who cannot see the green, and the
|
|
444
444
|
* control returns to rest on its own, so nothing is left claiming a state
|
|
@@ -449,7 +449,7 @@
|
|
|
449
449
|
}
|
|
450
450
|
|
|
451
451
|
/* On a finger the target is the comfortable size in both axes and the box
|
|
452
|
-
is the one a mouse sees: a transparent `::before`
|
|
452
|
+
is the one a mouse sees: a transparent `::before` centerd on the control
|
|
453
453
|
reaches 44 pixels, and the ground and the ring stay square. The row keeps
|
|
454
454
|
its rhythm, because the halo takes no room. */
|
|
455
455
|
@media (pointer: coarse) {
|
|
@@ -332,7 +332,7 @@
|
|
|
332
332
|
/**
|
|
333
333
|
* A theme draws the footer as a material with its own ground and filter,
|
|
334
334
|
* apart from the ground a sticky section header reads. A reader who asked
|
|
335
|
-
* for less transparency gets no filter, and under forced
|
|
335
|
+
* for less transparency gets no filter, and under forced colors the ground
|
|
336
336
|
* is the system's.
|
|
337
337
|
*/
|
|
338
338
|
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
|
package/src/dialog/dialog.css
CHANGED
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
|
|
226
226
|
/**
|
|
227
227
|
* `--slotted-scrim` is a foundation token the theme restates per scheme and
|
|
228
|
-
* remaps to `Canvas` under forced
|
|
228
|
+
* remaps to `Canvas` under forced colors, where it becomes an opaque ground.
|
|
229
229
|
* That is why the panel below carries a border of its own: every shadow token
|
|
230
230
|
* is `none` in that mode, and a panel separated only by elevation would sit
|
|
231
231
|
* on an opaque ground with nothing to mark its edge.
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
/* ── The box the panel sits in ────────────────────────────────────────── */
|
|
259
259
|
|
|
260
260
|
/**
|
|
261
|
-
* `safe center` rather than `center`. A panel taller than the layer,
|
|
261
|
+
* `safe center` rather than `center`. A panel taller than the layer, centerd
|
|
262
262
|
* by the unsafe keyword, overflows equally at both ends — and the end that
|
|
263
263
|
* carries the title is the one that leaves the screen. `safe` aligns to the
|
|
264
264
|
* start edge as soon as the item cannot fit, which is the only reading that
|
|
@@ -329,7 +329,7 @@
|
|
|
329
329
|
* `#1c1c20` panel, a jump of eighty-five per channel, and it read as a
|
|
330
330
|
* drawn stroke around every dialog.
|
|
331
331
|
*
|
|
332
|
-
* Forced
|
|
332
|
+
* Forced colors is where an edge does have to carry the separation, since
|
|
333
333
|
* `--slotted-scrim` becomes an opaque `Canvas` there and every shadow token
|
|
334
334
|
* becomes `none`. The rule at the end of this file is that case, and it
|
|
335
335
|
* thickens the border to say so.
|
|
@@ -357,7 +357,7 @@
|
|
|
357
357
|
* frame it is between two of them: measured, eleven of the twelve frames
|
|
358
358
|
* of the movement landed on a fractional position — 32.305, 32.973,
|
|
359
359
|
* 33.326 — and the reader sees the words lose their edges and get them
|
|
360
|
-
* back. A
|
|
360
|
+
* back. A centerd panel has nothing for the movement to be *from* either,
|
|
361
361
|
* which is what the first draft of this rule said before the travel was
|
|
362
362
|
* written into it.
|
|
363
363
|
*
|
|
@@ -498,7 +498,7 @@
|
|
|
498
498
|
grid-column: 2;
|
|
499
499
|
/**
|
|
500
500
|
* `start`, not the grid's own `stretch`. A badge stretched across the words
|
|
501
|
-
* column paints its ground the full width and
|
|
501
|
+
* column paints its ground the full width and centers its label in it,
|
|
502
502
|
* which is what the first capture showed. The five placed parts are excluded
|
|
503
503
|
* by name rather than by `:not([data-part])`, because what a consumer puts
|
|
504
504
|
* here is usually another family and that carries a `data-part` of its own.
|
|
@@ -510,10 +510,10 @@
|
|
|
510
510
|
|
|
511
511
|
/**
|
|
512
512
|
* Real geometry: the binding draws the tone's own `Glyph` inside an `icon`
|
|
513
|
-
* box, and the slot gives it the tone's text
|
|
514
|
-
* WCAG 2.2 SC 1.4.1 asks that
|
|
513
|
+
* box, and the slot gives it the tone's text color and the mark's size.
|
|
514
|
+
* WCAG 2.2 SC 1.4.1 asks that color not be the only carrier, and a
|
|
515
515
|
* destructive confirmation is the place that matters most: under forced
|
|
516
|
-
*
|
|
516
|
+
* colors every tone becomes one system color and the silhouette is all
|
|
517
517
|
* that is left.
|
|
518
518
|
*/
|
|
519
519
|
[data-ui-dialog]
|
|
@@ -614,7 +614,7 @@
|
|
|
614
614
|
/**
|
|
615
615
|
* `overflow-wrap: anywhere` and a zero minimum are the pair that answer a
|
|
616
616
|
* hostile string. A ninety-character unbroken token in a title widens the
|
|
617
|
-
* panel past the layer, and the panel is
|
|
617
|
+
* panel past the layer, and the panel is centerd, so both of its edges leave
|
|
618
618
|
* the screen at once.
|
|
619
619
|
*/
|
|
620
620
|
@scope ([data-ui-dialog] > [data-part-viewport] > [data-part-content]) to ([data-ui]:not(
|
|
@@ -650,8 +650,8 @@
|
|
|
650
650
|
/**
|
|
651
651
|
* The name of the thing the dialog acts on. A confirmation says which
|
|
652
652
|
* project or which member it removes, and a consumer marks that name with
|
|
653
|
-
* `strong`; left to the user agent it was bold in the muted
|
|
654
|
-
* than the title and no easier to find. It takes the title's
|
|
653
|
+
* `strong`; left to the user agent it was bold in the muted color, heavier
|
|
654
|
+
* than the title and no easier to find. It takes the title's color and
|
|
655
655
|
* weight instead, which is what both product confirmations in the survey do
|
|
656
656
|
* with a span of their own.
|
|
657
657
|
*/
|
|
@@ -666,7 +666,7 @@
|
|
|
666
666
|
/**
|
|
667
667
|
* An inner control, not a button (R2): the box is the glyph plus a step of
|
|
668
668
|
* air on each side, floored at the WCAG 2.2 minimum, and the glyph is
|
|
669
|
-
*
|
|
669
|
+
* centerd in it. It was the control height before, a thirty-four pixel
|
|
670
670
|
* square beside an eighteen pixel mark. The glyph is the binding's `Glyph`
|
|
671
671
|
* in an `icon` box, sized here through the icon token so the box and the
|
|
672
672
|
* formula above read one length.
|
|
@@ -764,7 +764,7 @@
|
|
|
764
764
|
/**
|
|
765
765
|
* The reader's own control for taking the layer, and the same inner control
|
|
766
766
|
* the close is (R2): the box is the glyph plus a step of air on each side,
|
|
767
|
-
* floored at the WCAG 2.2 minimum, and the glyph is
|
|
767
|
+
* floored at the WCAG 2.2 minimum, and the glyph is centerd in it. The
|
|
768
768
|
* geometry is not chosen here — it is `--_close-size`, the one formula this
|
|
769
769
|
* family already states, so the two controls in the corner are one row of
|
|
770
770
|
* one size.
|
|
@@ -884,7 +884,7 @@
|
|
|
884
884
|
|
|
885
885
|
/**
|
|
886
886
|
* On a finger the target is the comfortable size in both axes and the box
|
|
887
|
-
* is the one a mouse sees: a transparent `::before`
|
|
887
|
+
* is the one a mouse sees: a transparent `::before` centerd on each control
|
|
888
888
|
* reaches 44 pixels, and the ground and the ring stay square. The two
|
|
889
889
|
* controls touch, so neither reaches across the edge they share.
|
|
890
890
|
*/
|
|
@@ -1199,7 +1199,7 @@
|
|
|
1199
1199
|
padding-block-end: var(--slotted-keyboard-inset, 0px);
|
|
1200
1200
|
}
|
|
1201
1201
|
|
|
1202
|
-
/* ── Forced
|
|
1202
|
+
/* ── Forced colors ───────────────────────────────────────────────────── */
|
|
1203
1203
|
|
|
1204
1204
|
/**
|
|
1205
1205
|
* The theme remaps every token this family reads, so the only rule here is
|
package/src/divider/divider.css
CHANGED
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
/**
|
|
75
75
|
* The halves grow into whatever the label leaves and never shrink past a
|
|
76
76
|
* stub: in a narrow container the label wraps and the rule still reads as a
|
|
77
|
-
* rule. Unthemed, they disappear rather than reaching for a system
|
|
77
|
+
* rule. Unthemed, they disappear rather than reaching for a system color,
|
|
78
78
|
* which is the right failure for decoration.
|
|
79
79
|
*/
|
|
80
80
|
[data-ui-divider][data-labelled]::before,
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
/**
|
|
107
107
|
* The label reads as metadata about the division, not as content of the
|
|
108
108
|
* section below it, so it takes the smallest step of the type scale and the
|
|
109
|
-
* muted text
|
|
109
|
+
* muted text color. It wraps before it overflows, and a single token longer
|
|
110
110
|
* than the container breaks rather than pushing the rule out of the layout.
|
|
111
111
|
*/
|
|
112
112
|
[data-ui-divider] [data-part-label] {
|
package/src/drawer/drawer.css
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
*
|
|
28
28
|
* The resizer is a four-pixel gutter whose pointer reach is
|
|
29
29
|
* `--slotted-target-min`, the WCAG 2.2 floor, drawn by a transparent
|
|
30
|
-
* pseudo-element
|
|
30
|
+
* pseudo-element centerd on it; it is a row of the panel's grid on a block
|
|
31
31
|
* side and an overlay on its inner edge on an inline side. The section that draws it says why the two
|
|
32
32
|
* differ; in one sentence, every rule in this panel runs across the inline
|
|
33
33
|
* axis, and a column would cut all of them.
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
* of nothing at rest, a two-pixel line under the hand, and a reach the
|
|
83
83
|
* pointer finds without the eye being told where it is.
|
|
84
84
|
*
|
|
85
|
-
* `--_resizer-reach` is the WCAG 2.2 floor and it is
|
|
85
|
+
* `--_resizer-reach` is the WCAG 2.2 floor and it is centerd on the
|
|
86
86
|
* gutter, so it takes ten pixels from each side rather than twenty from
|
|
87
87
|
* the panel — which is what keeps it off the header of a sheet.
|
|
88
88
|
*/
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
* showed it.
|
|
99
99
|
*
|
|
100
100
|
* It is `splitter`'s track, because the two families draw one picture and a
|
|
101
|
-
* picture is a geometry as much as a
|
|
101
|
+
* picture is a geometry as much as a color. The panel's rows already read
|
|
102
102
|
* this through `max(--_padding-inline, --_resizer-thickness)`, so widening
|
|
103
103
|
* it moves nothing else.
|
|
104
104
|
*/
|
|
@@ -307,7 +307,7 @@
|
|
|
307
307
|
|
|
308
308
|
/**
|
|
309
309
|
* `--slotted-scrim` is a foundation token the theme restates per scheme and
|
|
310
|
-
* remaps to `Canvas` under forced
|
|
310
|
+
* remaps to `Canvas` under forced colors, where it becomes an opaque ground.
|
|
311
311
|
* That is why the panel below carries an edge of its own: every shadow token
|
|
312
312
|
* is `none` in that mode, and a panel separated only by elevation would sit on
|
|
313
313
|
* an opaque ground with nothing marking where it starts.
|
|
@@ -582,7 +582,7 @@
|
|
|
582
582
|
|
|
583
583
|
/**
|
|
584
584
|
* A sheet on a wide layer is a card over the page, not a strip across it:
|
|
585
|
-
* forty rems, Material 3's 640 dp,
|
|
585
|
+
* forty rems, Material 3's 640 dp, centerd, with the scrim on both sides. The
|
|
586
586
|
* edge then shows on three sides, so the panel draws it on three. An overlay
|
|
587
587
|
* layer is the viewport, so at the sheet's measure or under it — a phone —
|
|
588
588
|
* the side edges would sit on the screen's own and are not drawn.
|
|
@@ -697,7 +697,7 @@
|
|
|
697
697
|
* which on a phone reads as a stray line under the browser chrome. `dialog`
|
|
698
698
|
* removed the same line from its own full-screen step for the same reason.
|
|
699
699
|
*
|
|
700
|
-
* A step the layer is too narrow to
|
|
700
|
+
* A step the layer is too narrow to honor is clamped by `min(…, 100%)` and
|
|
701
701
|
* still draws its edge. CSS cannot compare a resolved length to its
|
|
702
702
|
* container, and the four container queries that would answer it — one per
|
|
703
703
|
* step, because a container condition cannot hold a custom property — buy one
|
|
@@ -754,7 +754,7 @@
|
|
|
754
754
|
* separator drawing anything at rest is a decoration on an edge nobody is
|
|
755
755
|
* touching. Both halves of that were wrong. A resizable edge nobody can see
|
|
756
756
|
* is a capability nobody finds, and it was reported as exactly that; and the
|
|
757
|
-
* accent is the one
|
|
757
|
+
* accent is the one color in the library that means "the keyboard is here",
|
|
758
758
|
* so spending it on hover left nothing to say at focus.
|
|
759
759
|
*
|
|
760
760
|
* The picture is `splitter`'s, which is the family that settled it: two
|
|
@@ -772,8 +772,8 @@
|
|
|
772
772
|
* looking.
|
|
773
773
|
*
|
|
774
774
|
* **The pointer reach is not the picture.** `::before` is a transparent box
|
|
775
|
-
* of `--slotted-target-min`,
|
|
776
|
-
* the WCAG 2.2 floor while the picture stays thin.
|
|
775
|
+
* of `--slotted-target-min`, centerd on the gutter, so the target holds at
|
|
776
|
+
* the WCAG 2.2 floor while the picture stays thin. Centerd rather than run
|
|
777
777
|
* inward: inward it would take twenty pixels of the panel and, on a sheet,
|
|
778
778
|
* sit over the header.
|
|
779
779
|
*
|
|
@@ -804,11 +804,11 @@
|
|
|
804
804
|
touch-action: none;
|
|
805
805
|
|
|
806
806
|
/**
|
|
807
|
-
* The two steps, and the whole of the
|
|
807
|
+
* The two steps, and the whole of the color decision — the same one
|
|
808
808
|
* `splitter` makes, because the two are one picture in two families.
|
|
809
809
|
*
|
|
810
810
|
* The strong border step at rest, not the subtle one and not the accent.
|
|
811
|
-
* The accent is the one
|
|
811
|
+
* The accent is the one color in the library that means "the keyboard is
|
|
812
812
|
* here", and this family used to spend it on hover as well: a two-pixel
|
|
813
813
|
* accent line appearing under the hand on an edge that drew nothing at all
|
|
814
814
|
* before it. Both halves of that were wrong. An edge nobody can see is a
|
|
@@ -835,7 +835,7 @@
|
|
|
835
835
|
}
|
|
836
836
|
|
|
837
837
|
/**
|
|
838
|
-
* The reach. Transparent,
|
|
838
|
+
* The reach. Transparent, centerd on the gutter and above the panel's own
|
|
839
839
|
* rows, which is what makes a four-pixel picture a twenty-four-pixel target.
|
|
840
840
|
*/
|
|
841
841
|
[data-ui-drawer] > [data-part-panel] > [data-part-resizer]::before {
|
|
@@ -973,7 +973,7 @@
|
|
|
973
973
|
block-size: calc(3 * var(--slotted-space-2, 0.25rem));
|
|
974
974
|
}
|
|
975
975
|
|
|
976
|
-
/* The grabber. Four by thirty-six, full radius,
|
|
976
|
+
/* The grabber. Four by thirty-six, full radius, centerd above the header. */
|
|
977
977
|
[data-ui-drawer][data-side='top'] > [data-part-panel] > [data-part-resizer] > [data-part-grip],
|
|
978
978
|
[data-ui-drawer][data-side='bottom']
|
|
979
979
|
> [data-part-panel]
|
|
@@ -995,11 +995,11 @@
|
|
|
995
995
|
}
|
|
996
996
|
|
|
997
997
|
/**
|
|
998
|
-
* The dot matrix
|
|
998
|
+
* The dot matrix recolors its ink and nothing else: its dots are
|
|
999
999
|
* `currentColor` over a transparent box, and a `background-color` here filled
|
|
1000
1000
|
* the box — the grip became a solid block under the hand, under hover and
|
|
1001
1001
|
* under focus. `splitter`, which draws the same picture, only ever changed
|
|
1002
|
-
* `color`. The pill on a block side is a filled box, so it
|
|
1002
|
+
* `color`. The pill on a block side is a filled box, so it recolors its fill.
|
|
1003
1003
|
*/
|
|
1004
1004
|
[data-ui-drawer]
|
|
1005
1005
|
> [data-part-panel]
|
|
@@ -1053,7 +1053,7 @@
|
|
|
1053
1053
|
* its middle. The two pictures differ, which is all the ring has to do here.
|
|
1054
1054
|
*
|
|
1055
1055
|
* It cannot be drawn on the reach instead. `packages/styles/src/fallbacks.test.mjs`
|
|
1056
|
-
* forbids a system
|
|
1056
|
+
* forbids a system color inside `::before` or `::after`, and the ring's own
|
|
1057
1057
|
* last resort is `Highlight`.
|
|
1058
1058
|
*/
|
|
1059
1059
|
[data-ui-drawer] > [data-part-panel] > [data-part-resizer]:focus-visible {
|
|
@@ -1170,7 +1170,7 @@
|
|
|
1170
1170
|
/**
|
|
1171
1171
|
* An inner control, not a button (R2): the box is the glyph plus a step of
|
|
1172
1172
|
* air on each side, floored at the WCAG 2.2 minimum, and the glyph is
|
|
1173
|
-
*
|
|
1173
|
+
* centerd in it. It was the control height before, a thirty-four pixel
|
|
1174
1174
|
* square beside a sixteen pixel mark. The glyph is the binding's `Glyph` in
|
|
1175
1175
|
* an `icon` box, sized here through the icon token so the box and the
|
|
1176
1176
|
* formula above read one length.
|
|
@@ -1204,7 +1204,7 @@
|
|
|
1204
1204
|
}
|
|
1205
1205
|
|
|
1206
1206
|
/* On a finger the target is the comfortable size in both axes and the box
|
|
1207
|
-
is the one a mouse sees: a transparent `::before`
|
|
1207
|
+
is the one a mouse sees: a transparent `::before` centerd on the control
|
|
1208
1208
|
reaches 44 pixels, and the ground and the ring stay square. */
|
|
1209
1209
|
@media (pointer: coarse) {
|
|
1210
1210
|
[data-ui-drawer] > [data-part-panel] > [data-part-header] > [data-part-close] {
|
|
@@ -1343,7 +1343,7 @@
|
|
|
1343
1343
|
var(--slotted-drawer-rule-color, var(--slotted-border-subtle, ButtonBorder));
|
|
1344
1344
|
}
|
|
1345
1345
|
|
|
1346
|
-
/* ── Forced
|
|
1346
|
+
/* ── Forced colors ───────────────────────────────────────────────────── */
|
|
1347
1347
|
|
|
1348
1348
|
/**
|
|
1349
1349
|
* The theme remaps every token this family reads, so the only rule here is the
|
|
@@ -1630,7 +1630,7 @@
|
|
|
1630
1630
|
content: '';
|
|
1631
1631
|
position: absolute;
|
|
1632
1632
|
inset: 0;
|
|
1633
|
-
/* A decoration: unthemed, it is not painted rather than painted in a system
|
|
1633
|
+
/* A decoration: unthemed, it is not painted rather than painted in a system color. */
|
|
1634
1634
|
background: var(--slotted-drawer-scrim, var(--slotted-scrim));
|
|
1635
1635
|
animation: slotted-drawer-sheet-dim linear both;
|
|
1636
1636
|
animation-timeline: --slotted-drawer-sheet;
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
/**
|
|
222
222
|
* Autofill, as `text-field` paints it: the frame takes the tint under its
|
|
223
223
|
* border and inside its corner, and the input repaints the browser's ground
|
|
224
|
-
* in the same
|
|
224
|
+
* in the same color and stops at the border it overlaps by one width.
|
|
225
225
|
*/
|
|
226
226
|
[data-ui-entity-picker] > [data-part-control]:has([data-part-input]:autofill) {
|
|
227
227
|
background-color: var(
|
|
@@ -391,7 +391,7 @@
|
|
|
391
391
|
* A chip whose id has not come back yet. Its name is a skeleton the width of
|
|
392
392
|
* a short name, in the chip's own line, so the chip that arrives occupies
|
|
393
393
|
* the box that waited for it. It wears `tag`'s outline variant: on the soft
|
|
394
|
-
* ground the skeleton is the ground's own
|
|
394
|
+
* ground the skeleton is the ground's own color and read as an empty pill,
|
|
395
395
|
* and a chip that is not yet a value is drawn as an outline, like the one
|
|
396
396
|
* that never will be.
|
|
397
397
|
*/
|
|
@@ -650,7 +650,7 @@
|
|
|
650
650
|
var(--slotted-tone-danger-border)
|
|
651
651
|
);
|
|
652
652
|
/*
|
|
653
|
-
* Width as well as
|
|
653
|
+
* Width as well as color (WCAG 1.4.1), the edge `text-field` draws: in
|
|
654
654
|
* `high-contrast` the danger border is the resting edge's black. The line
|
|
655
655
|
* is a shadow inside the border, so neither box nor text moves, and it
|
|
656
656
|
* takes the resting lift's place.
|
|
@@ -678,7 +678,7 @@
|
|
|
678
678
|
}
|
|
679
679
|
|
|
680
680
|
/*
|
|
681
|
-
* Forced
|
|
681
|
+
* Forced colors remove every box shadow, and the edge with them. The
|
|
682
682
|
* width comes back as an outline inside the border, and a focused invalid
|
|
683
683
|
* control draws its ring double, which a valid ring is not.
|
|
684
684
|
*/
|
|
@@ -1035,7 +1035,7 @@
|
|
|
1035
1035
|
/* ── The record ───────────────────────────────────────────────────────── */
|
|
1036
1036
|
|
|
1037
1037
|
[data-ui-entity-picker][data-part-positioner] [data-part-item] {
|
|
1038
|
-
/* The tracks keep their content's height and the pair is
|
|
1038
|
+
/* The tracks keep their content's height and the pair is centerd in the
|
|
1039
1039
|
row's minimum, so a mark placed at the start of a track is on the
|
|
1040
1040
|
words' line: stretched tracks put the words 3px under their glyph. */
|
|
1041
1041
|
align-content: center;
|
|
@@ -1111,8 +1111,8 @@
|
|
|
1111
1111
|
}
|
|
1112
1112
|
|
|
1113
1113
|
/**
|
|
1114
|
-
* The face spans both lines and is
|
|
1115
|
-
* one block — who, then which one — and a one-line record's face is
|
|
1114
|
+
* The face spans both lines and is centerd on them, so a record reads as
|
|
1115
|
+
* one block — who, then which one — and a one-line record's face is centerd
|
|
1116
1116
|
* on its one line. The column's width is the face's, plus the gap.
|
|
1117
1117
|
*/
|
|
1118
1118
|
[data-ui-entity-picker][data-part-positioner] [data-part-media] {
|
|
@@ -1181,7 +1181,7 @@
|
|
|
1181
1181
|
|
|
1182
1182
|
/**
|
|
1183
1183
|
* A short fact at the end of the name's line: a type, a status. It is on
|
|
1184
|
-
* the name's line and not
|
|
1184
|
+
* the name's line and not centerd on the record, because it is read with
|
|
1185
1185
|
* the name ("Ana Silva · Admin"), and it never wraps.
|
|
1186
1186
|
*/
|
|
1187
1187
|
[data-ui-entity-picker][data-part-positioner] [data-part-meta] {
|
|
@@ -1203,7 +1203,7 @@
|
|
|
1203
1203
|
/**
|
|
1204
1204
|
* The check marks the name, so it stands on the name's first line — the
|
|
1205
1205
|
* briefing's rule for a mark beside a line of text — in a box one line
|
|
1206
|
-
* tall with the glyph
|
|
1206
|
+
* tall with the glyph centerd in it, as `combobox` draws it. Centerd on a
|
|
1207
1207
|
* two-line record it stood nine pixels above the name (`audit.mjs`).
|
|
1208
1208
|
*/
|
|
1209
1209
|
[data-ui-entity-picker][data-part-positioner] [data-part-indicator] {
|
|
@@ -1236,8 +1236,8 @@
|
|
|
1236
1236
|
}
|
|
1237
1237
|
|
|
1238
1238
|
/**
|
|
1239
|
-
* A record of one line is the face's height, and its name is
|
|
1240
|
-
* it; the check and the short fact are
|
|
1239
|
+
* A record of one line is the face's height, and its name is centerd in
|
|
1240
|
+
* it; the check and the short fact are centerd with the name there, where
|
|
1241
1241
|
* on a two-line record they stand on the name's line.
|
|
1242
1242
|
*/
|
|
1243
1243
|
[data-ui-entity-picker][data-part-positioner]
|
|
@@ -1290,10 +1290,10 @@
|
|
|
1290
1290
|
}
|
|
1291
1291
|
|
|
1292
1292
|
/**
|
|
1293
|
-
* The error names what failed in the text
|
|
1293
|
+
* The error names what failed in the text color, with the alert mark — a
|
|
1294
1294
|
* `Glyph` the binding draws before the words — beside it in the danger
|
|
1295
|
-
* tone,
|
|
1296
|
-
* option. It stands on the row's inset like every row, not
|
|
1295
|
+
* tone, centerd in the face's column; the offer to search again follows as an
|
|
1296
|
+
* option. It stands on the row's inset like every row, not centerd like
|
|
1297
1297
|
* the empty sentence: it is the first of two rows that belong together.
|
|
1298
1298
|
*/
|
|
1299
1299
|
[data-ui-entity-picker][data-part-positioner] [data-part-error] {
|
|
@@ -1403,7 +1403,7 @@
|
|
|
1403
1403
|
--slotted-skeleton-inline-size: 36%;
|
|
1404
1404
|
}
|
|
1405
1405
|
|
|
1406
|
-
/* ── Forced
|
|
1406
|
+
/* ── Forced colors ───────────────────────────────────────────────────── */
|
|
1407
1407
|
|
|
1408
1408
|
@media (forced-colors: active) {
|
|
1409
1409
|
[data-ui-entity-picker][data-part-positioner] [data-part-item][data-current] {
|