@slotted/styles 0.1.0-beta.3 → 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 +13 -1
- package/src/accordion/accordion.css +11 -11
- package/src/action-bar/action-bar.css +47 -44
- package/src/action-bar/action-bar.tokens.json +1 -0
- package/src/action-sheet/action-sheet.css +39 -39
- package/src/alert/alert.css +96 -96
- package/src/alert/alert.tokens.json +5 -0
- package/src/app-shell/app-shell.css +455 -328
- package/src/app-shell/app-shell.tokens.json +5 -2
- package/src/aspect-ratio/aspect-ratio.css +9 -9
- package/src/attachment/attachment.css +118 -114
- package/src/avatar/avatar.css +96 -66
- package/src/avatar/avatar.tokens.json +7 -0
- package/src/avatar-group/avatar-group.css +22 -23
- package/src/badge/badge.css +54 -46
- package/src/badge/badge.tokens.json +5 -0
- package/src/breadcrumb/breadcrumb.css +52 -52
- package/src/button/button.css +137 -89
- package/src/button/button.tokens.json +5 -0
- package/src/button-group/button-group.css +80 -79
- package/src/button-group/button-group.tokens.json +1 -0
- package/src/calendar/calendar.css +139 -109
- package/src/calendar/calendar.tokens.json +5 -1
- package/src/card/card.css +68 -65
- package/src/carousel/carousel.css +158 -169
- package/src/cascader/cascader.css +158 -157
- package/src/cascader/cascader.tokens.json +1 -0
- package/src/chart/chart.css +288 -267
- package/src/chart/chart.tokens.json +4 -0
- package/src/checkbox/checkbox.css +143 -148
- package/src/checkbox-group/checkbox-group.css +7 -7
- package/src/code-block/code-block.css +85 -89
- package/src/collapsible/collapsible.css +76 -80
- package/src/color-picker/color-picker.css +106 -114
- package/src/column-manager/column-manager.css +111 -119
- package/src/combobox/combobox.css +203 -130
- package/src/combobox/combobox.tokens.json +3 -0
- package/src/command-palette/command-palette.css +155 -102
- package/src/command-palette/command-palette.tokens.json +2 -0
- package/src/container/container.css +27 -27
- package/src/context-menu/context-menu.css +9 -9
- package/src/currency-field/currency-field.css +119 -119
- package/src/currency-field/currency-field.tokens.json +1 -0
- package/src/dashboard-grid/dashboard-grid.css +185 -115
- package/src/data-grid/data-grid.css +598 -496
- package/src/data-grid/data-grid.tokens.json +5 -1
- package/src/data-list/data-list.css +82 -71
- package/src/data-list/data-list.tokens.json +2 -1
- package/src/date-field/date-field.css +62 -57
- package/src/date-field/date-field.tokens.json +1 -0
- package/src/date-picker/date-picker.css +117 -58
- package/src/date-picker/date-picker.tokens.json +5 -0
- package/src/date-range-picker/date-range-picker.css +157 -127
- package/src/date-range-picker/date-range-picker.tokens.json +4 -0
- package/src/datetime-field/datetime-field.css +90 -90
- package/src/datetime-field/datetime-field.tokens.json +1 -0
- package/src/datetime-picker/datetime-picker.css +123 -70
- package/src/datetime-picker/datetime-picker.tokens.json +4 -1
- package/src/datetime-range-picker/datetime-range-picker.css +191 -163
- package/src/datetime-range-picker/datetime-range-picker.tokens.json +4 -0
- package/src/description-list/description-list.css +105 -75
- package/src/description-list/description-list.tokens.json +1 -0
- package/src/detail-panel/detail-panel.css +86 -71
- package/src/detail-panel/detail-panel.tokens.json +2 -0
- package/src/dialog/dialog.css +434 -198
- package/src/dialog/dialog.tokens.json +7 -0
- package/src/divider/divider.css +20 -20
- package/src/drawer/drawer.css +597 -236
- package/src/drawer/drawer.tokens.json +13 -0
- package/src/entity-picker/entity-picker.css +323 -270
- package/src/entity-picker/entity-picker.tokens.json +3 -0
- package/src/event-calendar/event-calendar.css +357 -399
- package/src/field/field.css +106 -93
- package/src/field/field.tokens.json +2 -0
- package/src/field-group/field-group.css +43 -33
- package/src/field-group/field-group.tokens.json +3 -0
- package/src/filter-bar/filter-bar.css +200 -216
- package/src/form/form.css +99 -25
- package/src/form/form.tokens.json +5 -0
- package/src/fullscreen/fullscreen.css +26 -27
- package/src/grid/grid.css +29 -29
- package/src/highlight/highlight.css +11 -11
- package/src/hover-card/hover-card.css +9 -9
- package/src/icon/icon.css +67 -20
- package/src/icon/icon.tokens.json +1 -0
- package/src/image/image.css +42 -42
- package/src/import-export-center/import-export-center.css +144 -165
- package/src/inline/inline.css +28 -28
- package/src/inline-message/inline-message.css +162 -86
- package/src/inline-message/inline-message.tokens.json +4 -0
- package/src/kbd/kbd.css +62 -50
- package/src/kbd/kbd.tokens.json +3 -0
- package/src/link/link.css +54 -33
- package/src/link/link.tokens.json +4 -0
- package/src/list/list.css +23 -23
- package/src/list-item/list-item.css +89 -75
- package/src/list-item/list-item.tokens.json +7 -0
- package/src/listbox/listbox.css +71 -70
- package/src/listbox/listbox.tokens.json +0 -1
- package/src/loading-overlay/loading-overlay.css +86 -103
- package/src/markdown/markdown.css +20 -20
- package/src/media-viewer/media-viewer.css +790 -0
- package/src/media-viewer/media-viewer.tokens.json +53 -0
- package/src/menu/menu.css +162 -82
- package/src/menu/menu.tokens.json +2 -1
- package/src/menubar/menubar.css +16 -16
- package/src/message/message.css +1250 -1253
- package/src/message/message.tokens.json +5 -0
- package/src/message-scroller/message-scroller.css +323 -320
- package/src/multi-select/multi-select.css +230 -172
- package/src/multi-select/multi-select.tokens.json +2 -0
- package/src/navigation-menu/navigation-menu.css +169 -190
- package/src/notification-center/notification-center.css +153 -161
- package/src/notification-center/notification-center.tokens.json +3 -0
- package/src/number-field/number-field.css +93 -93
- package/src/number-field/number-field.tokens.json +1 -0
- package/src/otp-input/otp-input.css +74 -64
- package/src/otp-input/otp-input.tokens.json +1 -0
- package/src/page/page.css +41 -27
- package/src/page/page.tokens.json +1 -0
- package/src/page-header/page-header.css +341 -286
- package/src/page-header/page-header.tokens.json +5 -0
- package/src/pagination/pagination.css +75 -79
- package/src/popover/popover.css +81 -64
- package/src/popover/popover.tokens.json +1 -0
- package/src/progress-indicator/progress-indicator.css +192 -136
- package/src/progress-indicator/progress-indicator.tokens.json +1 -0
- package/src/prompt-composer/prompt-composer.css +260 -113
- package/src/prompt-composer/prompt-composer.tokens.json +15 -0
- package/src/prose/prose.css +77 -82
- package/src/radio-group/radio-group.css +107 -112
- package/src/rating/rating.css +146 -142
- package/src/rating/rating.tokens.json +1 -0
- package/src/result-state/result-state.css +94 -101
- package/src/runtime-properties.mjs +19 -6
- package/src/saved-views/saved-views.css +43 -49
- package/src/scroll-area/scroll-area.css +44 -37
- package/src/section/section.css +178 -43
- package/src/section/section.tokens.json +8 -2
- package/src/segmented-control/segmented-control.css +210 -133
- package/src/segmented-control/segmented-control.tokens.json +7 -11
- package/src/select/select.css +210 -147
- package/src/select/select.tokens.json +3 -0
- package/src/side-navigation/side-navigation.css +193 -196
- package/src/side-navigation/side-navigation.tokens.json +1 -0
- package/src/skeleton/skeleton.css +57 -58
- package/src/slider/slider.css +101 -103
- package/src/sparkline/sparkline.css +75 -53
- 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 +34 -35
- package/src/split-button/split-button.tokens.json +1 -0
- package/src/splitter/splitter.css +47 -48
- package/src/stack/stack.css +25 -25
- package/src/stat-card/stat-card.css +415 -245
- package/src/stat-card/stat-card.tokens.json +8 -0
- package/src/status-indicator/status-indicator.css +124 -100
- package/src/status-indicator/status-indicator.tokens.json +0 -3
- package/src/stepper/stepper.css +78 -82
- package/src/switch/switch.css +100 -106
- package/src/table/table.css +270 -198
- package/src/table/table.tokens.json +2 -0
- package/src/table-of-contents/table-of-contents.css +60 -59
- package/src/table-of-contents/table-of-contents.tokens.json +1 -0
- package/src/tabs/tabs.css +327 -294
- package/src/tabs/tabs.tokens.json +7 -1
- package/src/tag/tag.css +109 -88
- package/src/tag/tag.tokens.json +10 -0
- package/src/tags-input/tags-input.css +152 -87
- package/src/tags-input/tags-input.tokens.json +7 -1
- package/src/text-field/text-field.css +146 -148
- package/src/text-field/text-field.tokens.json +1 -0
- package/src/textarea/textarea.css +38 -33
- package/src/textarea/textarea.tokens.json +1 -0
- package/src/time-field/time-field.css +82 -77
- package/src/time-field/time-field.tokens.json +1 -0
- package/src/time-picker/time-picker.css +116 -64
- package/src/time-picker/time-picker.tokens.json +4 -1
- package/src/time-range-picker/time-range-picker.css +168 -140
- package/src/time-range-picker/time-range-picker.tokens.json +4 -0
- package/src/timeline/timeline.css +280 -292
- package/src/timeline/timeline.tokens.json +5 -0
- package/src/toast/toast.css +138 -121
- package/src/toast/toast.tokens.json +6 -0
- package/src/toggle/toggle.css +34 -38
- package/src/toggle-group/toggle-group.css +73 -77
- package/src/toolbar/toolbar.css +33 -38
- package/src/tooltip/tooltip.css +65 -39
- package/src/tooltip/tooltip.tokens.json +1 -0
- package/src/top-navigation/top-navigation.css +252 -268
- package/src/tour/tour.css +64 -73
- package/src/transfer/transfer.css +164 -168
- package/src/tree/tree.css +113 -121
- package/src/typography/typography.css +42 -38
- package/src/typography/typography.tokens.json +1 -0
- package/src/upload/upload.css +256 -257
- package/src/visually-hidden/visually-hidden.css +1 -1
- package/src/wizard/wizard.css +187 -199
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
* root sits inside the panel. This stylesheet reaches only the root and its
|
|
18
18
|
* children, and `drawer`'s reaches only the panel and its own parts, so the
|
|
19
19
|
* two never style each other's boxes
|
|
20
|
-
|
|
20
|
+
*.
|
|
21
21
|
*
|
|
22
22
|
* Every part is reached with a child combinator, except the rows of the
|
|
23
23
|
* list, which a group may hold one level down.
|
|
24
24
|
*/
|
|
25
|
-
[data-ui
|
|
25
|
+
[data-ui-action-sheet] {
|
|
26
26
|
/** The row's inset, which the header, every item and the footer share. */
|
|
27
27
|
--_inset: var(--slotted-control-padding-inline-lg, 16px);
|
|
28
28
|
--_gap: var(--slotted-control-gap-lg, 8px);
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
/**
|
|
71
71
|
* The family's measure. The binding hands the same value to `drawer`'s
|
|
72
72
|
* panel as `--slotted-drawer-sheet-inline-size`, so the panel and the root
|
|
73
|
-
* are one width; the root is
|
|
73
|
+
* are one width; the root is centerd in the panel for the case where a
|
|
74
74
|
* theme gives the panel more.
|
|
75
75
|
*/
|
|
76
76
|
justify-self: center;
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
@media (pointer: coarse) {
|
|
96
|
-
[data-ui
|
|
96
|
+
[data-ui-action-sheet] {
|
|
97
97
|
--_label-size: var(--slotted-font-size-lg, 1rem);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
* set small and the actions large — the hierarchy UIKit and Ionic draw, and
|
|
106
106
|
* the reverse of `drawer`, whose title names a task the body carries out.
|
|
107
107
|
*/
|
|
108
|
-
[data-ui
|
|
108
|
+
[data-ui-action-sheet] > [data-part-header] {
|
|
109
109
|
border-block-end: var(--_rule-size) solid var(--_rule);
|
|
110
110
|
display: grid;
|
|
111
111
|
padding-block: var(--slotted-space-6, 1rem) var(--slotted-space-5, 0.75rem);
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
row-gap: var(--slotted-space-1, 0.125rem);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
[data-ui
|
|
116
|
+
[data-ui-action-sheet] [data-part-title] {
|
|
117
117
|
color: var(--slotted-text, CanvasText);
|
|
118
118
|
font-family: var(
|
|
119
119
|
--slotted-font-family-heading,
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
overflow-wrap: anywhere;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
[data-ui
|
|
129
|
+
[data-ui-action-sheet] [data-part-message] {
|
|
130
130
|
color: var(--_muted);
|
|
131
131
|
font-size: var(--slotted-font-size-sm, 0.8125rem);
|
|
132
132
|
line-height: var(--slotted-line-height-sm, 1.45);
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
* row was 44 pixels and a three-line label was painted over the two items
|
|
148
148
|
* below it.
|
|
149
149
|
*/
|
|
150
|
-
[data-ui
|
|
150
|
+
[data-ui-action-sheet] > [data-part-list] {
|
|
151
151
|
--_mark: 0px;
|
|
152
152
|
--_column-gap: 0px;
|
|
153
153
|
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
padding-inline: var(--_list-inset);
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
[data-ui
|
|
173
|
+
[data-ui-action-sheet] > [data-part-list]:has([data-part-icon]) {
|
|
174
174
|
--_mark: var(--_icon-size);
|
|
175
175
|
--_column-gap: var(--_gap);
|
|
176
176
|
}
|
|
@@ -179,17 +179,17 @@
|
|
|
179
179
|
* The home indicator sits under the last row of a sheet with no footer, so
|
|
180
180
|
* that row carries the bottom inset instead.
|
|
181
181
|
*/
|
|
182
|
-
[data-ui
|
|
182
|
+
[data-ui-action-sheet]:not(:has(> [data-part-footer])) > [data-part-list] {
|
|
183
183
|
padding-block-end: calc(var(--slotted-space-2, 0.25rem) + env(safe-area-inset-bottom, 0px));
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
[data-ui
|
|
186
|
+
[data-ui-action-sheet] [data-part-group] {
|
|
187
187
|
display: grid;
|
|
188
188
|
grid-auto-rows: max-content;
|
|
189
189
|
grid-template-columns: minmax(0, 1fr);
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
[data-ui
|
|
192
|
+
[data-ui-action-sheet] [data-part-group-label] {
|
|
193
193
|
color: var(--_muted);
|
|
194
194
|
font-size: var(--slotted-font-size-sm, 0.8125rem);
|
|
195
195
|
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
padding-inline: calc(var(--_inset) - var(--_list-inset));
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
[data-ui
|
|
201
|
+
[data-ui-action-sheet] [data-part-separator] {
|
|
202
202
|
background-color: var(--_rule);
|
|
203
203
|
block-size: var(--_rule-size);
|
|
204
204
|
border: 0;
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
* `min-block-size` rather than a height, because an item with a description
|
|
216
216
|
* is two lines tall and still has to clear the target.
|
|
217
217
|
*/
|
|
218
|
-
[data-ui
|
|
218
|
+
[data-ui-action-sheet] [data-part-item] {
|
|
219
219
|
align-content: center;
|
|
220
220
|
appearance: none;
|
|
221
221
|
background: transparent;
|
|
@@ -251,13 +251,13 @@
|
|
|
251
251
|
* pointer that has not moved focus yet, before the script has run, still
|
|
252
252
|
* gets the hover.
|
|
253
253
|
*/
|
|
254
|
-
[data-ui
|
|
254
|
+
[data-ui-action-sheet] [data-part-item]:focus {
|
|
255
255
|
background-color: var(--_highlight);
|
|
256
256
|
outline: none;
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
@media (hover: hover) {
|
|
260
|
-
[data-ui
|
|
260
|
+
[data-ui-action-sheet] [data-part-item]:hover:not([data-disabled]):not([data-loading]) {
|
|
261
261
|
background-color: var(--_highlight);
|
|
262
262
|
}
|
|
263
263
|
}
|
|
@@ -266,12 +266,12 @@
|
|
|
266
266
|
* Inset, so the ring follows the row's own corner and never meets the
|
|
267
267
|
* neighbour's edge.
|
|
268
268
|
*/
|
|
269
|
-
[data-ui
|
|
269
|
+
[data-ui-action-sheet] [data-part-item]:focus-visible {
|
|
270
270
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
271
271
|
outline-offset: calc(-1 * var(--slotted-focus-ring-width, 2px));
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
-
[data-ui
|
|
274
|
+
[data-ui-action-sheet] [data-part-item]:active:not([data-disabled]):not([data-loading]) {
|
|
275
275
|
background-color: var(--_highlight-active);
|
|
276
276
|
}
|
|
277
277
|
|
|
@@ -279,16 +279,16 @@
|
|
|
279
279
|
* Focusable and inert, as the menu pattern requires, and legible rather than
|
|
280
280
|
* faded: the words keep the theme's disabled ink at its contrast.
|
|
281
281
|
*/
|
|
282
|
-
[data-ui
|
|
282
|
+
[data-ui-action-sheet] [data-part-item][data-disabled] {
|
|
283
283
|
color: var(--slotted-disabled-foreground, GrayText);
|
|
284
284
|
cursor: not-allowed;
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
[data-ui
|
|
287
|
+
[data-ui-action-sheet] [data-part-item][data-disabled]:focus {
|
|
288
288
|
background-color: var(--slotted-disabled-background, ButtonFace);
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
[data-ui
|
|
291
|
+
[data-ui-action-sheet] [data-part-item][data-loading] {
|
|
292
292
|
cursor: progress;
|
|
293
293
|
}
|
|
294
294
|
|
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
* The mark sits on the label's first line rather than on the middle of a
|
|
299
299
|
* two-line item: the line box is the item's, and the box is one line tall.
|
|
300
300
|
*/
|
|
301
|
-
[data-ui
|
|
301
|
+
[data-ui-action-sheet] [data-part-icon] {
|
|
302
302
|
--slotted-icon-size: var(--_icon-size);
|
|
303
303
|
--slotted-spinner-size: var(--_icon-size);
|
|
304
304
|
|
|
@@ -311,19 +311,19 @@
|
|
|
311
311
|
justify-content: center;
|
|
312
312
|
}
|
|
313
313
|
|
|
314
|
-
[data-ui
|
|
314
|
+
[data-ui-action-sheet] [data-part-icon] > * {
|
|
315
315
|
flex: none;
|
|
316
316
|
font-size: var(--_icon-size);
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
-
[data-ui
|
|
319
|
+
[data-ui-action-sheet] [data-part-label] {
|
|
320
320
|
grid-column: 2;
|
|
321
321
|
grid-row: 1;
|
|
322
322
|
min-inline-size: 0;
|
|
323
323
|
overflow-wrap: anywhere;
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
-
[data-ui
|
|
326
|
+
[data-ui-action-sheet] [data-part-description] {
|
|
327
327
|
color: var(--_muted);
|
|
328
328
|
font-size: var(--slotted-font-size-sm, 0.8125rem);
|
|
329
329
|
grid-column: 2;
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
overflow-wrap: anywhere;
|
|
334
334
|
}
|
|
335
335
|
|
|
336
|
-
[data-ui
|
|
336
|
+
[data-ui-action-sheet] [data-part-item][data-disabled] > [data-part-description] {
|
|
337
337
|
color: inherit;
|
|
338
338
|
}
|
|
339
339
|
|
|
@@ -344,31 +344,31 @@
|
|
|
344
344
|
* The tone paints the words, the mark and the highlight together; `danger`
|
|
345
345
|
* is the destructive action.
|
|
346
346
|
*/
|
|
347
|
-
[data-ui
|
|
347
|
+
[data-ui-action-sheet] [data-part-item][data-tone='accent'] {
|
|
348
348
|
--_accent: var(--slotted-tone-accent-text);
|
|
349
349
|
--_highlight: var(--slotted-tone-accent-surface);
|
|
350
350
|
--_highlight-active: var(--slotted-tone-accent-subtle-active);
|
|
351
351
|
}
|
|
352
352
|
|
|
353
|
-
[data-ui
|
|
353
|
+
[data-ui-action-sheet] [data-part-item][data-tone='secondary'] {
|
|
354
354
|
--_accent: var(--slotted-tone-secondary-text);
|
|
355
355
|
--_highlight: var(--slotted-tone-secondary-surface);
|
|
356
356
|
--_highlight-active: var(--slotted-tone-secondary-subtle-active);
|
|
357
357
|
}
|
|
358
358
|
|
|
359
|
-
[data-ui
|
|
359
|
+
[data-ui-action-sheet] [data-part-item][data-tone='success'] {
|
|
360
360
|
--_accent: var(--slotted-tone-success-text);
|
|
361
361
|
--_highlight: var(--slotted-tone-success-surface);
|
|
362
362
|
--_highlight-active: var(--slotted-tone-success-subtle-active);
|
|
363
363
|
}
|
|
364
364
|
|
|
365
|
-
[data-ui
|
|
365
|
+
[data-ui-action-sheet] [data-part-item][data-tone='warning'] {
|
|
366
366
|
--_accent: var(--slotted-tone-warning-text);
|
|
367
367
|
--_highlight: var(--slotted-tone-warning-surface);
|
|
368
368
|
--_highlight-active: var(--slotted-tone-warning-subtle-active);
|
|
369
369
|
}
|
|
370
370
|
|
|
371
|
-
[data-ui
|
|
371
|
+
[data-ui-action-sheet] [data-part-item][data-tone='danger'] {
|
|
372
372
|
--_accent: var(--slotted-tone-danger-text);
|
|
373
373
|
--_highlight: var(--slotted-tone-danger-surface);
|
|
374
374
|
--_highlight-active: var(--slotted-tone-danger-subtle-active);
|
|
@@ -381,7 +381,7 @@
|
|
|
381
381
|
* more action. It carries the bottom safe-area inset, which is where a
|
|
382
382
|
* phone's home indicator sits.
|
|
383
383
|
*/
|
|
384
|
-
[data-ui
|
|
384
|
+
[data-ui-action-sheet] > [data-part-footer] {
|
|
385
385
|
background: var(--slotted-action-sheet-footer-surface, var(--slotted-surface-sunken, Canvas));
|
|
386
386
|
border-block-start: var(--_rule-size) solid var(--_rule);
|
|
387
387
|
display: grid;
|
|
@@ -395,7 +395,7 @@
|
|
|
395
395
|
* A button with a face, on the band: the one control of the sheet that is
|
|
396
396
|
* not an item, and the one that always works — it is never disabled.
|
|
397
397
|
*/
|
|
398
|
-
[data-ui
|
|
398
|
+
[data-ui-action-sheet] [data-part-cancel] {
|
|
399
399
|
appearance: none;
|
|
400
400
|
background: var(--slotted-control-surface, ButtonFace);
|
|
401
401
|
border: var(--slotted-control-border-width, 1px) solid
|
|
@@ -421,7 +421,7 @@
|
|
|
421
421
|
}
|
|
422
422
|
|
|
423
423
|
@media (hover: hover) {
|
|
424
|
-
[data-ui
|
|
424
|
+
[data-ui-action-sheet] [data-part-cancel]:hover:not(:disabled) {
|
|
425
425
|
background: var(--slotted-tone-secondary-subtle-hover, ButtonFace);
|
|
426
426
|
}
|
|
427
427
|
}
|
|
@@ -430,31 +430,31 @@
|
|
|
430
430
|
* `button`'s press: the face settles a hairline and gives up its lift. It is
|
|
431
431
|
* instant, as a press is, and the ground eases back on release.
|
|
432
432
|
*/
|
|
433
|
-
[data-ui
|
|
433
|
+
[data-ui-action-sheet] [data-part-cancel]:active:not(:disabled) {
|
|
434
434
|
background: var(--slotted-tone-secondary-subtle-active, ButtonFace);
|
|
435
435
|
box-shadow: none;
|
|
436
436
|
translate: 0 var(--slotted-border-width-thin, 1px);
|
|
437
437
|
}
|
|
438
438
|
|
|
439
|
-
[data-ui
|
|
439
|
+
[data-ui-action-sheet] [data-part-cancel]:focus-visible {
|
|
440
440
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
441
441
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
442
442
|
}
|
|
443
443
|
|
|
444
|
-
/* ── Forced
|
|
444
|
+
/* ── Forced colors ───────────────────────────────────────────────────── */
|
|
445
445
|
|
|
446
446
|
/**
|
|
447
447
|
* The one thing the theme cannot reach: every tone surface becomes `Canvas`,
|
|
448
448
|
* so the focused row would lose its highlight.
|
|
449
449
|
*/
|
|
450
450
|
@media (forced-colors: active) {
|
|
451
|
-
[data-ui
|
|
451
|
+
[data-ui-action-sheet] [data-part-item]:focus {
|
|
452
452
|
background-color: Highlight;
|
|
453
453
|
color: HighlightText;
|
|
454
454
|
forced-color-adjust: none;
|
|
455
455
|
}
|
|
456
456
|
|
|
457
|
-
[data-ui
|
|
457
|
+
[data-ui-action-sheet] [data-part-item][data-disabled]:focus {
|
|
458
458
|
background-color: Highlight;
|
|
459
459
|
color: GrayText;
|
|
460
460
|
}
|