@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
package/src/tour/tour.css
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* └────────────────────────────────────────────────────────────────────┘
|
|
21
21
|
*
|
|
22
22
|
* The surface is popover's layer and the scrim is dialog's
|
|
23
|
-
|
|
23
|
+
*. The card's
|
|
24
24
|
* geometry, its arrow and its entrance repeat popover's for the reason that
|
|
25
25
|
* family records beside each of them.
|
|
26
26
|
*
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
/* ── The scrim ────────────────────────────────────────────────────────── */
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
|
-
* With no spotlight — a
|
|
109
|
+
* With no spotlight — a centerd step, or `spotlight={false}` on a modal
|
|
110
110
|
* step — the backdrop paints the scrim itself, as `dialog`'s does. With one,
|
|
111
111
|
* the spotlight's shadow paints it and the backdrop only carries the fade.
|
|
112
112
|
*/
|
|
@@ -173,9 +173,9 @@
|
|
|
173
173
|
* - `travel`: from one target to the next, so the reader sees where the
|
|
174
174
|
* tour went rather than a light going out in one place and on in another.
|
|
175
175
|
* - `light`: a cutout opening where there was none — the first step, or the
|
|
176
|
-
* step after a
|
|
176
|
+
* step after a centerd one. The hole starts in the scrim's ink and clears,
|
|
177
177
|
* so the target is lit rather than revealed by a cut.
|
|
178
|
-
* - `close`: the step after is
|
|
178
|
+
* - `close`: the step after is centerd. The hole fills back with the scrim
|
|
179
179
|
* before the cutout goes, and the backdrop, which paints the same ink,
|
|
180
180
|
* takes over without a seam.
|
|
181
181
|
*/
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
|
|
240
240
|
/**
|
|
241
241
|
* `data-ready` is the binding's: the card of the step on screen has been
|
|
242
|
-
* placed — measured by the positioner, or
|
|
242
|
+
* placed — measured by the positioner, or centerd — and is not leaving. A
|
|
243
243
|
* card between two steps, still at the old target with the new words, is
|
|
244
244
|
* never drawn.
|
|
245
245
|
*/
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
/**
|
|
256
256
|
* A step with no target, or one whose target could not be found, stands in
|
|
257
257
|
* the middle of the viewport as `dialog`'s panel does. Auto margins on an
|
|
258
|
-
* absolutely placed box with all four insets at zero
|
|
258
|
+
* absolutely placed box with all four insets at zero center it without a
|
|
259
259
|
* transform, which the entrance owns.
|
|
260
260
|
*/
|
|
261
261
|
[data-ui-tour] > [data-part-surface][data-placement='centered'] {
|
|
@@ -268,7 +268,7 @@
|
|
|
268
268
|
|
|
269
269
|
/**
|
|
270
270
|
* A phone's notch, its rounded corners and its home indicator are outside
|
|
271
|
-
* the safe area, and a
|
|
271
|
+
* the safe area, and a centerd card must not stand under them. `env()`
|
|
272
272
|
* answers zero everywhere else.
|
|
273
273
|
*/
|
|
274
274
|
@supports (inset: env(safe-area-inset-top)) {
|
|
@@ -370,13 +370,13 @@
|
|
|
370
370
|
/**
|
|
371
371
|
* Where the reader is, and the way out. The row is one control tall, so the
|
|
372
372
|
* close control sits in it without stretching it, and the progress text is
|
|
373
|
-
*
|
|
373
|
+
* centerd on the same line.
|
|
374
374
|
*/
|
|
375
375
|
[data-ui-tour] [data-part-content] > [data-part-header] {
|
|
376
376
|
display: flex;
|
|
377
377
|
flex: none;
|
|
378
378
|
/* `start`, so a progress text a translation wraps keeps the close control
|
|
379
|
-
level with its first line; the text's own inset
|
|
379
|
+
level with its first line; the text's own inset centers that line on
|
|
380
380
|
the control. */
|
|
381
381
|
align-items: flex-start;
|
|
382
382
|
gap: var(--_row-gap);
|
|
@@ -396,7 +396,7 @@
|
|
|
396
396
|
color: var(--slotted-text-muted, #5b6b7f);
|
|
397
397
|
font-variant-numeric: tabular-nums;
|
|
398
398
|
/* Half of what the close control is taller than one line of this text,
|
|
399
|
-
above and below, so the first line sits on the control's
|
|
399
|
+
above and below, so the first line sits on the control's center. */
|
|
400
400
|
padding-block: calc((var(--slotted-control-height-sm, 30px) - 1lh) / 2);
|
|
401
401
|
/* "2 of 5" in a right-to-left page reads "of 5 2" without it: the numbers
|
|
402
402
|
are weak characters and take the paragraph's direction. */
|
|
@@ -569,7 +569,7 @@
|
|
|
569
569
|
* square that the card normally hides stood outside it: a whole diamond.
|
|
570
570
|
* Clamped here, the arrow always meets a straight edge, whatever padding,
|
|
571
571
|
* gap or radius a theme sets; it is the tip that may then be off the
|
|
572
|
-
* target's
|
|
572
|
+
* target's center by a few pixels, which reads, where a diamond does not.
|
|
573
573
|
*/
|
|
574
574
|
--_arrow-min: calc(var(--_gap) + var(--_radius));
|
|
575
575
|
--_arrow-max-x: calc(100% - var(--_gap) - var(--_radius) - var(--_arrow-size));
|
|
@@ -655,9 +655,9 @@
|
|
|
655
655
|
|
|
656
656
|
@media (forced-colors: active) {
|
|
657
657
|
/*
|
|
658
|
-
* Forced
|
|
658
|
+
* Forced colors drop every `box-shadow`, and the scrim is one: the page
|
|
659
659
|
* stays in full view and the cutout would mark nothing. The outline is
|
|
660
|
-
* what forced
|
|
660
|
+
* what forced colors keep, so the target is ringed in the system's
|
|
661
661
|
* highlight instead of being lit.
|
|
662
662
|
*/
|
|
663
663
|
[data-ui-tour] > [data-part-backdrop] > [data-part-spotlight] {
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
94
|
* Two panes of equal share and the actions between them at their own width.
|
|
95
|
-
* The actions
|
|
95
|
+
* The actions center on the panes' block size, which is the lists' middle
|
|
96
96
|
* give or take the header, and the eye reads them as belonging to both.
|
|
97
97
|
*/
|
|
98
98
|
[data-ui-transfer] > [data-part-body] {
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
/**
|
|
135
135
|
* The header's start is the listbox's check column: the list's own inset,
|
|
136
136
|
* then the option's, less half of what the select-all box is wider than
|
|
137
|
-
* the check. The box then stands
|
|
137
|
+
* the check. The box then stands centerd over the marks it selects.
|
|
138
138
|
*/
|
|
139
139
|
[data-ui-transfer] > [data-part-body] > [data-part-pane] > [data-part-pane-header] {
|
|
140
140
|
align-items: center;
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
|
|
349
349
|
[data-ui-transfer][data-invalid] > [data-part-body] > [data-part-pane] {
|
|
350
350
|
--_edge: var(--slotted-tone-danger-border, Mark);
|
|
351
|
-
/* Width as well as
|
|
351
|
+
/* Width as well as color (WCAG 1.4.1): in `high-contrast` the danger
|
|
352
352
|
border is the resting edge's black. An edge inside the border, so
|
|
353
353
|
nothing moves, in place of the resting lift — the one `text-field`
|
|
354
354
|
draws. */
|
|
@@ -552,7 +552,7 @@
|
|
|
552
552
|
}
|
|
553
553
|
|
|
554
554
|
/*
|
|
555
|
-
* Forced
|
|
555
|
+
* Forced colors remove every box shadow, and the edge with them. The width
|
|
556
556
|
* comes back as an outline inside the border; a pane
|
|
557
557
|
* draws no focus ring of its own.
|
|
558
558
|
*/
|
package/src/tree/tree.css
CHANGED
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
*
|
|
109
109
|
* What a reader sees on a row is the distance from its deepest guide line
|
|
110
110
|
* to its own chevron, and that distance is `step - glyph / 2`, because the
|
|
111
|
-
* line sits on the
|
|
111
|
+
* line sits on the center of the chevron one level up. With the step read
|
|
112
112
|
* from the space scale and the glyph from the control scale, the two moved
|
|
113
113
|
* apart: measured on the built page, five pixels at `sm`, eight at `md`,
|
|
114
114
|
* eleven at `lg`, and nought at 240 pixels, where the line met the chevron.
|
|
@@ -323,7 +323,7 @@
|
|
|
323
323
|
*
|
|
324
324
|
* ── Where the line sits ──────────────────────────────────────────────
|
|
325
325
|
*
|
|
326
|
-
* Under the
|
|
326
|
+
* Under the center of the chevron of the level above, which is half a glyph
|
|
327
327
|
* from the start of that level's cell — not half a step. The two agree only
|
|
328
328
|
* at `md`, where the step and the glyph are both sixteen pixels; at `sm` and
|
|
329
329
|
* `lg` they differ by a pixel, and under the narrow container queries, where
|
|
@@ -460,9 +460,9 @@
|
|
|
460
460
|
* unchosen row is a gutter down the start edge of the whole tree, and a tree
|
|
461
461
|
* already spends one cell on the chevron and one per level on the indent.
|
|
462
462
|
* Every surveyed implementation that highlights — Primer, Carbon, the APG's
|
|
463
|
-
* own examples — draws no mark either, and under forced
|
|
463
|
+
* own examples — draws no mark either, and under forced colors the row takes
|
|
464
464
|
* `Highlight` and `HighlightText`, which is the system's own selection rather
|
|
465
|
-
* than a
|
|
465
|
+
* than a color of ours. `listbox` keeps its check because a flat list has
|
|
466
466
|
* one cell to spare and no indent; this is where the two families part, and
|
|
467
467
|
* the reason is the indent.
|
|
468
468
|
*
|
|
@@ -472,7 +472,7 @@
|
|
|
472
472
|
* ── Why the box is the one `checkbox` draws ────────────────────────────
|
|
473
473
|
*
|
|
474
474
|
* Same square from the selection scale, same medium edge in the strong
|
|
475
|
-
* border
|
|
475
|
+
* border color, same smallest radius, same solid ground when chosen, and the
|
|
476
476
|
* same mark: a whole two pixels of clearance on every side, at every step,
|
|
477
477
|
* revealed by a clip that opens along the stroke rather than by a scale that
|
|
478
478
|
* grows out of the middle. The clearance is a whole number and not a
|
|
@@ -682,7 +682,7 @@
|
|
|
682
682
|
* A matched span on a chosen row keeps its weight and drops its band. The
|
|
683
683
|
* band is seven and a half per cent of the tone's ink mixed into the surface,
|
|
684
684
|
* and over the tone's own ground it is neither visible nor clean — two washes
|
|
685
|
-
* of one
|
|
685
|
+
* of one color, one of them too faint to read as deliberate.
|
|
686
686
|
*/
|
|
687
687
|
[data-ui-tree] [data-part-node][data-selected] > [data-part-row] [data-part-label] mark {
|
|
688
688
|
background-color: transparent;
|
|
@@ -859,7 +859,7 @@
|
|
|
859
859
|
[data-ui-tree][data-invalid] {
|
|
860
860
|
--slotted-focus-ring-color: var(--slotted-focus-ring-color-invalid);
|
|
861
861
|
--_border-color: var(--slotted-tone-danger-border);
|
|
862
|
-
/* Width as well as
|
|
862
|
+
/* Width as well as color (WCAG 1.4.1): in `high-contrast` the danger
|
|
863
863
|
border is the resting edge's black. An edge inside the border, so
|
|
864
864
|
nothing moves, in place of the resting lift — the one `text-field`
|
|
865
865
|
draws. */
|
|
@@ -951,7 +951,7 @@
|
|
|
951
951
|
|
|
952
952
|
/**
|
|
953
953
|
* The one thing the theme cannot reach. Every tone surface becomes `Canvas`
|
|
954
|
-
* under forced
|
|
954
|
+
* under forced colors, so a selection said with a tinted ground alone would
|
|
955
955
|
* say nothing in the mode that needs it most — and under the `highlight`
|
|
956
956
|
* indicator there is no mark to fall back on. `accent` is the selected tone
|
|
957
957
|
* and the theme maps it to `Highlight`, which is what is restated here.
|
|
@@ -971,7 +971,7 @@
|
|
|
971
971
|
* The box and its mark are painted from a tone. The theme maps `accent` to
|
|
972
972
|
* `Highlight` and `on-solid` to `HighlightText`, so the chosen box keeps
|
|
973
973
|
* both; the mark opts out as well, or the system forces its ink to the
|
|
974
|
-
* text
|
|
974
|
+
* text color and the tick loses its contrast with the box it stands on.
|
|
975
975
|
*/
|
|
976
976
|
[data-ui-tree] [data-part-indicator] > [data-ui-icon] {
|
|
977
977
|
forced-color-adjust: none;
|
|
@@ -979,7 +979,7 @@
|
|
|
979
979
|
}
|
|
980
980
|
|
|
981
981
|
/*
|
|
982
|
-
* Forced
|
|
982
|
+
* Forced colors remove every box shadow, and the edge with them. The width
|
|
983
983
|
* comes back as an outline inside the border; the
|
|
984
984
|
* ring belongs to a row and leaves it alone.
|
|
985
985
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
@layer slotted.components {
|
|
2
2
|
/**
|
|
3
3
|
* The base rule is the family default: medium step, regular weight, the
|
|
4
|
-
*
|
|
4
|
+
* color of whatever contains it. Color is inherited rather than painted,
|
|
5
5
|
* so text placed on a tonal surface reads that surface instead of arguing
|
|
6
|
-
* with it; `data-tone` is how a consumer asks for a
|
|
6
|
+
* with it; `data-tone` is how a consumer asks for a color of its own.
|
|
7
7
|
*/
|
|
8
8
|
[data-ui-typography] {
|
|
9
9
|
font-family: var(
|
package/src/upload/upload.css
CHANGED
|
@@ -13,8 +13,7 @@
|
|
|
13
13
|
* trigger, so the trigger is what draws the ring, through `:has()`. Putting
|
|
14
14
|
* the label around the trigger rather than around the whole region is what
|
|
15
15
|
* makes the input's accessible name three words instead of every word in the
|
|
16
|
-
* box
|
|
17
|
-
* `docs/history/designs/2026-09-10-upload-design.md` §2.
|
|
16
|
+
* box.
|
|
18
17
|
*
|
|
19
18
|
* **The family owns its own container.** Four of its layout decisions answer
|
|
20
19
|
* the width of the box rather than the width of the window — a row folds its
|
|
@@ -61,7 +60,7 @@
|
|
|
61
60
|
* `alert` restated: the tone's `subtle-hover` is calibrated against the
|
|
62
61
|
* page, and these controls sit on a row that may already be tinted by its
|
|
63
62
|
* own status. `currentcolor` is legible on whatever ground it has by
|
|
64
|
-
* construction — it is the
|
|
63
|
+
* construction — it is the color the words beside it are read in.
|
|
65
64
|
*/
|
|
66
65
|
--_state-hover: color-mix(
|
|
67
66
|
in oklab,
|
|
@@ -146,9 +145,9 @@
|
|
|
146
145
|
);
|
|
147
146
|
|
|
148
147
|
/**
|
|
149
|
-
* The status the row is in decides one
|
|
148
|
+
* The status the row is in decides one color, and every part of the row
|
|
150
149
|
* that says something about the status reads it. Neutral by default, so a
|
|
151
|
-
* row that has not been sent yet says nothing in
|
|
150
|
+
* row that has not been sent yet says nothing in color at all.
|
|
152
151
|
*/
|
|
153
152
|
--_status-text: var(--slotted-text-muted);
|
|
154
153
|
--_item-surface: var(--slotted-upload-item-background, var(--slotted-surface));
|
|
@@ -301,7 +300,7 @@
|
|
|
301
300
|
* anything on hover.
|
|
302
301
|
*
|
|
303
302
|
* The edge takes the muted ink and the ground takes a share of the text
|
|
304
|
-
*
|
|
303
|
+
* color: four per cent on hover, eight on press. The shares are half the
|
|
305
304
|
* family's control state layer because the layer here covers a card-sized
|
|
306
305
|
* box rather than a glyph-sized one, and eight per cent across the whole
|
|
307
306
|
* region read as a disabled block. Four moves the sunken ground by 0.031 in
|
|
@@ -441,7 +440,7 @@
|
|
|
441
440
|
--slotted-focus-ring-color: var(--slotted-focus-ring-color-invalid);
|
|
442
441
|
|
|
443
442
|
border-color: var(--slotted-tone-danger-border);
|
|
444
|
-
/* Width as well as
|
|
443
|
+
/* Width as well as color (WCAG 1.4.1): in `high-contrast` the danger
|
|
445
444
|
border is the resting edge's black. The trigger is the control in both
|
|
446
445
|
shapes, so it carries the edge `text-field` draws — inside the border,
|
|
447
446
|
so nothing moves, in place of the resting lift; its focus is an outline
|
|
@@ -475,7 +474,7 @@
|
|
|
475
474
|
/**
|
|
476
475
|
* The family draws the ring on the trigger, so the one the browser would
|
|
477
476
|
* draw on the element holding focus has to go: `tree` moved its ring and
|
|
478
|
-
* forgot this, and a focused row carried two rings in two
|
|
477
|
+
* forgot this, and a focused row carried two rings in two colors.
|
|
479
478
|
*/
|
|
480
479
|
[data-ui-upload] [data-part-input]:focus-visible {
|
|
481
480
|
outline: none;
|
|
@@ -584,10 +583,10 @@
|
|
|
584
583
|
* A row is one object and it is laid out as a grid, not as a flex line. Four
|
|
585
584
|
* things follow from that, and all four were wrong in the shape before it.
|
|
586
585
|
*
|
|
587
|
-
* **The marks are
|
|
586
|
+
* **The marks are centerd on the block they are about.** The chip and the
|
|
588
587
|
* controls sit in the first track; the sentence a failure carries spans a
|
|
589
588
|
* second track underneath. So a row that has something to explain grows
|
|
590
|
-
* downwards and moves nothing:
|
|
589
|
+
* downwards and moves nothing: centering is over the name and its detail,
|
|
591
590
|
* which is what the chip and the controls are about, rather than over a box
|
|
592
591
|
* whose height a two-line message decided.
|
|
593
592
|
*
|
|
@@ -666,9 +665,9 @@
|
|
|
666
665
|
/**
|
|
667
666
|
* A file the reader has chosen and not yet sent has a dashed edge: the edge
|
|
668
667
|
* the region has, which already means *waiting for something* in this
|
|
669
|
-
* family. It is said in line rather than in
|
|
670
|
-
* above — a row not yet sent says nothing in
|
|
671
|
-
* forced
|
|
668
|
+
* family. It is said in line rather than in color, which keeps the rule
|
|
669
|
+
* above — a row not yet sent says nothing in color — and it holds under
|
|
670
|
+
* forced colors, where the line survives and a tint does not. ReUI draws
|
|
672
671
|
* its `idle` attachment the same way (`c-attachment-5`).
|
|
673
672
|
*/
|
|
674
673
|
[data-ui-upload] [data-part-item][data-status='ready'] {
|
|
@@ -703,14 +702,14 @@
|
|
|
703
702
|
|
|
704
703
|
/* ── The chip ──────────────────────────────────────────────────────────
|
|
705
704
|
*
|
|
706
|
-
* A solid tile in the file's own
|
|
705
|
+
* A solid tile in the file's own color with the mark knocked out of it.
|
|
707
706
|
*
|
|
708
|
-
* The shape this replaced was a grey square with a
|
|
707
|
+
* The shape this replaced was a grey square with a colored mark inside, and
|
|
709
708
|
* the reviewer's reading of it was the right one: a wash of a tone at twelve
|
|
710
|
-
* per cent over a white page is not a
|
|
709
|
+
* per cent over a white page is not a color, it is a grey box with a color
|
|
711
710
|
* near it. A tile is a decision; a tint is an apology for not making one.
|
|
712
711
|
*
|
|
713
|
-
* The
|
|
712
|
+
* The colors are the ones a reader has already learnt from every product
|
|
714
713
|
* they use — a PDF red, a word-processed document blue, a spreadsheet green,
|
|
715
714
|
* a deck orange, a film indigo — and they are a scale of the theme's rather
|
|
716
715
|
* than five tones stretched over nine kinds, because the tones hold no second
|
|
@@ -781,10 +780,10 @@
|
|
|
781
780
|
|
|
782
781
|
/*
|
|
783
782
|
* A tinted row keeps its tiles. The rule here was the other way round for one
|
|
784
|
-
* capture — the status took the tile's
|
|
783
|
+
* capture — the status took the tile's color, on the argument that what went
|
|
785
784
|
* wrong outranks what the file is — and the capture showed what it cost: a
|
|
786
785
|
* refused archive turned red on the one row whose message says archives are
|
|
787
|
-
* not accepted, so the
|
|
786
|
+
* not accepted, so the color stopped answering the question the reader had.
|
|
788
787
|
*
|
|
789
788
|
* The status has four signals already: the row's ground, its edge, its word
|
|
790
789
|
* and its sentence. The tile is about the file. Measured rather than assumed,
|
|
@@ -922,8 +921,8 @@
|
|
|
922
921
|
}
|
|
923
922
|
|
|
924
923
|
/**
|
|
925
|
-
* The word, in the
|
|
926
|
-
* WCAG 2.2 SC 1.4.1, which is why it is a word first and a
|
|
924
|
+
* The word, in the color the status set. A status said in color alone fails
|
|
925
|
+
* WCAG 2.2 SC 1.4.1, which is why it is a word first and a color second.
|
|
927
926
|
*/
|
|
928
927
|
[data-ui-upload] [data-part-status] {
|
|
929
928
|
color: var(--_status-text);
|
|
@@ -1040,7 +1039,7 @@
|
|
|
1040
1039
|
|
|
1041
1040
|
/**
|
|
1042
1041
|
* On a finger the target is the comfortable size in both axes and the box
|
|
1043
|
-
* is the one a mouse sees: a transparent `::after`
|
|
1042
|
+
* is the one a mouse sees: a transparent `::after` centerd on each control
|
|
1044
1043
|
* reaches 44 pixels, and the ground and the ring stay square. The controls
|
|
1045
1044
|
* of one row stand two pixels apart, so none reaches across the edge it
|
|
1046
1045
|
* shares with the one beside it; between two of them each keeps its own
|
|
@@ -1315,8 +1314,8 @@
|
|
|
1315
1314
|
|
|
1316
1315
|
/*
|
|
1317
1316
|
* The unsupported stage is a column rather than a grid. Read at 720 pixels as
|
|
1318
|
-
* a grid, the tile and its sentence landed in two cells that
|
|
1319
|
-
* different axes and sat diagonally apart; a column of two things
|
|
1317
|
+
* a grid, the tile and its sentence landed in two cells that centerd against
|
|
1318
|
+
* different axes and sat diagonally apart; a column of two things centerd is
|
|
1320
1319
|
* one rule with one meaning.
|
|
1321
1320
|
*/
|
|
1322
1321
|
[data-ui-upload] [data-part-viewerstage]:has(> [data-part-preview]) {
|
|
@@ -1467,7 +1466,7 @@
|
|
|
1467
1466
|
* The frame a text field has, at rest. It moves the region's resting pair
|
|
1468
1467
|
* rather than painting over it, so the family's states — invalid, disabled,
|
|
1469
1468
|
* the drag verdict, a pointer — reach this shape as they reach the other:
|
|
1470
|
-
* written as a border
|
|
1469
|
+
* written as a border color on the region, it held one color through all
|
|
1471
1470
|
* of them. `:where` keeps it below the invalid and disabled pair.
|
|
1472
1471
|
*/
|
|
1473
1472
|
[data-ui-upload][data-variant='field']:where([data-part-root]) {
|
|
@@ -1530,7 +1529,7 @@
|
|
|
1530
1529
|
|
|
1531
1530
|
/**
|
|
1532
1531
|
* Over the picture, the controls need a ground of their own: the consumer's
|
|
1533
|
-
* photograph is any
|
|
1532
|
+
* photograph is any color, and a dark mark on a mid-blue sky was the reading
|
|
1534
1533
|
* the first capture at 720 pixels gave. The ground is on the group rather than
|
|
1535
1534
|
* on each control, so the five keep the frameless rest state R2 requires of
|
|
1536
1535
|
* them and the reader still gets one legible plate.
|
|
@@ -1605,7 +1604,7 @@
|
|
|
1605
1604
|
/*
|
|
1606
1605
|
* The chip keeps the start of the row and the controls drop under the text,
|
|
1607
1606
|
* because at this width three of them beside a name leave the name seven
|
|
1608
|
-
* characters. The chip spans both rows, so the block it is
|
|
1607
|
+
* characters. The chip spans both rows, so the block it is centerd on is
|
|
1609
1608
|
* still the block it is about.
|
|
1610
1609
|
*/
|
|
1611
1610
|
[data-ui-upload] [data-part-item] {
|
|
@@ -1630,11 +1629,11 @@
|
|
|
1630
1629
|
}
|
|
1631
1630
|
}
|
|
1632
1631
|
|
|
1633
|
-
/* ── Forced
|
|
1632
|
+
/* ── Forced colors ────────────────────────────────────────────────────
|
|
1634
1633
|
*
|
|
1635
|
-
* The theme remaps every semantic token to a system
|
|
1636
|
-
* reads tokens needs no rule of its own for
|
|
1637
|
-
* region's dashed edge, whose
|
|
1634
|
+
* The theme remaps every semantic token to a system color, so a family that
|
|
1635
|
+
* reads tokens needs no rule of its own for color. What it does need is the
|
|
1636
|
+
* region's dashed edge, whose color comes from a token that becomes
|
|
1638
1637
|
* `CanvasText` — correct — and the row tint, which the system flattens to
|
|
1639
1638
|
* `Canvas` and which then leaves the failed row saying nothing. The border
|
|
1640
1639
|
* carries it there instead.
|
|
@@ -1648,7 +1647,7 @@
|
|
|
1648
1647
|
/*
|
|
1649
1648
|
* The theme maps every kind to `ButtonFace` and the foreground to
|
|
1650
1649
|
* `ButtonText`, so the tile is still a tile and the mark is still knocked
|
|
1651
|
-
* out of it — in the system's two
|
|
1650
|
+
* out of it — in the system's two colors rather than in nine. What kind a
|
|
1652
1651
|
* file is, is then said by its shape, which is what survives this mode.
|
|
1653
1652
|
*/
|
|
1654
1653
|
[data-ui-upload] [data-part-preview] {
|
|
@@ -1685,7 +1684,7 @@
|
|
|
1685
1684
|
}
|
|
1686
1685
|
|
|
1687
1686
|
/*
|
|
1688
|
-
* Forced
|
|
1687
|
+
* Forced colors remove every box shadow, and the edge with them. The width
|
|
1689
1688
|
* comes back as an outline inside the border, and where focus draws the ring
|
|
1690
1689
|
* on the same box an invalid ring is double, which a valid one is not.
|
|
1691
1690
|
*/
|
package/src/wizard/wizard.css
CHANGED
|
@@ -218,7 +218,7 @@
|
|
|
218
218
|
* painted in the danger tone for a step in error: the same three facts the
|
|
219
219
|
* list's markers carry, at the size a bar can hold. The track is
|
|
220
220
|
* `aria-hidden`; the position in words is the bar's accessible name.
|
|
221
|
-
* Every segment fills the track's height;
|
|
221
|
+
* Every segment fills the track's height; color alone separates a step
|
|
222
222
|
* ahead from a step reached.
|
|
223
223
|
*/
|
|
224
224
|
[data-ui-wizard]
|
|
@@ -453,7 +453,7 @@
|
|
|
453
453
|
*/
|
|
454
454
|
/**
|
|
455
455
|
* The draft status is set a step smaller than the button labels beside it,
|
|
456
|
-
* and
|
|
456
|
+
* and centerd boxes of two type sizes put their words on two lines a pixel
|
|
457
457
|
* apart. The start group aligns by baseline, so the status reads on the
|
|
458
458
|
* labels' line.
|
|
459
459
|
*/
|