@slotted/styles 0.1.0-beta.4 → 0.1.0-beta.40
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 +21 -1
- package/src/accordion/accordion.css +31 -13
- package/src/accordion/accordion.tokens.json +2 -0
- 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 +97 -97
- package/src/alert/alert.tokens.json +6 -1
- package/src/app-shell/app-shell.css +472 -342
- package/src/app-shell/app-shell.tokens.json +6 -3
- package/src/aspect-ratio/aspect-ratio.css +24 -23
- package/src/attachment/attachment.css +118 -114
- package/src/avatar/avatar.css +97 -67
- package/src/avatar/avatar.tokens.json +8 -0
- package/src/avatar-group/avatar-group.css +22 -23
- package/src/badge/badge.css +58 -47
- package/src/badge/badge.tokens.json +6 -0
- package/src/breadcrumb/breadcrumb.css +52 -52
- package/src/button/button.css +408 -93
- package/src/button/button.tokens.json +13 -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 +594 -267
- package/src/calendar/calendar.tokens.json +35 -3
- package/src/card/card.css +133 -70
- package/src/card/card.tokens.json +1 -0
- package/src/carousel/carousel.css +158 -169
- package/src/cascader/cascader.css +174 -159
- package/src/cascader/cascader.tokens.json +2 -0
- package/src/chart/chart.css +300 -271
- package/src/chart/chart.tokens.json +5 -0
- package/src/checkbox/checkbox.css +190 -148
- package/src/checkbox/checkbox.tokens.json +4 -0
- package/src/checkbox-group/checkbox-group.css +7 -7
- package/src/clock/clock.css +246 -0
- package/src/clock/clock.tokens.json +44 -0
- package/src/code-block/code-block.css +85 -89
- package/src/collapsible/collapsible.css +273 -85
- package/src/collapsible/collapsible.tokens.json +6 -0
- package/src/color-picker/color-picker.css +106 -114
- package/src/column-manager/column-manager.css +111 -119
- package/src/combobox/combobox.css +219 -132
- package/src/combobox/combobox.tokens.json +4 -0
- package/src/command-palette/command-palette.css +214 -102
- package/src/command-palette/command-palette.tokens.json +4 -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 +231 -115
- package/src/dashboard-grid/dashboard-grid.tokens.json +3 -1
- package/src/data-grid/data-grid.css +637 -496
- package/src/data-grid/data-grid.tokens.json +5 -1
- package/src/data-list/data-list.css +93 -76
- 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 +31 -269
- package/src/date-picker/date-picker.tokens.json +1 -21
- package/src/date-range-picker/date-range-picker.css +72 -528
- package/src/date-range-picker/date-range-picker.tokens.json +1 -37
- 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 +49 -711
- package/src/datetime-picker/datetime-picker.tokens.json +1 -50
- package/src/datetime-range-picker/datetime-range-picker.css +60 -985
- package/src/datetime-range-picker/datetime-range-picker.tokens.json +1 -67
- package/src/description-list/description-list.css +120 -76
- 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 +462 -199
- package/src/dialog/dialog.tokens.json +10 -0
- package/src/divider/divider.css +20 -20
- package/src/drawer/drawer.css +736 -237
- package/src/drawer/drawer.tokens.json +15 -0
- package/src/entity-picker/entity-picker.css +402 -272
- package/src/entity-picker/entity-picker.tokens.json +6 -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 +58 -38
- package/src/field-group/field-group.tokens.json +3 -0
- package/src/filter-bar/filter-bar.css +224 -216
- package/src/floating-panel/floating-panel.css +147 -0
- package/src/floating-panel/floating-panel.tokens.json +32 -0
- package/src/form/form.css +103 -26
- package/src/form/form.tokens.json +6 -1
- package/src/fullscreen/fullscreen.css +26 -27
- package/src/grid/grid.css +32 -31
- 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 +147 -168
- package/src/import-export-center/import-export-center.tokens.json +1 -0
- package/src/inline/inline.css +29 -29
- package/src/inline-message/inline-message.css +162 -86
- package/src/inline-message/inline-message.tokens.json +5 -0
- package/src/kbd/kbd.css +63 -51
- package/src/kbd/kbd.tokens.json +4 -0
- package/src/link/link.css +54 -33
- package/src/link/link.tokens.json +4 -0
- package/src/list/list.css +55 -24
- package/src/list/list.tokens.json +2 -0
- package/src/list-item/list-item.css +195 -80
- package/src/list-item/list-item.tokens.json +10 -0
- package/src/listbox/listbox.css +121 -72
- package/src/listbox/listbox.tokens.json +6 -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 +166 -83
- package/src/menu/menu.tokens.json +3 -1
- package/src/menubar/menubar.css +16 -16
- package/src/message/message.css +1296 -1243
- package/src/message/message.tokens.json +14 -0
- package/src/message-scroller/message-scroller.css +323 -320
- package/src/meter/meter.css +136 -0
- package/src/meter/meter.tokens.json +23 -0
- package/src/multi-select/multi-select.css +246 -174
- package/src/multi-select/multi-select.tokens.json +3 -0
- package/src/navigation-menu/navigation-menu.css +170 -191
- package/src/navigation-menu/navigation-menu.tokens.json +1 -0
- package/src/notification-center/notification-center.css +155 -163
- package/src/notification-center/notification-center.tokens.json +4 -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 +109 -31
- package/src/page/page.tokens.json +8 -0
- package/src/page-header/page-header.css +342 -287
- package/src/page-header/page-header.tokens.json +6 -1
- package/src/pagination/pagination.css +75 -79
- package/src/picker-panel/picker-panel.css +1074 -0
- package/src/picker-panel/picker-panel.tokens.json +77 -0
- package/src/popover/popover.css +85 -65
- package/src/popover/popover.tokens.json +2 -0
- package/src/progress-indicator/progress-indicator.css +194 -137
- package/src/progress-indicator/progress-indicator.tokens.json +1 -0
- package/src/prompt-composer/prompt-composer.css +274 -116
- 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 +147 -143
- package/src/rating/rating.tokens.json +2 -0
- package/src/result-state/result-state.css +95 -102
- package/src/result-state/result-state.tokens.json +1 -0
- package/src/runtime-properties.mjs +44 -6
- package/src/saved-views/saved-views.css +43 -49
- package/src/scroll-area/scroll-area.css +50 -37
- package/src/section/section.css +311 -46
- package/src/section/section.tokens.json +13 -1
- package/src/segmented-control/segmented-control.css +221 -133
- package/src/segmented-control/segmented-control.tokens.json +7 -11
- package/src/select/select.css +226 -149
- package/src/select/select.tokens.json +4 -0
- package/src/side-navigation/side-navigation.css +204 -201
- package/src/side-navigation/side-navigation.tokens.json +2 -0
- package/src/skeleton/skeleton.css +76 -58
- package/src/slider/slider.css +108 -104
- package/src/slider/slider.tokens.json +1 -0
- 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 +26 -26
- package/src/stat-card/stat-card.css +420 -245
- package/src/stat-card/stat-card.tokens.json +8 -0
- package/src/status-indicator/status-indicator.css +126 -101
- package/src/status-indicator/status-indicator.tokens.json +0 -3
- package/src/stepper/stepper.css +78 -82
- package/src/switch/switch.css +143 -125
- package/src/switch/switch.tokens.json +4 -0
- package/src/table/table.css +653 -222
- package/src/table/table.tokens.json +10 -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 +113 -89
- package/src/tag/tag.tokens.json +11 -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 +30 -519
- package/src/time-picker/time-picker.tokens.json +1 -38
- package/src/time-range-picker/time-range-picker.css +53 -895
- package/src/time-range-picker/time-range-picker.tokens.json +1 -66
- package/src/timeline/timeline.css +280 -292
- package/src/timeline/timeline.tokens.json +5 -0
- package/src/toast/toast.css +139 -122
- package/src/toast/toast.tokens.json +7 -0
- package/src/toggle/toggle.css +34 -38
- package/src/toggle-group/toggle-group.css +73 -77
- package/src/toolbar/toolbar.css +49 -40
- package/src/toolbar/toolbar.tokens.json +2 -1
- package/src/tooltip/tooltip.css +95 -39
- package/src/tooltip/tooltip.tokens.json +1 -0
- package/src/top-navigation/top-navigation.css +253 -269
- package/src/top-navigation/top-navigation.tokens.json +1 -0
- package/src/tour/tour.css +68 -74
- package/src/tour/tour.tokens.json +1 -0
- package/src/transfer/transfer.css +164 -168
- package/src/tree/tree.css +118 -122
- package/src/typography/typography.css +67 -38
- package/src/typography/typography.tokens.json +2 -0
- package/src/upload/upload.css +256 -257
- package/src/visually-hidden/visually-hidden.css +1 -1
- package/src/wizard/wizard.css +187 -199
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
[
|
|
2
|
+
"--slotted-action-gap",
|
|
2
3
|
"--slotted-border-subtle",
|
|
3
4
|
"--slotted-border-width-thin",
|
|
4
5
|
"--slotted-control-font-family",
|
|
@@ -36,6 +37,7 @@
|
|
|
36
37
|
"--slotted-text",
|
|
37
38
|
"--slotted-text-muted",
|
|
38
39
|
"--slotted-toast-actions-gap",
|
|
40
|
+
"--slotted-toast-backdrop-filter",
|
|
39
41
|
"--slotted-toast-border-color",
|
|
40
42
|
"--slotted-toast-border-width",
|
|
41
43
|
"--slotted-toast-close-radius",
|
|
@@ -71,6 +73,11 @@
|
|
|
71
73
|
"--slotted-tone-danger-solid",
|
|
72
74
|
"--slotted-tone-danger-surface",
|
|
73
75
|
"--slotted-tone-danger-text",
|
|
76
|
+
"--slotted-tone-info-border",
|
|
77
|
+
"--slotted-tone-info-on-solid",
|
|
78
|
+
"--slotted-tone-info-solid",
|
|
79
|
+
"--slotted-tone-info-surface",
|
|
80
|
+
"--slotted-tone-info-text",
|
|
74
81
|
"--slotted-tone-secondary-border",
|
|
75
82
|
"--slotted-tone-secondary-on-solid",
|
|
76
83
|
"--slotted-tone-secondary-solid",
|
package/src/toggle/toggle.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* A `button` carrying `aria-pressed` in both states: the Button pattern's
|
|
6
6
|
* toggle button, whose label does not change when its state does. It is a
|
|
7
7
|
* mode — Bold, Wrap, Pin — and a mode is neutral until it is on and one
|
|
8
|
-
*
|
|
8
|
+
* color when it is: the accent ground inside the accent edge, which is the
|
|
9
9
|
* pair `docs/token-foundation.md` names for the chosen row, card, option
|
|
10
10
|
* and toggle. `button`'s ToggleButton is the other member, an action that
|
|
11
11
|
* persists — Follow, Subscribe — which reaches a server, waits, and stands
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* some, so the ring is held off the edge at the foundation's offset, where
|
|
25
25
|
* the joined bar draws it inward.
|
|
26
26
|
*/
|
|
27
|
-
[data-ui
|
|
27
|
+
[data-ui-toggle][data-part-root] {
|
|
28
28
|
--_height: var(--slotted-control-height-md, 34px);
|
|
29
29
|
--_padding-inline: var(--slotted-control-padding-inline-md, 13px);
|
|
30
30
|
--_font-size: var(--slotted-control-font-size-md, 13px);
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
background: transparent;
|
|
43
43
|
block-size: var(--_height);
|
|
44
44
|
/**
|
|
45
|
-
* Always a border, and always the same width. A state changes its
|
|
45
|
+
* Always a border, and always the same width. A state changes its color
|
|
46
46
|
* and never its presence: a border that appears when the control is on
|
|
47
47
|
* moves its label by a pixel.
|
|
48
48
|
*/
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
/* No tap delay waiting for a second tap the control cannot use. */
|
|
75
75
|
touch-action: manipulation;
|
|
76
76
|
/**
|
|
77
|
-
* Nothing here moves: a toggle changes
|
|
77
|
+
* Nothing here moves: a toggle changes color, and color is what the eye
|
|
78
78
|
* has to follow. The duration is the control step, so a theme retunes
|
|
79
79
|
* every control's interaction feedback once and reduced motion collapses
|
|
80
80
|
* it to a frame.
|
|
@@ -86,14 +86,14 @@
|
|
|
86
86
|
var(--slotted-control-transition-easing),
|
|
87
87
|
color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing);
|
|
88
88
|
user-select: none;
|
|
89
|
-
/* A control written inside a sentence sits on the text's
|
|
89
|
+
/* A control written inside a sentence sits on the text's center. */
|
|
90
90
|
vertical-align: middle;
|
|
91
91
|
-webkit-tap-highlight-color: transparent;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
/* ── Size ─────────────────────────────────────────────────────────────── */
|
|
95
95
|
|
|
96
|
-
[data-ui
|
|
96
|
+
[data-ui-toggle][data-part-root][data-size='sm'] {
|
|
97
97
|
--_height: var(--slotted-control-height-sm, 30px);
|
|
98
98
|
--_padding-inline: var(--slotted-control-padding-inline-sm, 10px);
|
|
99
99
|
--_font-size: var(--slotted-control-font-size-sm, 12px);
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
--_gap: var(--slotted-control-gap-sm, 6px);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
[data-ui
|
|
104
|
+
[data-ui-toggle][data-part-root][data-size='lg'] {
|
|
105
105
|
--_height: var(--slotted-control-height-lg, 38px);
|
|
106
106
|
--_padding-inline: var(--slotted-control-padding-inline-lg, 16px);
|
|
107
107
|
--_font-size: var(--slotted-control-font-size-lg, 14px);
|
|
@@ -113,17 +113,17 @@
|
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
115
|
* A control with no words is a square holding one mark, so its inline
|
|
116
|
-
* padding is whatever
|
|
116
|
+
* padding is whatever centers that mark rather than the padding a label
|
|
117
117
|
* needs, and its width is its height. An empty label box counts as no
|
|
118
118
|
* words: the Angular binding projects the words into a box it always
|
|
119
119
|
* renders, and a box with nothing in it must not hold the gap open either.
|
|
120
120
|
*/
|
|
121
|
-
[data-ui
|
|
121
|
+
[data-ui-toggle][data-part-root]:not(:has([data-part-label]:not(:empty))) {
|
|
122
122
|
inline-size: var(--_height);
|
|
123
123
|
padding-inline: 0;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
[data-ui
|
|
126
|
+
[data-ui-toggle] [data-part-label]:empty {
|
|
127
127
|
display: none;
|
|
128
128
|
}
|
|
129
129
|
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
* from its container, and a bare glyph host such as `ng-icon` reads the
|
|
133
133
|
* slot's font-size, so both are the glyph scale.
|
|
134
134
|
*/
|
|
135
|
-
[data-ui
|
|
135
|
+
[data-ui-toggle] [data-part-icon] {
|
|
136
136
|
--slotted-icon-size: var(--_icon-size);
|
|
137
137
|
|
|
138
138
|
block-size: var(--_icon-size);
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
inline-size: var(--_icon-size);
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
[data-ui
|
|
145
|
+
[data-ui-toggle] [data-part-icon] > * {
|
|
146
146
|
block-size: 100%;
|
|
147
147
|
display: block;
|
|
148
148
|
inline-size: 100%;
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
* whole in the DOM — the library's rule is that truncation never removes
|
|
156
156
|
* content.
|
|
157
157
|
*/
|
|
158
|
-
[data-ui
|
|
158
|
+
[data-ui-toggle] [data-part-label] {
|
|
159
159
|
overflow: hidden;
|
|
160
160
|
text-overflow: ellipsis;
|
|
161
161
|
white-space: nowrap;
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
|
|
164
164
|
/* ── The edge ─────────────────────────────────────────────────────────── */
|
|
165
165
|
|
|
166
|
-
[data-ui
|
|
166
|
+
[data-ui-toggle][data-part-root][data-variant='outline'] {
|
|
167
167
|
border-color: var(--_border-color);
|
|
168
168
|
/* A framed control lifts off its ground at rest, as button's outline does. */
|
|
169
169
|
box-shadow: var(--slotted-toggle-shadow, var(--slotted-control-shadow, none));
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
* `STATE_PRECEDENCE` sets. Both variants take the edge: a ghost toggle that
|
|
178
178
|
* is on has become a framed thing, and the edge is half of what says so.
|
|
179
179
|
*/
|
|
180
|
-
[data-ui
|
|
180
|
+
[data-ui-toggle][data-part-root][data-pressed]:not(:disabled):not([data-disabled]) {
|
|
181
181
|
background: var(
|
|
182
182
|
--slotted-toggle-pressed-background,
|
|
183
183
|
var(--slotted-tone-accent-subtle-active, Highlight)
|
|
@@ -198,18 +198,14 @@
|
|
|
198
198
|
* is on answers the pointer on the accent ground's own steps, so the two
|
|
199
199
|
* states share no surface in any of theirs.
|
|
200
200
|
*/
|
|
201
|
-
[data-ui
|
|
202
|
-
[data-pressed]
|
|
203
|
-
) {
|
|
201
|
+
[data-ui-toggle][data-part-root]:hover:not(:disabled):not([data-disabled]):not([data-pressed]) {
|
|
204
202
|
background: var(
|
|
205
203
|
--slotted-toggle-hover-background,
|
|
206
204
|
var(--slotted-tone-secondary-subtle-hover, ButtonFace)
|
|
207
205
|
);
|
|
208
206
|
}
|
|
209
207
|
|
|
210
|
-
[data-ui
|
|
211
|
-
[data-pressed]
|
|
212
|
-
) {
|
|
208
|
+
[data-ui-toggle][data-part-root]:active:not(:disabled):not([data-disabled]):not([data-pressed]) {
|
|
213
209
|
background: var(
|
|
214
210
|
--slotted-toggle-active-background,
|
|
215
211
|
var(--slotted-tone-secondary-subtle-active, ButtonFace)
|
|
@@ -220,14 +216,14 @@
|
|
|
220
216
|
transition-duration: var(--slotted-duration-instant);
|
|
221
217
|
}
|
|
222
218
|
|
|
223
|
-
[data-ui
|
|
219
|
+
[data-ui-toggle][data-part-root][data-pressed]:hover:not(:disabled):not([data-disabled]) {
|
|
224
220
|
background: var(
|
|
225
221
|
--slotted-toggle-pressed-hover-background,
|
|
226
222
|
var(--slotted-tone-accent-subtle-hover, Highlight)
|
|
227
223
|
);
|
|
228
224
|
}
|
|
229
225
|
|
|
230
|
-
[data-ui
|
|
226
|
+
[data-ui-toggle][data-part-root][data-pressed]:active:not(:disabled):not([data-disabled]) {
|
|
231
227
|
background: var(
|
|
232
228
|
--slotted-toggle-pressed-background,
|
|
233
229
|
var(--slotted-tone-accent-subtle-active, Highlight)
|
|
@@ -241,18 +237,18 @@
|
|
|
241
237
|
* The same chip `toggle-group` draws: a rounded item with the control edge,
|
|
242
238
|
* pressed in the neutral tone's ink.
|
|
243
239
|
*/
|
|
244
|
-
[data-ui
|
|
240
|
+
[data-ui-toggle][data-part-root][data-variant='chips'] {
|
|
245
241
|
border-color: var(--_border-color);
|
|
246
242
|
border-radius: var(--slotted-toggle-chips-radius, var(--slotted-radius-full, 9999px));
|
|
247
243
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
248
244
|
}
|
|
249
245
|
|
|
250
|
-
[data-ui
|
|
246
|
+
[data-ui-toggle][data-part-root][data-variant='chips'][data-pressed]:not(:disabled):not(
|
|
251
247
|
[data-disabled]
|
|
252
248
|
),
|
|
253
|
-
[data-ui
|
|
254
|
-
|
|
255
|
-
)
|
|
249
|
+
[data-ui-toggle][data-part-root][data-variant='chips'][data-pressed]:active:not(:disabled):not(
|
|
250
|
+
[data-disabled]
|
|
251
|
+
) {
|
|
256
252
|
background: var(
|
|
257
253
|
--slotted-toggle-chips-pressed-background,
|
|
258
254
|
var(--slotted-tone-neutral-solid, CanvasText)
|
|
@@ -264,15 +260,15 @@
|
|
|
264
260
|
color: var(--slotted-toggle-chips-pressed-color, var(--slotted-tone-neutral-on-solid, Canvas));
|
|
265
261
|
}
|
|
266
262
|
|
|
267
|
-
[data-ui
|
|
263
|
+
[data-ui-toggle][data-part-root][data-variant='chips'][data-pressed]:hover:not(:disabled):not(
|
|
268
264
|
[data-disabled]
|
|
269
265
|
) {
|
|
270
266
|
background: var(--slotted-tone-neutral-solid-hover, CanvasText);
|
|
271
267
|
border-color: var(--slotted-tone-neutral-solid-hover, CanvasText);
|
|
272
268
|
}
|
|
273
269
|
|
|
274
|
-
[data-ui
|
|
275
|
-
[data-ui
|
|
270
|
+
[data-ui-toggle][data-part-root][data-variant='chips']:disabled,
|
|
271
|
+
[data-ui-toggle][data-part-root][data-variant='chips'][data-disabled] {
|
|
276
272
|
border-color: var(--slotted-disabled-border, GrayText);
|
|
277
273
|
}
|
|
278
274
|
|
|
@@ -282,7 +278,7 @@
|
|
|
282
278
|
* A standalone control has room around it, so the ring is held off the
|
|
283
279
|
* edge the way every other control in the library holds it.
|
|
284
280
|
*/
|
|
285
|
-
[data-ui
|
|
281
|
+
[data-ui-toggle][data-part-root]:focus-visible {
|
|
286
282
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
287
283
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
288
284
|
}
|
|
@@ -293,15 +289,15 @@
|
|
|
293
289
|
* `[data-disabled]` as well as `:disabled`, because a control taken out of
|
|
294
290
|
* action with a `fieldset` carries no attribute of its own.
|
|
295
291
|
*/
|
|
296
|
-
[data-ui
|
|
297
|
-
[data-ui
|
|
292
|
+
[data-ui-toggle][data-part-root]:disabled,
|
|
293
|
+
[data-ui-toggle][data-part-root][data-disabled] {
|
|
298
294
|
background: transparent;
|
|
299
295
|
color: var(--slotted-toggle-disabled-color, var(--slotted-disabled-foreground, GrayText));
|
|
300
296
|
cursor: not-allowed;
|
|
301
297
|
}
|
|
302
298
|
|
|
303
|
-
[data-ui
|
|
304
|
-
[data-ui
|
|
299
|
+
[data-ui-toggle][data-part-root][data-variant='outline']:disabled,
|
|
300
|
+
[data-ui-toggle][data-part-root][data-variant='outline'][data-disabled] {
|
|
305
301
|
border-color: var(
|
|
306
302
|
--slotted-toggle-disabled-border-color,
|
|
307
303
|
var(--slotted-disabled-border, GrayText)
|
|
@@ -317,8 +313,8 @@
|
|
|
317
313
|
* cannot change. In `high-contrast` the ground is the page's own white, and
|
|
318
314
|
* the edge is then the only thing carrying it.
|
|
319
315
|
*/
|
|
320
|
-
[data-ui
|
|
321
|
-
[data-ui
|
|
316
|
+
[data-ui-toggle][data-part-root][data-pressed]:disabled,
|
|
317
|
+
[data-ui-toggle][data-part-root][data-pressed][data-disabled] {
|
|
322
318
|
background: var(
|
|
323
319
|
--slotted-toggle-disabled-pressed-background,
|
|
324
320
|
var(--slotted-disabled-background, ButtonFace)
|