@slotted/styles 0.1.0-beta.2 → 0.1.0-beta.20
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 +1 -1
- package/src/accordion/accordion.css +10 -10
- package/src/action-bar/action-bar.css +45 -42
- package/src/action-bar/action-bar.tokens.json +1 -0
- package/src/action-sheet/action-sheet.css +36 -36
- package/src/alert/alert.css +68 -67
- package/src/alert/alert.tokens.json +5 -0
- package/src/app-shell/app-shell.css +452 -314
- package/src/app-shell/app-shell.tokens.json +5 -2
- package/src/aspect-ratio/aspect-ratio.css +9 -9
- package/src/attachment/attachment.css +91 -99
- package/src/avatar/avatar.css +71 -41
- package/src/avatar/avatar.tokens.json +7 -0
- package/src/avatar-group/avatar-group.css +21 -22
- package/src/badge/badge.css +45 -37
- package/src/badge/badge.tokens.json +5 -0
- package/src/breadcrumb/breadcrumb.css +37 -37
- package/src/button/button.css +149 -68
- package/src/button/button.tokens.json +10 -0
- package/src/button-group/button-group.css +79 -74
- package/src/button-group/button-group.tokens.json +2 -0
- package/src/calendar/calendar.css +133 -103
- package/src/calendar/calendar.tokens.json +5 -1
- package/src/card/card.css +54 -61
- package/src/carousel/carousel.css +150 -161
- package/src/cascader/cascader.css +152 -153
- package/src/cascader/cascader.tokens.json +1 -0
- package/src/chart/chart.css +258 -248
- package/src/chart/chart.tokens.json +1 -0
- package/src/checkbox/checkbox.css +119 -124
- package/src/checkbox-group/checkbox-group.css +7 -7
- package/src/code-block/code-block.css +81 -85
- package/src/collapsible/collapsible.css +72 -76
- package/src/color-picker/color-picker.css +83 -91
- package/src/column-manager/column-manager.css +106 -114
- package/src/combobox/combobox.css +155 -124
- package/src/combobox/combobox.tokens.json +2 -0
- package/src/command-palette/command-palette.css +103 -90
- package/src/command-palette/command-palette.tokens.json +1 -0
- package/src/container/container.css +24 -24
- package/src/context-menu/context-menu.css +8 -8
- package/src/currency-field/currency-field.css +210 -88
- package/src/currency-field/currency-field.tokens.json +13 -0
- package/src/dashboard-grid/dashboard-grid.css +184 -114
- package/src/data-grid/data-grid.css +535 -470
- package/src/data-grid/data-grid.tokens.json +4 -0
- package/src/data-list/data-list.css +81 -70
- package/src/data-list/data-list.tokens.json +2 -1
- package/src/date-field/date-field.css +55 -52
- package/src/date-field/date-field.tokens.json +1 -0
- package/src/date-picker/date-picker.css +75 -59
- package/src/date-picker/date-picker.tokens.json +1 -0
- package/src/date-range-picker/date-range-picker.css +114 -118
- package/src/datetime-field/datetime-field.css +78 -80
- package/src/datetime-field/datetime-field.tokens.json +1 -0
- package/src/datetime-picker/datetime-picker.css +61 -63
- package/src/datetime-range-picker/datetime-range-picker.css +149 -156
- package/src/description-list/description-list.css +80 -65
- package/src/detail-panel/detail-panel.css +86 -71
- package/src/detail-panel/detail-panel.tokens.json +2 -0
- package/src/dialog/dialog.css +376 -153
- package/src/dialog/dialog.tokens.json +6 -0
- package/src/divider/divider.css +18 -18
- package/src/drawer/drawer.css +513 -217
- package/src/drawer/drawer.tokens.json +6 -0
- package/src/entity-picker/entity-picker.css +271 -256
- package/src/entity-picker/entity-picker.tokens.json +2 -0
- package/src/event-calendar/event-calendar.css +343 -385
- package/src/field/field.css +74 -78
- package/src/field-group/field-group.css +22 -25
- package/src/filter-bar/filter-bar.css +193 -209
- package/src/form/form.css +34 -24
- package/src/form/form.tokens.json +1 -0
- package/src/fullscreen/fullscreen.css +24 -25
- package/src/grid/grid.css +28 -28
- package/src/highlight/highlight.css +6 -6
- package/src/hover-card/hover-card.css +6 -6
- package/src/icon/icon.css +62 -15
- package/src/icon/icon.tokens.json +1 -0
- package/src/image/image.css +39 -39
- package/src/import-export-center/import-export-center.css +135 -156
- package/src/inline/inline.css +27 -27
- package/src/inline-message/inline-message.css +153 -77
- package/src/inline-message/inline-message.tokens.json +4 -0
- package/src/kbd/kbd.css +48 -36
- package/src/kbd/kbd.tokens.json +3 -0
- package/src/link/link.css +36 -15
- package/src/link/link.tokens.json +4 -0
- package/src/list/list.css +44 -17
- package/src/list/list.tokens.json +4 -0
- package/src/list-item/list-item.css +80 -66
- package/src/list-item/list-item.tokens.json +7 -0
- package/src/listbox/listbox.css +56 -59
- package/src/loading-overlay/loading-overlay.css +75 -92
- package/src/markdown/markdown.css +17 -17
- package/src/menu/menu.css +117 -74
- package/src/menu/menu.tokens.json +1 -0
- package/src/menubar/menubar.css +13 -13
- package/src/message/message.css +192 -202
- package/src/message/message.tokens.json +5 -0
- package/src/message-scroller/message-scroller.css +41 -42
- package/src/multi-select/multi-select.css +175 -160
- package/src/multi-select/multi-select.tokens.json +1 -0
- package/src/navigation-menu/navigation-menu.css +167 -188
- package/src/notification-center/notification-center.css +140 -148
- package/src/notification-center/notification-center.tokens.json +3 -0
- package/src/number-field/number-field.css +81 -83
- package/src/number-field/number-field.tokens.json +1 -0
- package/src/otp-input/otp-input.css +67 -57
- package/src/otp-input/otp-input.tokens.json +1 -0
- package/src/page/page.css +39 -23
- package/src/page/page.tokens.json +1 -0
- package/src/page-header/page-header.css +339 -284
- package/src/page-header/page-header.tokens.json +5 -0
- package/src/pagination/pagination.css +68 -72
- package/src/popover/popover.css +73 -61
- package/src/popover/popover.tokens.json +1 -0
- package/src/progress-indicator/progress-indicator.css +169 -113
- package/src/progress-indicator/progress-indicator.tokens.json +1 -0
- package/src/prompt-composer/prompt-composer.css +251 -104
- package/src/prompt-composer/prompt-composer.tokens.json +15 -0
- package/src/prose/prose.css +71 -75
- package/src/radio-group/radio-group.css +98 -103
- package/src/rating/rating.css +136 -132
- package/src/rating/rating.tokens.json +1 -0
- package/src/result-state/result-state.css +74 -77
- package/src/runtime-properties.mjs +2 -0
- package/src/saved-views/saved-views.css +41 -47
- package/src/scroll-area/scroll-area.css +39 -32
- package/src/section/section.css +178 -43
- package/src/section/section.tokens.json +8 -2
- package/src/segmented-control/segmented-control.css +254 -97
- package/src/segmented-control/segmented-control.tokens.json +15 -11
- package/src/select/select.css +154 -133
- package/src/select/select.tokens.json +2 -0
- package/src/side-navigation/side-navigation.css +179 -182
- package/src/side-navigation/side-navigation.tokens.json +1 -0
- package/src/skeleton/skeleton.css +47 -48
- package/src/slider/slider.css +86 -88
- package/src/sparkline/sparkline.css +62 -40
- package/src/sparkline/sparkline.tokens.json +2 -0
- package/src/spinner/spinner.css +83 -180
- package/src/spinner/spinner.tokens.json +0 -1
- package/src/split-button/split-button.css +30 -31
- package/src/split-button/split-button.tokens.json +1 -0
- package/src/splitter/splitter.css +35 -35
- package/src/stack/stack.css +24 -24
- package/src/stat-card/stat-card.css +380 -241
- package/src/stat-card/stat-card.tokens.json +5 -0
- package/src/status-indicator/status-indicator.css +107 -82
- package/src/status-indicator/status-indicator.tokens.json +0 -3
- package/src/stepper/stepper.css +58 -62
- package/src/switch/switch.css +86 -92
- package/src/table/table.css +340 -175
- package/src/table/table.tokens.json +6 -0
- package/src/table-of-contents/table-of-contents.css +57 -56
- package/src/table-of-contents/table-of-contents.tokens.json +1 -0
- package/src/tabs/tabs.css +322 -289
- package/src/tabs/tabs.tokens.json +7 -1
- package/src/tag/tag.css +79 -71
- package/src/tag/tag.tokens.json +9 -0
- package/src/tags-input/tags-input.css +145 -82
- package/src/tags-input/tags-input.tokens.json +7 -1
- package/src/text-field/text-field.css +132 -136
- package/src/text-field/text-field.tokens.json +1 -0
- package/src/textarea/textarea.css +31 -28
- package/src/textarea/textarea.tokens.json +1 -0
- package/src/time-field/time-field.css +72 -69
- package/src/time-field/time-field.tokens.json +1 -0
- package/src/time-picker/time-picker.css +56 -58
- package/src/time-range-picker/time-range-picker.css +126 -133
- package/src/timeline/timeline.css +254 -266
- package/src/timeline/timeline.tokens.json +5 -0
- package/src/toast/toast.css +115 -98
- package/src/toast/toast.tokens.json +6 -0
- package/src/toggle/toggle.css +62 -25
- package/src/toggle/toggle.tokens.json +8 -0
- package/src/toggle-group/toggle-group.css +106 -60
- package/src/toggle-group/toggle-group.tokens.json +10 -0
- package/src/toolbar/toolbar.css +30 -35
- package/src/tooltip/tooltip.css +59 -38
- package/src/tooltip/tooltip.tokens.json +1 -0
- package/src/top-navigation/top-navigation.css +243 -259
- package/src/tour/tour.css +51 -60
- package/src/transfer/transfer.css +160 -164
- package/src/tree/tree.css +103 -111
- package/src/typography/typography.css +40 -36
- package/src/typography/typography.tokens.json +1 -0
- package/src/upload/upload.css +224 -224
- package/src/visually-hidden/visually-hidden.css +1 -1
- package/src/wizard/wizard.css +185 -197
|
@@ -76,6 +76,11 @@
|
|
|
76
76
|
"--slotted-tone-danger-solid",
|
|
77
77
|
"--slotted-tone-danger-surface",
|
|
78
78
|
"--slotted-tone-danger-text",
|
|
79
|
+
"--slotted-tone-info-border",
|
|
80
|
+
"--slotted-tone-info-on-solid",
|
|
81
|
+
"--slotted-tone-info-solid",
|
|
82
|
+
"--slotted-tone-info-surface",
|
|
83
|
+
"--slotted-tone-info-text",
|
|
79
84
|
"--slotted-tone-secondary-border",
|
|
80
85
|
"--slotted-tone-secondary-on-solid",
|
|
81
86
|
"--slotted-tone-secondary-solid",
|
package/src/toast/toast.css
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
* The stylesheet's part in it is that no rule assumes a role: the same
|
|
40
40
|
* picture is drawn whether a reader hears the words or reads them.
|
|
41
41
|
*/
|
|
42
|
-
[data-ui
|
|
42
|
+
[data-ui-toast][data-part-root] {
|
|
43
43
|
/**
|
|
44
44
|
* The distance from the edge of the screen, and the greatest width a
|
|
45
45
|
* message is allowed. The width is the smaller of the two, so at 320
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
* demonstrable on a documentation page: everything else about it is the
|
|
94
94
|
* same, including the placement, which now names the edges of the panel.
|
|
95
95
|
*/
|
|
96
|
-
[data-ui
|
|
96
|
+
[data-ui-toast][data-part-root][data-attach='inline'] {
|
|
97
97
|
position: absolute;
|
|
98
98
|
}
|
|
99
99
|
|
|
@@ -104,19 +104,19 @@
|
|
|
104
104
|
* an Arabic one. Sonner's `bottom-right` is `bottom-right` in both.
|
|
105
105
|
*/
|
|
106
106
|
|
|
107
|
-
[data-ui
|
|
107
|
+
[data-ui-toast][data-part-root][data-placement^='top'] {
|
|
108
108
|
inset-block-start: var(--_offset);
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
[data-ui
|
|
111
|
+
[data-ui-toast][data-part-root][data-placement^='bottom'] {
|
|
112
112
|
inset-block-end: var(--_offset);
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
[data-ui
|
|
115
|
+
[data-ui-toast][data-part-root][data-placement$='-start'] {
|
|
116
116
|
inset-inline-start: var(--_offset);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
[data-ui
|
|
119
|
+
[data-ui-toast][data-part-root][data-placement$='-end'] {
|
|
120
120
|
inset-inline-end: var(--_offset);
|
|
121
121
|
}
|
|
122
122
|
|
|
@@ -125,8 +125,8 @@
|
|
|
125
125
|
* divide what is left. It is the one centring that needs no transform, so
|
|
126
126
|
* the transform stays free for the enter, the exit and the swipe.
|
|
127
127
|
*/
|
|
128
|
-
[data-ui
|
|
129
|
-
[data-ui
|
|
128
|
+
[data-ui-toast][data-part-root][data-placement='top'],
|
|
129
|
+
[data-ui-toast][data-part-root][data-placement='bottom'] {
|
|
130
130
|
inset-inline: var(--_offset);
|
|
131
131
|
margin-inline: auto;
|
|
132
132
|
}
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
* order, which puts the newest nearest the edge of the screen — where the
|
|
140
140
|
* reader's eye already is — without moving it in the accessibility tree.
|
|
141
141
|
*/
|
|
142
|
-
[data-ui
|
|
142
|
+
[data-ui-toast] > [data-part-list] {
|
|
143
143
|
display: flex;
|
|
144
144
|
flex-direction: column;
|
|
145
145
|
gap: var(--_gap);
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
pointer-events: none;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
[data-ui
|
|
152
|
+
[data-ui-toast][data-placement^='bottom'] > [data-part-list] {
|
|
153
153
|
flex-direction: column-reverse;
|
|
154
154
|
}
|
|
155
155
|
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
* focus already inside a message can cause, so no press meant for the page
|
|
163
163
|
* lands on an empty region.
|
|
164
164
|
*/
|
|
165
|
-
[data-ui
|
|
165
|
+
[data-ui-toast][data-expanded] > [data-part-list] {
|
|
166
166
|
pointer-events: auto;
|
|
167
167
|
}
|
|
168
168
|
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
* the message away, with the actions under the words rather than beside
|
|
173
173
|
* them so a second row exists only when there are actions to put in it.
|
|
174
174
|
*/
|
|
175
|
-
[data-ui
|
|
175
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] {
|
|
176
176
|
/* The tone's five roles, defaulted to `accent`, restated by each tone
|
|
177
177
|
below. Every one of them is a role the theme's contrast test measures. */
|
|
178
178
|
--_solid: var(--slotted-tone-accent-solid);
|
|
@@ -302,11 +302,11 @@
|
|
|
302
302
|
* shift is the same distance in the other direction rather than a second
|
|
303
303
|
* number, so the two placements are one motion seen twice.
|
|
304
304
|
*/
|
|
305
|
-
[data-ui
|
|
305
|
+
[data-ui-toast][data-placement^='top'] > [data-part-list] > [data-part-item] {
|
|
306
306
|
translate: 0 calc(-1 * var(--_enter-shift));
|
|
307
307
|
}
|
|
308
308
|
|
|
309
|
-
[data-ui
|
|
309
|
+
[data-ui-toast] > [data-part-list] > [data-part-item][data-open] {
|
|
310
310
|
opacity: 1;
|
|
311
311
|
translate: 0;
|
|
312
312
|
transition:
|
|
@@ -325,7 +325,7 @@
|
|
|
325
325
|
* is left, which is WCAG 2.2 SC 1.4.1 as well as a preference.
|
|
326
326
|
*/
|
|
327
327
|
|
|
328
|
-
[data-ui
|
|
328
|
+
[data-ui-toast] > [data-part-list] > [data-part-item][data-tone='accent'] {
|
|
329
329
|
--_solid: var(--slotted-tone-accent-solid);
|
|
330
330
|
--_on-solid: var(--slotted-tone-accent-on-solid);
|
|
331
331
|
--_tone-surface: var(--slotted-tone-accent-surface);
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
--_tone-text: var(--slotted-tone-accent-text);
|
|
334
334
|
}
|
|
335
335
|
|
|
336
|
-
[data-ui
|
|
336
|
+
[data-ui-toast] > [data-part-list] > [data-part-item][data-tone='secondary'] {
|
|
337
337
|
--_solid: var(--slotted-tone-secondary-solid);
|
|
338
338
|
--_on-solid: var(--slotted-tone-secondary-on-solid);
|
|
339
339
|
--_tone-surface: var(--slotted-tone-secondary-surface);
|
|
@@ -341,7 +341,7 @@
|
|
|
341
341
|
--_tone-text: var(--slotted-tone-secondary-text);
|
|
342
342
|
}
|
|
343
343
|
|
|
344
|
-
[data-ui
|
|
344
|
+
[data-ui-toast] > [data-part-list] > [data-part-item][data-tone='success'] {
|
|
345
345
|
--_solid: var(--slotted-tone-success-solid);
|
|
346
346
|
--_on-solid: var(--slotted-tone-success-on-solid);
|
|
347
347
|
--_tone-surface: var(--slotted-tone-success-surface);
|
|
@@ -349,7 +349,15 @@
|
|
|
349
349
|
--_tone-text: var(--slotted-tone-success-text);
|
|
350
350
|
}
|
|
351
351
|
|
|
352
|
-
[data-ui
|
|
352
|
+
[data-ui-toast] > [data-part-list] > [data-part-item][data-tone='info'] {
|
|
353
|
+
--_solid: var(--slotted-tone-info-solid);
|
|
354
|
+
--_on-solid: var(--slotted-tone-info-on-solid);
|
|
355
|
+
--_tone-surface: var(--slotted-tone-info-surface);
|
|
356
|
+
--_tone-border: var(--slotted-tone-info-border);
|
|
357
|
+
--_tone-text: var(--slotted-tone-info-text);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
[data-ui-toast] > [data-part-list] > [data-part-item][data-tone='warning'] {
|
|
353
361
|
--_solid: var(--slotted-tone-warning-solid);
|
|
354
362
|
--_on-solid: var(--slotted-tone-warning-on-solid);
|
|
355
363
|
--_tone-surface: var(--slotted-tone-warning-surface);
|
|
@@ -357,7 +365,7 @@
|
|
|
357
365
|
--_tone-text: var(--slotted-tone-warning-text);
|
|
358
366
|
}
|
|
359
367
|
|
|
360
|
-
[data-ui
|
|
368
|
+
[data-ui-toast] > [data-part-list] > [data-part-item][data-tone='danger'] {
|
|
361
369
|
--_solid: var(--slotted-tone-danger-solid);
|
|
362
370
|
--_on-solid: var(--slotted-tone-danger-on-solid);
|
|
363
371
|
--_tone-surface: var(--slotted-tone-danger-surface);
|
|
@@ -373,7 +381,26 @@
|
|
|
373
381
|
* tone is in the mark and in nothing else, which is enough — it is the
|
|
374
382
|
* silhouette that survives forced colours anyway.
|
|
375
383
|
*/
|
|
376
|
-
|
|
384
|
+
/**
|
|
385
|
+
* A theme that paints the raised message with a surface that has alpha blurs
|
|
386
|
+
* what passes under it: `--slotted-toast-backdrop-filter`, `none` unless set.
|
|
387
|
+
* Only `raised` floats over content it does not own; `soft` and `solid` are
|
|
388
|
+
* tone grounds. A reader who asked for less transparency gets no filter, and
|
|
389
|
+
* under forced colours the ground is the system's.
|
|
390
|
+
*/
|
|
391
|
+
[data-ui-toast] > [data-part-list] > [data-part-item][data-variant='raised'] {
|
|
392
|
+
-webkit-backdrop-filter: var(--slotted-toast-backdrop-filter, none);
|
|
393
|
+
backdrop-filter: var(--slotted-toast-backdrop-filter, none);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
|
|
397
|
+
[data-ui-toast] > [data-part-list] > [data-part-item][data-variant='raised'] {
|
|
398
|
+
-webkit-backdrop-filter: none;
|
|
399
|
+
backdrop-filter: none;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
[data-ui-toast] > [data-part-list] > [data-part-item][data-variant='soft'] {
|
|
377
404
|
--_ground: var(--_tone-surface);
|
|
378
405
|
--_edge: var(--_tone-border);
|
|
379
406
|
/* The tone's own text on the tone's own surface is the pair the theme
|
|
@@ -383,7 +410,7 @@
|
|
|
383
410
|
--_ink-muted: var(--_tone-text);
|
|
384
411
|
}
|
|
385
412
|
|
|
386
|
-
[data-ui
|
|
413
|
+
[data-ui-toast] > [data-part-list] > [data-part-item][data-variant='solid'] {
|
|
387
414
|
--_ground: var(--_solid);
|
|
388
415
|
--_edge: var(--_solid);
|
|
389
416
|
--_ink: var(--_on-solid);
|
|
@@ -394,14 +421,13 @@
|
|
|
394
421
|
/* ── The mark ─────────────────────────────────────────────────────────
|
|
395
422
|
*
|
|
396
423
|
* `alert`'s mark, rule for rule: a filled disc on the title's first line,
|
|
397
|
-
* the binding's `Glyph`
|
|
398
|
-
* and
|
|
399
|
-
* the symbol on every variant. Every
|
|
400
|
-
*
|
|
401
|
-
* inside is what tells the five apart when colour is gone.
|
|
424
|
+
* the binding's `Glyph` drawing a hand-drawn status mark, the silhouette
|
|
425
|
+
* filled and the tone's symbol cut out of it, so the ground shows through
|
|
426
|
+
* the symbol on every variant. Every silhouette — the circle, the warning's
|
|
427
|
+
* diamond — is symmetric on both axes, so every mark has the same centre,
|
|
428
|
+
* and the symbol inside is what tells the five apart when colour is gone.
|
|
402
429
|
*
|
|
403
|
-
* The
|
|
404
|
-
* is 12/11 of the mark and the disc is the mark's own size.
|
|
430
|
+
* The silhouette fills its box edge to edge, so the box is the mark.
|
|
405
431
|
*
|
|
406
432
|
* The mark hangs from the first line's baseline. Grid baseline alignment
|
|
407
433
|
* puts the mark's bottom edge on the words' baseline, and a relative offset
|
|
@@ -426,8 +452,8 @@
|
|
|
426
452
|
* message waiting on a promise with no mark of its own draws none, and the
|
|
427
453
|
* box stays, so the layout does not jump when the spinner becomes a tick.
|
|
428
454
|
*/
|
|
429
|
-
[data-ui
|
|
430
|
-
--slotted-icon-size:
|
|
455
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-icon] {
|
|
456
|
+
--slotted-icon-size: var(--_mark-size);
|
|
431
457
|
/**
|
|
432
458
|
* The loading mark is `progress-indicator`'s contained loader, and these
|
|
433
459
|
* three are the whole of what this family says to it: the disc is the
|
|
@@ -466,7 +492,7 @@
|
|
|
466
492
|
* to be clamped too, or an unbreakable word in the title sizes the track to
|
|
467
493
|
* itself and the words run past the box that holds them.
|
|
468
494
|
*/
|
|
469
|
-
[data-ui
|
|
495
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-content] {
|
|
470
496
|
/* The other half of the mark's baseline group: see the mark above. */
|
|
471
497
|
align-self: baseline;
|
|
472
498
|
display: grid;
|
|
@@ -489,11 +515,7 @@
|
|
|
489
515
|
* `Zwischenspeicherung` set the track to 183 pixels inside a box of 155, and
|
|
490
516
|
* the words stood outside the message in every scheme.
|
|
491
517
|
*/
|
|
492
|
-
[data-ui
|
|
493
|
-
> [data-part='list']
|
|
494
|
-
> [data-part='item']
|
|
495
|
-
> [data-part='content']
|
|
496
|
-
> [data-part='title'] {
|
|
518
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-content] > [data-part-title] {
|
|
497
519
|
font-family: var(
|
|
498
520
|
--slotted-toast-title-font-family,
|
|
499
521
|
var(
|
|
@@ -507,11 +529,11 @@
|
|
|
507
529
|
overflow-wrap: anywhere;
|
|
508
530
|
}
|
|
509
531
|
|
|
510
|
-
[data-ui
|
|
511
|
-
> [data-part
|
|
512
|
-
> [data-part
|
|
513
|
-
> [data-part
|
|
514
|
-
> [data-part
|
|
532
|
+
[data-ui-toast]
|
|
533
|
+
> [data-part-list]
|
|
534
|
+
> [data-part-item]
|
|
535
|
+
> [data-part-content]
|
|
536
|
+
> [data-part-description] {
|
|
515
537
|
color: var(--_ink-muted);
|
|
516
538
|
margin: 0;
|
|
517
539
|
min-inline-size: 0;
|
|
@@ -525,7 +547,7 @@
|
|
|
525
547
|
* the consumer's own buttons: `button` already owns what a button is, and
|
|
526
548
|
* naming one of two controls `cancel` would privilege one arrangement.
|
|
527
549
|
*/
|
|
528
|
-
[data-ui
|
|
550
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-actions] {
|
|
529
551
|
align-items: center;
|
|
530
552
|
display: flex;
|
|
531
553
|
flex-wrap: wrap;
|
|
@@ -543,7 +565,7 @@
|
|
|
543
565
|
* margin box is exactly one line and the inset above the message equals the
|
|
544
566
|
* inset below.
|
|
545
567
|
*/
|
|
546
|
-
[data-ui
|
|
568
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close] {
|
|
547
569
|
/* The cross is the binding's `Glyph` in an `icon` box at the glyph size
|
|
548
570
|
the formula for this box reads. */
|
|
549
571
|
--slotted-icon-size: var(--_glyph-size);
|
|
@@ -579,11 +601,11 @@
|
|
|
579
601
|
|
|
580
602
|
/* `:enabled` is the guard the shared state test requires, and the reason it
|
|
581
603
|
exists: a control the browser has already refused answers no pointer. */
|
|
582
|
-
[data-ui
|
|
604
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close]:enabled:hover {
|
|
583
605
|
background-color: var(--_state-hover);
|
|
584
606
|
}
|
|
585
607
|
|
|
586
|
-
[data-ui
|
|
608
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close]:enabled:active {
|
|
587
609
|
background-color: var(--_state-active);
|
|
588
610
|
}
|
|
589
611
|
|
|
@@ -592,11 +614,11 @@
|
|
|
592
614
|
44 pixels, and the ground and the ring stay square. The message clips its
|
|
593
615
|
overflow, so the target ends at the message's padding edge. */
|
|
594
616
|
@media (pointer: coarse) {
|
|
595
|
-
[data-ui
|
|
617
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close] {
|
|
596
618
|
position: relative;
|
|
597
619
|
}
|
|
598
620
|
|
|
599
|
-
[data-ui
|
|
621
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close]::after {
|
|
600
622
|
content: '';
|
|
601
623
|
inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
|
|
602
624
|
position: absolute;
|
|
@@ -611,8 +633,8 @@
|
|
|
611
633
|
* it exists because `F6` sends the keyboard here — a message the reader
|
|
612
634
|
* cannot see they have arrived at is a message they cannot act on.
|
|
613
635
|
*/
|
|
614
|
-
[data-ui
|
|
615
|
-
[data-ui
|
|
636
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close]:focus-visible,
|
|
637
|
+
[data-ui-toast] > [data-part-list] > [data-part-item]:focus-visible {
|
|
616
638
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
617
639
|
}
|
|
618
640
|
|
|
@@ -621,7 +643,7 @@
|
|
|
621
643
|
* the remaining-time bar has to stop at the rounded corner — and a ring
|
|
622
644
|
* outside a control at that corner would be cut in half by it.
|
|
623
645
|
*/
|
|
624
|
-
[data-ui
|
|
646
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close]:focus-visible {
|
|
625
647
|
outline-offset: calc(-1 * var(--slotted-focus-ring-width, 2px));
|
|
626
648
|
}
|
|
627
649
|
|
|
@@ -630,7 +652,7 @@
|
|
|
630
652
|
* of the screen, and read on the box itself the ring was a thick blue border
|
|
631
653
|
* rather than a ring around a card.
|
|
632
654
|
*/
|
|
633
|
-
[data-ui
|
|
655
|
+
[data-ui-toast] > [data-part-list] > [data-part-item]:focus-visible {
|
|
634
656
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
635
657
|
}
|
|
636
658
|
|
|
@@ -643,10 +665,10 @@
|
|
|
643
665
|
* fill, so a solid message adds a halo one ring-width wide just inside it,
|
|
644
666
|
* in the ink its own words are in, for the ring to be read against.
|
|
645
667
|
*/
|
|
646
|
-
[data-ui
|
|
647
|
-
> [data-part
|
|
648
|
-
> [data-part
|
|
649
|
-
> [data-part
|
|
668
|
+
[data-ui-toast]
|
|
669
|
+
> [data-part-list]
|
|
670
|
+
> [data-part-item][data-variant='solid']
|
|
671
|
+
> [data-part-close]:focus-visible {
|
|
650
672
|
box-shadow: inset 0 0 0 calc(2 * var(--slotted-focus-ring-width, 2px)) var(--_on-solid);
|
|
651
673
|
}
|
|
652
674
|
|
|
@@ -664,7 +686,7 @@
|
|
|
664
686
|
* from the inline start in every writing direction with no origin to mirror.
|
|
665
687
|
* The box is positioned, so nothing it does moves a word.
|
|
666
688
|
*/
|
|
667
|
-
[data-ui
|
|
689
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-progress] {
|
|
668
690
|
animation-duration: var(--slotted-toast-duration, var(--slotted-duration-long));
|
|
669
691
|
animation-fill-mode: forwards;
|
|
670
692
|
animation-name: slotted-toast-countdown;
|
|
@@ -688,10 +710,10 @@
|
|
|
688
710
|
* the one ink the contrast test holds against it, held back so it reads as a
|
|
689
711
|
* measure rather than as a second border.
|
|
690
712
|
*/
|
|
691
|
-
[data-ui
|
|
692
|
-
> [data-part
|
|
693
|
-
> [data-part
|
|
694
|
-
> [data-part
|
|
713
|
+
[data-ui-toast]
|
|
714
|
+
> [data-part-list]
|
|
715
|
+
> [data-part-item][data-variant='solid']
|
|
716
|
+
> [data-part-progress] {
|
|
695
717
|
background-color: var(--_on-solid);
|
|
696
718
|
opacity: 0.7;
|
|
697
719
|
}
|
|
@@ -730,12 +752,12 @@
|
|
|
730
752
|
* back in opacity, and the front one, which is the one being read, is at
|
|
731
753
|
* full strength.
|
|
732
754
|
*/
|
|
733
|
-
[data-ui
|
|
755
|
+
[data-ui-toast][data-stacking='stack'] > [data-part-list] {
|
|
734
756
|
display: block;
|
|
735
757
|
position: relative;
|
|
736
758
|
}
|
|
737
759
|
|
|
738
|
-
[data-ui
|
|
760
|
+
[data-ui-toast][data-stacking='stack'] > [data-part-list] > [data-part-item] {
|
|
739
761
|
block-size: var(--slotted-toast-front-height, auto);
|
|
740
762
|
inset-inline: 0;
|
|
741
763
|
position: absolute;
|
|
@@ -756,20 +778,20 @@
|
|
|
756
778
|
* everything behind it share one strength: below that the pile is a stack of
|
|
757
779
|
* ghosts, and only the front two edges are showing anyway.
|
|
758
780
|
*/
|
|
759
|
-
[data-ui
|
|
781
|
+
[data-ui-toast][data-stacking='stack'] > [data-part-list] > [data-part-item][data-open] {
|
|
760
782
|
opacity: calc(1 - min(var(--slotted-toast-index, 0), 2) * var(--_stack-fade));
|
|
761
783
|
}
|
|
762
784
|
|
|
763
|
-
[data-ui
|
|
764
|
-
> [data-part
|
|
765
|
-
> [data-part
|
|
785
|
+
[data-ui-toast][data-stacking='stack'][data-placement^='bottom']
|
|
786
|
+
> [data-part-list]
|
|
787
|
+
> [data-part-item] {
|
|
766
788
|
inset-block-end: 0;
|
|
767
789
|
translate: 0 calc(-1 * var(--slotted-toast-index, 0) * var(--_stack-step));
|
|
768
790
|
}
|
|
769
791
|
|
|
770
|
-
[data-ui
|
|
771
|
-
> [data-part
|
|
772
|
-
> [data-part
|
|
792
|
+
[data-ui-toast][data-stacking='stack'][data-placement^='top']
|
|
793
|
+
> [data-part-list]
|
|
794
|
+
> [data-part-item] {
|
|
773
795
|
inset-block-start: 0;
|
|
774
796
|
translate: 0 calc(var(--slotted-toast-index, 0) * var(--_stack-step));
|
|
775
797
|
}
|
|
@@ -779,9 +801,7 @@
|
|
|
779
801
|
* column, and the gap between two of them is the region's own gap — the
|
|
780
802
|
* offset script writes already carries it.
|
|
781
803
|
*/
|
|
782
|
-
[data-ui
|
|
783
|
-
> [data-part='list']
|
|
784
|
-
> [data-part='item'] {
|
|
804
|
+
[data-ui-toast][data-stacking='stack'][data-expanded] > [data-part-list] > [data-part-item] {
|
|
785
805
|
block-size: var(--slotted-toast-height, auto);
|
|
786
806
|
}
|
|
787
807
|
|
|
@@ -793,25 +813,25 @@
|
|
|
793
813
|
* messages hang from the list's edge at `placement`, so the list grows away
|
|
794
814
|
* from that edge and nothing it holds moves.
|
|
795
815
|
*/
|
|
796
|
-
[data-ui
|
|
816
|
+
[data-ui-toast][data-stacking='stack'][data-expanded] > [data-part-list] {
|
|
797
817
|
block-size: var(--slotted-toast-stack-height, auto);
|
|
798
818
|
}
|
|
799
819
|
|
|
800
|
-
[data-ui
|
|
801
|
-
> [data-part
|
|
802
|
-
> [data-part
|
|
820
|
+
[data-ui-toast][data-stacking='stack'][data-expanded]
|
|
821
|
+
> [data-part-list]
|
|
822
|
+
> [data-part-item][data-open] {
|
|
803
823
|
opacity: 1;
|
|
804
824
|
}
|
|
805
825
|
|
|
806
|
-
[data-ui
|
|
807
|
-
> [data-part
|
|
808
|
-
> [data-part
|
|
826
|
+
[data-ui-toast][data-stacking='stack'][data-expanded][data-placement^='bottom']
|
|
827
|
+
> [data-part-list]
|
|
828
|
+
> [data-part-item] {
|
|
809
829
|
translate: 0 calc(-1 * var(--slotted-toast-stack-offset, 0px));
|
|
810
830
|
}
|
|
811
831
|
|
|
812
|
-
[data-ui
|
|
813
|
-
> [data-part
|
|
814
|
-
> [data-part
|
|
832
|
+
[data-ui-toast][data-stacking='stack'][data-expanded][data-placement^='top']
|
|
833
|
+
> [data-part-list]
|
|
834
|
+
> [data-part-item] {
|
|
815
835
|
translate: 0 var(--slotted-toast-stack-offset, 0px);
|
|
816
836
|
}
|
|
817
837
|
|
|
@@ -821,11 +841,11 @@
|
|
|
821
841
|
* `min()` is what turns an index into that rule without a rule per depth —
|
|
822
842
|
* the front message resolves to one and every other to zero.
|
|
823
843
|
*/
|
|
824
|
-
[data-ui
|
|
844
|
+
[data-ui-toast][data-stacking='stack'] > [data-part-list] > [data-part-item] > * {
|
|
825
845
|
transition: opacity var(--slotted-duration-medium) var(--slotted-easing-standard);
|
|
826
846
|
}
|
|
827
847
|
|
|
828
|
-
[data-ui
|
|
848
|
+
[data-ui-toast][data-stacking='stack']:not([data-expanded]) [data-part-item] > * {
|
|
829
849
|
opacity: calc(1 - min(1, var(--slotted-toast-index, 0)));
|
|
830
850
|
}
|
|
831
851
|
|
|
@@ -837,7 +857,7 @@
|
|
|
837
857
|
* message follows it exactly, with no transition in the way: a drag that
|
|
838
858
|
* lags the finger reads as a stuck interface.
|
|
839
859
|
*/
|
|
840
|
-
[data-ui
|
|
860
|
+
[data-ui-toast] > [data-part-list] > [data-part-item][data-dragging] {
|
|
841
861
|
cursor: grabbing;
|
|
842
862
|
transition: none;
|
|
843
863
|
translate: var(--slotted-toast-swipe-x, 0px) var(--slotted-toast-swipe-y, 0px);
|
|
@@ -846,7 +866,7 @@
|
|
|
846
866
|
user-select: none;
|
|
847
867
|
}
|
|
848
868
|
|
|
849
|
-
[data-ui
|
|
869
|
+
[data-ui-toast][data-swipe='true'] > [data-part-list] > [data-part-item] {
|
|
850
870
|
touch-action: none;
|
|
851
871
|
}
|
|
852
872
|
|
|
@@ -859,7 +879,7 @@
|
|
|
859
879
|
* container condition.
|
|
860
880
|
*/
|
|
861
881
|
@container slotted-toast (max-width: 20rem) {
|
|
862
|
-
[data-ui
|
|
882
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] {
|
|
863
883
|
--_inset-block: var(--slotted-toast-padding-block, var(--slotted-space-4, 0.5rem));
|
|
864
884
|
--_inset-inline: var(--slotted-toast-padding-inline, var(--slotted-space-5, 0.75rem));
|
|
865
885
|
}
|
|
@@ -870,7 +890,7 @@
|
|
|
870
890
|
* the control, and `button` already ships `fullWidth` for a consumer who
|
|
871
891
|
* wants otherwise.
|
|
872
892
|
*/
|
|
873
|
-
[data-ui
|
|
893
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-actions] {
|
|
874
894
|
align-items: flex-start;
|
|
875
895
|
flex-direction: column;
|
|
876
896
|
}
|
|
@@ -885,11 +905,11 @@
|
|
|
885
905
|
* own fill and a transparent border is not a colour the system remaps.
|
|
886
906
|
*/
|
|
887
907
|
@media (forced-colors: active) {
|
|
888
|
-
[data-ui
|
|
908
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] {
|
|
889
909
|
border-color: CanvasText;
|
|
890
910
|
}
|
|
891
911
|
|
|
892
|
-
[data-ui
|
|
912
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-icon] {
|
|
893
913
|
color: CanvasText;
|
|
894
914
|
}
|
|
895
915
|
|
|
@@ -897,15 +917,12 @@
|
|
|
897
917
|
* The control's glyph is stroked in `currentcolor`, so giving the control
|
|
898
918
|
* a system colour repaints it, and the mark's slot the same.
|
|
899
919
|
*/
|
|
900
|
-
[data-ui
|
|
920
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close] {
|
|
901
921
|
color: CanvasText;
|
|
902
922
|
}
|
|
903
923
|
|
|
904
|
-
[data-ui
|
|
905
|
-
[data-ui
|
|
906
|
-
> [data-part='list']
|
|
907
|
-
> [data-part='item']
|
|
908
|
-
> [data-part='close']:enabled:active {
|
|
924
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close]:enabled:hover,
|
|
925
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close]:enabled:active {
|
|
909
926
|
background-color: Highlight;
|
|
910
927
|
color: HighlightText;
|
|
911
928
|
}
|
|
@@ -914,7 +931,7 @@
|
|
|
914
931
|
* A bar of system ink under every message, shortening, is a moving line
|
|
915
932
|
* with no colour to say what it belongs to. The message still expires.
|
|
916
933
|
*/
|
|
917
|
-
[data-ui
|
|
934
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-progress] {
|
|
918
935
|
background-color: CanvasText;
|
|
919
936
|
opacity: 1;
|
|
920
937
|
}
|
|
@@ -935,7 +952,7 @@
|
|
|
935
952
|
* reached over the declared one, and the `timing` scene froze at 80 per cent.
|
|
936
953
|
*/
|
|
937
954
|
@media (prefers-reduced-motion: reduce) {
|
|
938
|
-
[data-ui
|
|
955
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-progress] {
|
|
939
956
|
animation-name: none;
|
|
940
957
|
inline-size: 100%;
|
|
941
958
|
}
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"--slotted-text",
|
|
37
37
|
"--slotted-text-muted",
|
|
38
38
|
"--slotted-toast-actions-gap",
|
|
39
|
+
"--slotted-toast-backdrop-filter",
|
|
39
40
|
"--slotted-toast-border-color",
|
|
40
41
|
"--slotted-toast-border-width",
|
|
41
42
|
"--slotted-toast-close-radius",
|
|
@@ -71,6 +72,11 @@
|
|
|
71
72
|
"--slotted-tone-danger-solid",
|
|
72
73
|
"--slotted-tone-danger-surface",
|
|
73
74
|
"--slotted-tone-danger-text",
|
|
75
|
+
"--slotted-tone-info-border",
|
|
76
|
+
"--slotted-tone-info-on-solid",
|
|
77
|
+
"--slotted-tone-info-solid",
|
|
78
|
+
"--slotted-tone-info-surface",
|
|
79
|
+
"--slotted-tone-info-text",
|
|
74
80
|
"--slotted-tone-secondary-border",
|
|
75
81
|
"--slotted-tone-secondary-on-solid",
|
|
76
82
|
"--slotted-tone-secondary-solid",
|