@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
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
* inset shadow is the only way to reach it. The signal is kept rather than
|
|
162
162
|
* erased, in the accent surface the theme owns, and it is the whole
|
|
163
163
|
* control's: the frame takes the tint under its border and inside its
|
|
164
|
-
* corner, and the input repaints the browser's ground in the same
|
|
164
|
+
* corner, and the input repaints the browser's ground in the same color.
|
|
165
165
|
* Painted on the input alone, the tint left the frame's padding, the slots
|
|
166
166
|
* and the buttons bare, and covered the border the input overlaps by one width.
|
|
167
167
|
*/
|
|
@@ -405,7 +405,7 @@
|
|
|
405
405
|
|
|
406
406
|
border-color: var(--slotted-combobox-invalid-border-color, var(--slotted-tone-danger-border));
|
|
407
407
|
/*
|
|
408
|
-
* Width as well as
|
|
408
|
+
* Width as well as color (WCAG 1.4.1), the edge `text-field` draws: in
|
|
409
409
|
* `high-contrast` the danger border is the resting edge's black. The line
|
|
410
410
|
* is a shadow inside the border, so neither box nor text moves, and it
|
|
411
411
|
* takes the resting lift's place.
|
|
@@ -434,7 +434,7 @@
|
|
|
434
434
|
}
|
|
435
435
|
|
|
436
436
|
/*
|
|
437
|
-
* Forced
|
|
437
|
+
* Forced colors remove every box shadow, and the edge with them. The
|
|
438
438
|
* width comes back as an outline inside the border, and a focused invalid
|
|
439
439
|
* control draws its ring double, which a valid ring is not.
|
|
440
440
|
*/
|
|
@@ -941,7 +941,7 @@
|
|
|
941
941
|
}
|
|
942
942
|
|
|
943
943
|
/* Column one holds content and paints none: a `Glyph` in an `Icon` box, or
|
|
944
|
-
artwork of the consumer's own,
|
|
944
|
+
artwork of the consumer's own, centerd and sized from the column. */
|
|
945
945
|
[data-ui-combobox] [data-part-icon] {
|
|
946
946
|
--slotted-icon-size: var(--_content-icon-size);
|
|
947
947
|
|
|
@@ -1040,7 +1040,7 @@
|
|
|
1040
1040
|
* takes the direction from the sentence's own first strong character, so an
|
|
1041
1041
|
* English count reads as itself and a translated one reads as itself — the
|
|
1042
1042
|
* same repair `text-field` makes for an adornment, and for the same reason.
|
|
1043
|
-
* These two parts are
|
|
1043
|
+
* These two parts are centerd, so taking their own direction costs no
|
|
1044
1044
|
* alignment; an option's label is the consumer's content and keeps the
|
|
1045
1045
|
* document's direction unless the consumer says otherwise.
|
|
1046
1046
|
*/
|
|
@@ -1116,7 +1116,7 @@
|
|
|
1116
1116
|
cursor: progress;
|
|
1117
1117
|
}
|
|
1118
1118
|
|
|
1119
|
-
/* ── Forced
|
|
1119
|
+
/* ── Forced colors ───────────────────────────────────────────────────── */
|
|
1120
1120
|
|
|
1121
1121
|
@media (forced-colors: active) {
|
|
1122
1122
|
[data-ui-combobox] [data-part-item][data-current] {
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
* with alpha: `--slotted-command-palette-backdrop-filter`, `none` unless set.
|
|
145
145
|
* The root is the one layer that paints a ground under either presentation.
|
|
146
146
|
* A reader who asked for less transparency gets no filter, and under forced
|
|
147
|
-
*
|
|
147
|
+
* colors the ground is the system's.
|
|
148
148
|
*/
|
|
149
149
|
[data-ui-command-palette] {
|
|
150
150
|
-webkit-backdrop-filter: var(--slotted-command-palette-backdrop-filter, none);
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
* only thing focused for the whole of the interaction, and a box around the
|
|
213
213
|
* top row of a panel that is itself a box says the wrong thing. The ring is
|
|
214
214
|
* drawn as a band the ring's own width along the header's bottom edge, in
|
|
215
|
-
* the theme's ring
|
|
215
|
+
* the theme's ring color, and it appears only when the keyboard put focus
|
|
216
216
|
* there — which, for a palette opened with ⌘K, is every time. The band is
|
|
217
217
|
* a bottom edge: `state-rail.test.mjs` (R1) refuses a state rail on the
|
|
218
218
|
* start or the top edge, and this is neither.
|
|
@@ -696,7 +696,7 @@
|
|
|
696
696
|
/**
|
|
697
697
|
* Column one. The mark's box exists whether or not a mark is drawn, so a
|
|
698
698
|
* list where the third item has an icon and the fourth does not still lines
|
|
699
|
-
* its labels up. It holds an element of the consumer's own,
|
|
699
|
+
* its labels up. It holds an element of the consumer's own, centerd; the
|
|
700
700
|
* stylesheet paints no mark into it.
|
|
701
701
|
*
|
|
702
702
|
* The box sizes what it holds: an icon box reads `--slotted-icon-size` from
|
|
@@ -763,7 +763,7 @@
|
|
|
763
763
|
/* Column three: a word at the end — "Recent", the kind of thing this is. */
|
|
764
764
|
/**
|
|
765
765
|
* The three cells at the end of the row span both of its rows and sit on the
|
|
766
|
-
* row's
|
|
766
|
+
* row's center. Placed on the first row alone, a keycap taller than the
|
|
767
767
|
* label's line box stretched that row, and the description under it dropped
|
|
768
768
|
* by the difference — a gap that opened only on rows with a binding.
|
|
769
769
|
*/
|
|
@@ -823,7 +823,7 @@
|
|
|
823
823
|
* Column five: the mark that says an item opens a page, as `menu` draws the
|
|
824
824
|
* mark that says an item opens a submenu. The binding's `chevron-right`
|
|
825
825
|
* glyph in a `directional` icon box, which mirrors in a right-to-left
|
|
826
|
-
* document; the column is one line box tall and
|
|
826
|
+
* document; the column is one line box tall and centers it.
|
|
827
827
|
*/
|
|
828
828
|
[data-ui-command-palette] [data-part-arrow] {
|
|
829
829
|
--slotted-icon-size: var(--_icon-size);
|
|
@@ -944,9 +944,9 @@
|
|
|
944
944
|
|
|
945
945
|
/**
|
|
946
946
|
* The word beside the caps, at the footer's own size on a line box of its
|
|
947
|
-
* own height:
|
|
948
|
-
* because a line box of 1.4 is
|
|
949
|
-
* letters. `line-height: 1`
|
|
947
|
+
* own height: centerd on the caps' box it sat a pixel and a half low,
|
|
948
|
+
* because a line box of 1.4 is centerd on its leading and not on its
|
|
949
|
+
* letters. `line-height: 1` centers the em box, which is where the word is.
|
|
950
950
|
*/
|
|
951
951
|
[data-ui-command-palette] > [data-part-footer] > [data-part-hint] > span:not([data-ui]) {
|
|
952
952
|
font-size: var(--slotted-font-size-xs, 0.75rem);
|
|
@@ -1020,11 +1020,11 @@
|
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
1022
|
|
|
1023
|
-
/* ── Forced
|
|
1023
|
+
/* ── Forced colors ───────────────────────────────────────────────────── */
|
|
1024
1024
|
|
|
1025
1025
|
/**
|
|
1026
1026
|
* The one thing the theme cannot reach: every tone surface becomes `Canvas`
|
|
1027
|
-
* under forced
|
|
1027
|
+
* under forced colors, so the current row's ground — this family's cursor,
|
|
1028
1028
|
* not decoration — would disappear.
|
|
1029
1029
|
*/
|
|
1030
1030
|
@media (forced-colors: active) {
|
|
@@ -1041,8 +1041,8 @@
|
|
|
1041
1041
|
|
|
1042
1042
|
/*
|
|
1043
1043
|
* The focus bar under the field is painted with a background, and forced
|
|
1044
|
-
*
|
|
1045
|
-
*
|
|
1044
|
+
* colors replace a background that is not one of the system's own
|
|
1045
|
+
* colors. `forced-color-adjust: none` keeps its `currentColor` fallback,
|
|
1046
1046
|
* the host's ink the system has already forced. The glyphs are `Glyph`
|
|
1047
1047
|
* elements drawn in `currentColor` and need nothing here.
|
|
1048
1048
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Container bounds the inline size of a region, insets it from the edge of
|
|
4
4
|
* the space it was given, and places it inside that space. It paints
|
|
5
|
-
* nothing: a layout that carried a
|
|
5
|
+
* nothing: a layout that carried a color would be a surface, and a surface
|
|
6
6
|
* is another family's decision.
|
|
7
7
|
*
|
|
8
8
|
* The root lays three tracks — a start gutter, the bounded column, an end
|
|
@@ -102,9 +102,9 @@
|
|
|
102
102
|
* route was unreadable on an ultra-wide display — a line of text three
|
|
103
103
|
* thousand pixels long, a form whose label and field were a screen apart.
|
|
104
104
|
* 120rem is a 1920-pixel display, where `full` and `bleed` are the same
|
|
105
|
-
* picture; past it the content stops and
|
|
105
|
+
* picture; past it the content stops and centers.
|
|
106
106
|
*
|
|
107
|
-
* `bleed` keeps the old
|
|
107
|
+
* `bleed` keeps the old behavior and has to be asked for by name: a data
|
|
108
108
|
* grid, a board, a canvas — content that is worth every pixel it is given,
|
|
109
109
|
* and reads better at three thousand pixels than at nineteen hundred.
|
|
110
110
|
* Neither removes the container: the gutters stay in both.
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*/
|
|
23
23
|
[data-ui-context-menu] {
|
|
24
24
|
/* The mark Finder and Explorer leave on the row whose menu is showing:
|
|
25
|
-
one line, inward, in the
|
|
25
|
+
one line, inward, in the color that separates two surfaces. A consumer
|
|
26
26
|
whose target already shows its selection sets the width to `0`. */
|
|
27
27
|
--_mark-width: var(--slotted-context-menu-mark-width, var(--slotted-border-width-thin, 1px));
|
|
28
28
|
--_mark-color: var(--slotted-context-menu-mark-color, var(--slotted-border-strong, CanvasText));
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
* The split buttons are the inner controls `text-field` draws: the glyph
|
|
51
51
|
* plus a step of air, capped at the inner size, inset concentrically — the
|
|
52
52
|
* air beside a button equals the air above and below it, and its corner is
|
|
53
|
-
* the frame's less that air
|
|
53
|
+
* the frame's less that air.
|
|
54
54
|
*/
|
|
55
55
|
--_action-size: var(
|
|
56
56
|
--slotted-currency-field-action-size,
|
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
|
|
258
258
|
/**
|
|
259
259
|
* The one rule the theme cannot write for the family. A transparent border
|
|
260
|
-
* has no system
|
|
260
|
+
* has no system color to be remapped to, so the `plain` control would lose
|
|
261
261
|
* its only edge exactly where an edge matters most.
|
|
262
262
|
*/
|
|
263
263
|
@media (forced-colors: active) {
|
|
@@ -493,7 +493,7 @@
|
|
|
493
493
|
|
|
494
494
|
/**
|
|
495
495
|
* The value keeps its own alignment between the two buttons rather than
|
|
496
|
-
* being
|
|
496
|
+
* being centerd the way a quantity is: a quantity is a token between a minus
|
|
497
497
|
* and a plus, and an amount is still a figure to be compared down a column.
|
|
498
498
|
*
|
|
499
499
|
* Its inset is the frame's own padding rather than the gap the sibling
|
|
@@ -567,7 +567,7 @@
|
|
|
567
567
|
* A stepper at its bound is disabled rather than silently inert, so its name
|
|
568
568
|
* still announces and its appearance says why nothing happens. The ground
|
|
569
569
|
* says it as well as the ink: the disabled foreground and the resting
|
|
570
|
-
* stepper
|
|
570
|
+
* stepper color are two steps of one neutral.
|
|
571
571
|
*/
|
|
572
572
|
[data-ui-currency-field] [data-part-decrement]:disabled,
|
|
573
573
|
[data-ui-currency-field] [data-part-increment]:disabled {
|
|
@@ -627,8 +627,8 @@
|
|
|
627
627
|
* a Tab, which is right for a control whose caret is the thing that moved.
|
|
628
628
|
*/
|
|
629
629
|
[data-ui-currency-field][data-part-root]:has(> [data-part-input]:focus-visible) {
|
|
630
|
-
/* The resting shadow,
|
|
631
|
-
around it are one
|
|
630
|
+
/* The resting shadow, recolored: the lift under the control and the ring
|
|
631
|
+
around it are one color, and the state decides which color that is. */
|
|
632
632
|
box-shadow: var(--slotted-control-shadow-focus-geometry, 0 1px 4px -1px)
|
|
633
633
|
var(--slotted-focus-ring-color, Highlight);
|
|
634
634
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
@@ -653,7 +653,7 @@
|
|
|
653
653
|
* Invalid outranks hover and is written after it for that reason. The ring is
|
|
654
654
|
* retargeted rather than repainted: every rule that draws focus reads
|
|
655
655
|
* `--slotted-focus-ring-color`, so pointing that one name at the invalid
|
|
656
|
-
*
|
|
656
|
+
* color on the element moves the outline, the shadow and both steppers'
|
|
657
657
|
* rings at once.
|
|
658
658
|
*/
|
|
659
659
|
[data-ui-currency-field][data-part-root][data-invalid] {
|
|
@@ -676,7 +676,7 @@
|
|
|
676
676
|
var(--slotted-tone-danger-border)
|
|
677
677
|
);
|
|
678
678
|
/*
|
|
679
|
-
* Width as well as
|
|
679
|
+
* Width as well as color (WCAG 1.4.1), the edge `text-field` draws: in
|
|
680
680
|
* `high-contrast` the danger border is the resting edge's black. The line
|
|
681
681
|
* is a shadow inside the border, so neither box nor text moves, and it
|
|
682
682
|
* takes the resting lift's place.
|
|
@@ -705,7 +705,7 @@
|
|
|
705
705
|
}
|
|
706
706
|
|
|
707
707
|
/*
|
|
708
|
-
* Forced
|
|
708
|
+
* Forced colors remove every box shadow, and the edge with them. The
|
|
709
709
|
* width comes back as an outline inside the border, and a focused invalid
|
|
710
710
|
* control draws its ring double, which a valid ring is not.
|
|
711
711
|
*/
|
|
@@ -777,7 +777,7 @@
|
|
|
777
777
|
}
|
|
778
778
|
|
|
779
779
|
/**
|
|
780
|
-
* Muted to the
|
|
780
|
+
* Muted to the color the theme measures rather than faded by opacity: an
|
|
781
781
|
* amount nobody can read is a field nobody can check.
|
|
782
782
|
*/
|
|
783
783
|
[data-ui-currency-field][data-part-root][data-disabled] > [data-part-start],
|
|
@@ -843,9 +843,9 @@
|
|
|
843
843
|
}
|
|
844
844
|
|
|
845
845
|
/**
|
|
846
|
-
* No box: a rule under the amount. On focus the rule takes the text
|
|
846
|
+
* No box: a rule under the amount. On focus the rule takes the text color
|
|
847
847
|
* and doubles, which is the focus indicator; invalid, it takes the danger
|
|
848
|
-
*
|
|
848
|
+
* color. No ground, no corner and no resting lift.
|
|
849
849
|
*/
|
|
850
850
|
[data-ui-currency-field][data-part-root][data-appearance='display'] {
|
|
851
851
|
background-color: transparent;
|
|
@@ -890,7 +890,7 @@
|
|
|
890
890
|
border-block-end-color: ButtonBorder;
|
|
891
891
|
}
|
|
892
892
|
|
|
893
|
-
/* A shadow is not painted under forced
|
|
893
|
+
/* A shadow is not painted under forced colors, so the doubled rule of
|
|
894
894
|
focus is a wider border there. */
|
|
895
895
|
[data-ui-currency-field][data-part-root][data-appearance='display']:has(
|
|
896
896
|
> [data-part-input]:focus-visible
|
|
@@ -373,7 +373,7 @@
|
|
|
373
373
|
/* ── Editing: the lattice ────────────────────────────────────────────── */
|
|
374
374
|
|
|
375
375
|
/**
|
|
376
|
-
* The cells a widget snaps to are shown by their
|
|
376
|
+
* The cells a widget snaps to are shown by their centers: one dot in the
|
|
377
377
|
* middle of each cell. One period is a track and a gap on each axis and
|
|
378
378
|
* the dot sits at the middle of the track, so the lattice lands on the
|
|
379
379
|
* cells from either edge and holds in a right-to-left document without a
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
/* What is left of the control's height around one line of text, so a
|
|
38
38
|
one-line row is exactly the control height at every density. A floor of
|
|
39
39
|
one space step keeps a wrapped row from losing its inset. Derived from
|
|
40
|
-
the head's height, not the row's: a stated row height
|
|
40
|
+
the head's height, not the row's: a stated row height centers its cells
|
|
41
41
|
and pads nothing. */
|
|
42
42
|
--_pad-block: var(
|
|
43
43
|
--slotted-data-grid-cell-padding-block,
|
|
@@ -124,9 +124,9 @@
|
|
|
124
124
|
--_selected-text: var(--slotted-data-grid-row-color-selected, var(--_text));
|
|
125
125
|
--_selected-rule: color-mix(in oklab, var(--_selected-edge) 30%, var(--_selected));
|
|
126
126
|
/**
|
|
127
|
-
* The cursor and the range are one
|
|
127
|
+
* The cursor and the range are one color: the accent border, which holds
|
|
128
128
|
* the non-text ratio against the page and against the accent ground it
|
|
129
|
-
* encloses (`docs/token-foundation.md`, Semantic
|
|
129
|
+
* encloses (`docs/token-foundation.md`, Semantic color). The cursor is
|
|
130
130
|
* drawn at 60% while the grid has no focus — a reader back from a popover
|
|
131
131
|
* finds where they were — and whole under `:focus-visible`.
|
|
132
132
|
*/
|
|
@@ -404,7 +404,7 @@
|
|
|
404
404
|
background-color: transparent;
|
|
405
405
|
}
|
|
406
406
|
|
|
407
|
-
/* A group header is
|
|
407
|
+
/* A group header is centerd over the columns it spans and separated from
|
|
408
408
|
the row of column names by the same rule that separates the names from
|
|
409
409
|
the values, one step lighter. */
|
|
410
410
|
[data-ui-data-grid] [data-part-column-group] {
|
|
@@ -805,7 +805,7 @@
|
|
|
805
805
|
* ── The resizer ────────────────────────────────────────────────────────
|
|
806
806
|
*
|
|
807
807
|
* Invisible at rest, a strong line under the pointer, the accent line while
|
|
808
|
-
* it is dragged. The target is `--slotted-target-min` wide and
|
|
808
|
+
* it is dragged. The target is `--slotted-target-min` wide and centerd on
|
|
809
809
|
* the column's trailing edge, so half of it stands over the next column;
|
|
810
810
|
* it is pointer-only — `aria-hidden`, no tab stop — because the keyboard
|
|
811
811
|
* resizes from the header cell itself, and a focusable handle inside a
|
|
@@ -882,7 +882,7 @@
|
|
|
882
882
|
* ── Reordering ─────────────────────────────────────────────────────────
|
|
883
883
|
*
|
|
884
884
|
* The dragged header dims; the drop indicator is a line of the accent
|
|
885
|
-
*
|
|
885
|
+
* color between two columns, positioned by the binding through
|
|
886
886
|
* `--slotted-data-grid-drop-offset` from the scroller's start edge.
|
|
887
887
|
*/
|
|
888
888
|
[data-ui-data-grid] [data-part-column-header][data-dragging] {
|
|
@@ -1298,8 +1298,8 @@
|
|
|
1298
1298
|
}
|
|
1299
1299
|
|
|
1300
1300
|
/* A row that grows to its text aligns its cells to the top: a one-line
|
|
1301
|
-
value
|
|
1302
|
-
and the eye reads a row from its first line. Fixed rows stay
|
|
1301
|
+
value centerd beside a four-line one floats in the middle of nothing,
|
|
1302
|
+
and the eye reads a row from its first line. Fixed rows stay centerd. */
|
|
1303
1303
|
[data-ui-data-grid][data-rows='auto']
|
|
1304
1304
|
:is([data-part-body], [data-part-pinned-rows])
|
|
1305
1305
|
> [data-part-row]
|
|
@@ -1480,7 +1480,7 @@
|
|
|
1480
1480
|
[data-ui-data-grid] [role='rowheader'][data-current]:not([data-editing]),
|
|
1481
1481
|
[data-ui-data-grid] [role='columnheader'][data-current] {
|
|
1482
1482
|
/* An inset shadow rather than an outline: an outline is a focus ring by
|
|
1483
|
-
the library's rule and is drawn in the ring
|
|
1483
|
+
the library's rule and is drawn in the ring color whole; this is the
|
|
1484
1484
|
place the reader left, at rest. */
|
|
1485
1485
|
box-shadow: inset 0 0 0 var(--_ring-width) var(--_cursor-rest);
|
|
1486
1486
|
}
|
|
@@ -1594,13 +1594,13 @@
|
|
|
1594
1594
|
outline-offset: calc(var(--_ring-width) * -1);
|
|
1595
1595
|
}
|
|
1596
1596
|
|
|
1597
|
-
/* An invalid draft keeps the cursor and
|
|
1597
|
+
/* An invalid draft keeps the cursor and recolors it the way every field
|
|
1598
1598
|
does — by pointing the ring at the invalid step: `invalid` does not erase
|
|
1599
1599
|
focus. The descendants' ring width is already zero, so the token moves
|
|
1600
1600
|
only this cell's own trace. */
|
|
1601
1601
|
[data-ui-data-grid] [data-part-cell][data-editing][data-invalid] {
|
|
1602
1602
|
--slotted-focus-ring-color: var(--slotted-focus-ring-color-invalid);
|
|
1603
|
-
/* Width as well as
|
|
1603
|
+
/* Width as well as color (WCAG 1.4.1): in `high-contrast` the invalid ring
|
|
1604
1604
|
is the valid ring's black, and the corner mark is withdrawn while the
|
|
1605
1605
|
cell edits. The trace widens inward by the edge every invalid control
|
|
1606
1606
|
adds, so the cell's box and its draft stay where they are. */
|
|
@@ -1868,7 +1868,7 @@
|
|
|
1868
1868
|
[data-ui-data-grid]
|
|
1869
1869
|
[data-part-scroll][data-overflowing]:not([data-at-end])
|
|
1870
1870
|
[data-pinned='end'][data-pin-edge]::after {
|
|
1871
|
-
/* The
|
|
1871
|
+
/* The color is the gradient's alone: with the hairline's color still
|
|
1872
1872
|
under the widened box, the shadow read as a solid grey band. */
|
|
1873
1873
|
background-color: transparent;
|
|
1874
1874
|
inline-size: calc(var(--_rule-width) + var(--_edge-shadow-size));
|
|
@@ -2027,7 +2027,7 @@
|
|
|
2027
2027
|
}
|
|
2028
2028
|
|
|
2029
2029
|
/* The chooser, the expander, the values and the actions stand on the
|
|
2030
|
-
values' line
|
|
2030
|
+
values' line centerd, as in a fixed row: the line is the row's own
|
|
2031
2031
|
height, and a wrapped value is the only thing that grows it. */
|
|
2032
2032
|
[data-ui-data-grid][data-popin]
|
|
2033
2033
|
:is([data-part-body], [data-part-pinned-rows])
|
|
@@ -2280,7 +2280,7 @@
|
|
|
2280
2280
|
align-items: center;
|
|
2281
2281
|
/* One line tall, whatever stands inside: the buttons are taller than the
|
|
2282
2282
|
line and overflow it evenly, so the row is still measured by its text
|
|
2283
|
-
and the buttons sit on the value's own
|
|
2283
|
+
and the buttons sit on the value's own center. */
|
|
2284
2284
|
block-size: var(--_line);
|
|
2285
2285
|
display: inline-flex;
|
|
2286
2286
|
gap: var(--slotted-space-1, 0.125rem);
|
|
@@ -2294,7 +2294,7 @@
|
|
|
2294
2294
|
* artwork the consumer puts in. A library `button` at its smallest step is
|
|
2295
2295
|
* thirty pixels against a line of nineteen and a half: read on the anatomy
|
|
2296
2296
|
* scene, two of them stood five pixels proud of the row on both sides and
|
|
2297
|
-
* grew its track. The consumer keeps the
|
|
2297
|
+
* grew its track. The consumer keeps the behavior and the artwork.
|
|
2298
2298
|
*/
|
|
2299
2299
|
[data-ui-data-grid] [data-part-cell] > [data-part-actions] > button {
|
|
2300
2300
|
align-items: center;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* The two composed families keep their own `data-part`. A part of this
|
|
14
14
|
* family is written on an element of its own, never on the `li`, so the row
|
|
15
|
-
* stays the row `list-item.css`
|
|
15
|
+
* stays the row `list-item.css` recognizes.
|
|
16
16
|
*/
|
|
17
17
|
[data-ui-data-list][data-part-root] {
|
|
18
18
|
/* The pop-in's two measures (`data-grid.css`, the pop-in): a field is at
|
|
@@ -384,7 +384,7 @@
|
|
|
384
384
|
* at `dense` there is not room for two.
|
|
385
385
|
*
|
|
386
386
|
* So the segment takes the accent solid and its own ink. Under forced
|
|
387
|
-
*
|
|
387
|
+
* colors the accent tone maps to `Highlight` and `HighlightText`, which is
|
|
388
388
|
* the one pair the operating system guarantees legible together.
|
|
389
389
|
*
|
|
390
390
|
* Both are `:focus` and not `:focus-visible`, and that is the whole reason a
|
|
@@ -447,7 +447,7 @@
|
|
|
447
447
|
|
|
448
448
|
border-color: var(--slotted-date-field-invalid-border-color, var(--slotted-tone-danger-border));
|
|
449
449
|
/*
|
|
450
|
-
* Width as well as
|
|
450
|
+
* Width as well as color (WCAG 1.4.1), the edge `text-field` draws: in
|
|
451
451
|
* `high-contrast` the danger border is the resting edge's black. The line
|
|
452
452
|
* is a shadow inside the border, so neither box nor text moves, and it
|
|
453
453
|
* takes the resting lift's place.
|
|
@@ -476,7 +476,7 @@
|
|
|
476
476
|
}
|
|
477
477
|
|
|
478
478
|
/*
|
|
479
|
-
* Forced
|
|
479
|
+
* Forced colors remove every box shadow, and the edge with them. The
|
|
480
480
|
* width comes back as an outline inside the border, and a focused invalid
|
|
481
481
|
* control draws its ring double, which a valid ring is not.
|
|
482
482
|
*/
|
|
@@ -527,7 +527,7 @@
|
|
|
527
527
|
}
|
|
528
528
|
|
|
529
529
|
/**
|
|
530
|
-
* Muted to the
|
|
530
|
+
* Muted to the color the theme measures rather than faded by opacity: a
|
|
531
531
|
* date nobody can read is a field nobody can check, and a disabled form
|
|
532
532
|
* still has to say what it holds.
|
|
533
533
|
*/
|
|
@@ -556,7 +556,7 @@
|
|
|
556
556
|
}
|
|
557
557
|
|
|
558
558
|
@media (forced-colors: active) {
|
|
559
|
-
/* A transparent border has no system
|
|
559
|
+
/* A transparent border has no system color to be remapped to, so the
|
|
560
560
|
`plain` control would lose its only edge where an edge matters most. */
|
|
561
561
|
[data-ui-date-field][data-part-root][data-variant='plain'] {
|
|
562
562
|
border-color: ButtonBorder;
|
|
@@ -372,7 +372,7 @@
|
|
|
372
372
|
*/
|
|
373
373
|
[data-ui-date-picker] [data-part-presets] {
|
|
374
374
|
/* A list of shortcuts reads from the start edge. Stretched, each button
|
|
375
|
-
|
|
375
|
+
centerd its own label and the four labels formed a ragged column with
|
|
376
376
|
no left edge to run down. */
|
|
377
377
|
align-items: flex-start;
|
|
378
378
|
border-inline-end: var(--slotted-border-width-thin, 1px) solid
|
|
@@ -446,7 +446,7 @@
|
|
|
446
446
|
|
|
447
447
|
/**
|
|
448
448
|
* The grip every bottom sheet carries, in the drawer's geometry and line
|
|
449
|
-
*
|
|
449
|
+
* color: a pill three rem by a quarter, centerd in a row one target tall
|
|
450
450
|
* that the content keeps clear at its top. A pull down on it dismisses the
|
|
451
451
|
* sheet; Escape and the press outside stay the accessible ways out.
|
|
452
452
|
*/
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
display: inline-flex;
|
|
259
259
|
flex: 0 0 auto;
|
|
260
260
|
inline-size: var(--_action-size);
|
|
261
|
-
/*
|
|
261
|
+
/* Centerd on the first line of the frame, whichever line the end is on. */
|
|
262
262
|
inset-block-start: calc((var(--_height) - var(--_border-width) * 2 - var(--_action-size)) / 2);
|
|
263
263
|
inset-inline-end: var(--_action-inset);
|
|
264
264
|
justify-content: center;
|
|
@@ -438,7 +438,7 @@
|
|
|
438
438
|
var(--slotted-tone-danger-border)
|
|
439
439
|
);
|
|
440
440
|
/*
|
|
441
|
-
* Width as well as
|
|
441
|
+
* Width as well as color (WCAG 1.4.1), the edge `text-field` draws: in
|
|
442
442
|
* `high-contrast` the danger border is the resting edge's black. The line
|
|
443
443
|
* is a shadow inside the border, so neither box nor text moves, and it
|
|
444
444
|
* takes the resting lift's place.
|
|
@@ -470,7 +470,7 @@
|
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
/*
|
|
473
|
-
* Forced
|
|
473
|
+
* Forced colors remove every box shadow, and the edge with them. The
|
|
474
474
|
* width comes back as an outline inside the border, and a focused invalid
|
|
475
475
|
* control draws its ring double, which a valid ring is not.
|
|
476
476
|
*/
|
|
@@ -511,7 +511,7 @@
|
|
|
511
511
|
cursor: default;
|
|
512
512
|
}
|
|
513
513
|
|
|
514
|
-
/* Muted to the
|
|
514
|
+
/* Muted to the color the theme measures rather than faded by opacity: a
|
|
515
515
|
disabled form still has to say what it holds. */
|
|
516
516
|
[data-ui-date-range-picker][data-part-root][data-disabled] [data-part-control] {
|
|
517
517
|
background-color: var(
|
|
@@ -702,8 +702,7 @@
|
|
|
702
702
|
* What the reader has so far, and how long it is. The two ends are drawn
|
|
703
703
|
* as they stand, the one not yet chosen as its placeholder, and the length
|
|
704
704
|
* answers the question the reader is actually asking while the run is
|
|
705
|
-
* being drawn
|
|
706
|
-
* §12 records.
|
|
705
|
+
* being drawn.
|
|
707
706
|
*
|
|
708
707
|
* It renders at the panel's width and contributes nothing to it, by the
|
|
709
708
|
* pair `datetime-picker` records: `inline-size: 0` takes the band out of the
|
|
@@ -830,7 +829,7 @@
|
|
|
830
829
|
|
|
831
830
|
/**
|
|
832
831
|
* One shortcut. Quiet — no edge, the surface's ink — and reading from the
|
|
833
|
-
* start edge: stretched and
|
|
832
|
+
* start edge: stretched and centerd, four labels form a ragged column with
|
|
834
833
|
* no left edge to run down. Selected, it takes the accent's subtle ground
|
|
835
834
|
* and text, which is the pair `calendar` gives a day inside the run.
|
|
836
835
|
*/
|
|
@@ -950,7 +949,7 @@
|
|
|
950
949
|
|
|
951
950
|
/**
|
|
952
951
|
* The grip every bottom sheet carries, in the drawer's geometry and line
|
|
953
|
-
*
|
|
952
|
+
* color: a pill three rem by a quarter, centerd in a row one target tall
|
|
954
953
|
* that the content keeps clear at its top. A pull down on it dismisses the
|
|
955
954
|
* sheet; Escape and the press outside stay the accessible ways out.
|
|
956
955
|
*/
|
|
@@ -983,13 +982,13 @@
|
|
|
983
982
|
}
|
|
984
983
|
|
|
985
984
|
@media (forced-colors: active) {
|
|
986
|
-
/* A transparent border has no system
|
|
985
|
+
/* A transparent border has no system color to be remapped to, so the
|
|
987
986
|
`plain` frame would lose its only edge where an edge matters most. */
|
|
988
987
|
[data-ui-date-range-picker][data-part-root][data-variant='plain'] [data-part-control] {
|
|
989
988
|
border-color: ButtonBorder;
|
|
990
989
|
}
|
|
991
990
|
|
|
992
|
-
/* The underline is painted with a background, and forced
|
|
991
|
+
/* The underline is painted with a background, and forced colors replace
|
|
993
992
|
a background that is not one of the system's own. */
|
|
994
993
|
[data-ui-date-range-picker] [data-part-start]::after,
|
|
995
994
|
[data-ui-date-range-picker] [data-part-end]::after {
|
|
@@ -319,7 +319,7 @@
|
|
|
319
319
|
/**
|
|
320
320
|
* One line box, not a flex row. The chevron sits *in* the line rather than
|
|
321
321
|
* beside it, which is the only way it can be aligned to the text at all —
|
|
322
|
-
* a flex box
|
|
322
|
+
* a flex box centers its children on the whole line box, and the letters
|
|
323
323
|
* do not live in the middle of that.
|
|
324
324
|
*/
|
|
325
325
|
--_mark: 1cap;
|
|
@@ -345,7 +345,7 @@
|
|
|
345
345
|
* The mark, on the text's own axis. `1cap` is the size a mark inside a line
|
|
346
346
|
* of text takes, and the `vertical-align` is the formula
|
|
347
347
|
* `docs/build-briefing.md` records under _Decisions already taken_: half the
|
|
348
|
-
* difference between the band and the mark, which lands the mark's
|
|
348
|
+
* difference between the band and the mark, which lands the mark's center on
|
|
349
349
|
* the middle of the band. The band is the midpoint of cap and x-height,
|
|
350
350
|
* chosen after all three were read at four times the type size.
|
|
351
351
|
*
|
|
@@ -614,11 +614,11 @@
|
|
|
614
614
|
*
|
|
615
615
|
* **The tone is the second signal here, not the first.** The high-contrast
|
|
616
616
|
* scheme collapses every tone border to black — the theme's decision, and the
|
|
617
|
-
* one `invalid` already lives with — so a state carried by
|
|
618
|
-
* have nothing left to say there. It is not carried by
|
|
617
|
+
* one `invalid` already lives with — so a state carried by color alone would
|
|
618
|
+
* have nothing left to say there. It is not carried by color: the missing
|
|
619
619
|
* half is drawing its placeholder, in the reader's own words, beside a half
|
|
620
620
|
* that is drawing digits. That contrast is shape and it survives every scheme,
|
|
621
|
-
* forced
|
|
621
|
+
* forced colors, and a reader who cannot tell amber from grey, which is what
|
|
622
622
|
* `docs/component-features.md` §2.5 asks for. The border is what makes the
|
|
623
623
|
* whole control legible at a glance from across a long form.
|
|
624
624
|
*
|
|
@@ -709,7 +709,7 @@
|
|
|
709
709
|
var(--slotted-tone-danger-border)
|
|
710
710
|
);
|
|
711
711
|
/*
|
|
712
|
-
* Width as well as
|
|
712
|
+
* Width as well as color (WCAG 1.4.1), the edge `text-field` draws: in
|
|
713
713
|
* `high-contrast` the danger border is the resting edge's black. The line
|
|
714
714
|
* is a shadow inside the border, so neither box nor text moves, and it
|
|
715
715
|
* takes the resting lift's place.
|
|
@@ -742,7 +742,7 @@
|
|
|
742
742
|
}
|
|
743
743
|
|
|
744
744
|
/*
|
|
745
|
-
* Forced
|
|
745
|
+
* Forced colors remove every box shadow, and the edge with them. The
|
|
746
746
|
* width comes back as an outline inside the border, and a focused invalid
|
|
747
747
|
* control draws its ring double, which a valid ring is not.
|
|
748
748
|
*/
|
|
@@ -797,7 +797,7 @@
|
|
|
797
797
|
}
|
|
798
798
|
|
|
799
799
|
/**
|
|
800
|
-
* Muted to the
|
|
800
|
+
* Muted to the color the theme measures rather than faded by opacity: a
|
|
801
801
|
* datetime nobody can read is a field nobody can check, and a disabled form
|
|
802
802
|
* still has to say what it holds.
|
|
803
803
|
*/
|
|
@@ -829,7 +829,7 @@
|
|
|
829
829
|
}
|
|
830
830
|
|
|
831
831
|
@media (forced-colors: active) {
|
|
832
|
-
/* A transparent border has no system
|
|
832
|
+
/* A transparent border has no system color to be remapped to, so the
|
|
833
833
|
`plain` control would lose its only edge where an edge matters most. */
|
|
834
834
|
[data-ui-datetime-field][data-part-root][data-variant='plain'] {
|
|
835
835
|
border-color: ButtonBorder;
|
|
@@ -844,7 +844,7 @@
|
|
|
844
844
|
}
|
|
845
845
|
|
|
846
846
|
/* The broken line above is already shape rather than tone, so forced
|
|
847
|
-
|
|
847
|
+
colors need nothing added here; the rule is stated in the scheme block
|
|
848
848
|
and inherited. */
|
|
849
849
|
}
|
|
850
850
|
}
|