@slotted/styles 0.1.0-beta.2 → 0.1.0-beta.21
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 +154 -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 +157 -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 +212 -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 +57 -52
- package/src/date-field/date-field.tokens.json +1 -0
- package/src/date-picker/date-picker.css +75 -57
- package/src/date-picker/date-picker.tokens.json +1 -0
- package/src/date-range-picker/date-range-picker.css +116 -118
- package/src/datetime-field/datetime-field.css +80 -80
- package/src/datetime-field/datetime-field.tokens.json +1 -0
- package/src/datetime-picker/datetime-picker.css +63 -63
- package/src/datetime-range-picker/datetime-range-picker.css +151 -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 +273 -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 +177 -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 +83 -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 +153 -132
- 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 +91 -71
- package/src/tag/tag.tokens.json +9 -0
- package/src/tags-input/tags-input.css +147 -82
- package/src/tags-input/tags-input.tokens.json +7 -1
- package/src/text-field/text-field.css +134 -136
- package/src/text-field/text-field.tokens.json +1 -0
- package/src/textarea/textarea.css +33 -28
- package/src/textarea/textarea.tokens.json +1 -0
- package/src/time-field/time-field.css +74 -69
- package/src/time-field/time-field.tokens.json +1 -0
- package/src/time-picker/time-picker.css +58 -58
- package/src/time-range-picker/time-range-picker.css +128 -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
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"--slotted-disabled-background",
|
|
32
32
|
"--slotted-disabled-border",
|
|
33
33
|
"--slotted-disabled-foreground",
|
|
34
|
+
"--slotted-duration-medium",
|
|
34
35
|
"--slotted-duration-short",
|
|
35
36
|
"--slotted-easing-enter",
|
|
36
37
|
"--slotted-focus-ring-color",
|
|
@@ -39,7 +40,6 @@
|
|
|
39
40
|
"--slotted-radius-full",
|
|
40
41
|
"--slotted-radius-md",
|
|
41
42
|
"--slotted-radius-sm",
|
|
42
|
-
"--slotted-radius-xs",
|
|
43
43
|
"--slotted-shadow-xs",
|
|
44
44
|
"--slotted-space-1",
|
|
45
45
|
"--slotted-space-2",
|
|
@@ -63,8 +63,14 @@
|
|
|
63
63
|
"--slotted-tabs-hover-background",
|
|
64
64
|
"--slotted-tabs-hover-color",
|
|
65
65
|
"--slotted-tabs-hover-marker-color",
|
|
66
|
+
"--slotted-tabs-hover-marker-opacity",
|
|
66
67
|
"--slotted-tabs-list-gap",
|
|
67
68
|
"--slotted-tabs-marker-color",
|
|
69
|
+
"--slotted-tabs-marker-easing",
|
|
70
|
+
"--slotted-tabs-marker-inset",
|
|
71
|
+
"--slotted-tabs-marker-offset",
|
|
72
|
+
"--slotted-tabs-marker-radius",
|
|
73
|
+
"--slotted-tabs-marker-size",
|
|
68
74
|
"--slotted-tabs-scroll-color",
|
|
69
75
|
"--slotted-tabs-selected-color",
|
|
70
76
|
"--slotted-tabs-track-color",
|
package/src/tag/tag.css
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* disagrees with the type it contains and no density can leave one of its
|
|
24
24
|
* controls unhittable.
|
|
25
25
|
*/
|
|
26
|
-
[data-ui
|
|
26
|
+
[data-ui-tag][data-part-root] {
|
|
27
27
|
/**
|
|
28
28
|
* Tone. The neutral fill is the tone's `solid-hover` step rather than its
|
|
29
29
|
* `solid` one, for the reason `badge` recorded: `solid` is the colour of
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
* `tags-input` set it from the room their frame has left); and the edge,
|
|
66
66
|
* so a host can mark one chip — the one that answered a duplicate —
|
|
67
67
|
* without reaching into this sheet. Both are read here, once, and a host
|
|
68
|
-
* writes `[data-ui
|
|
68
|
+
* writes `[data-ui-tag]` nowhere.
|
|
69
69
|
*/
|
|
70
70
|
--_inset-block: var(--slotted-tag-inset-block, var(--slotted-space-2, 0.25rem));
|
|
71
71
|
--_inset-inline: var(--slotted-space-4, 0.5rem);
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
* the sheet that was missing it, and the two hosts that collapse a row of
|
|
148
148
|
* chips both write the attribute and neither could have known.
|
|
149
149
|
*/
|
|
150
|
-
[data-ui
|
|
150
|
+
[data-ui-tag][data-part-root][hidden] {
|
|
151
151
|
display: none;
|
|
152
152
|
}
|
|
153
153
|
|
|
@@ -157,11 +157,11 @@
|
|
|
157
157
|
* The one tone whose fill is the colour of the page. It keeps the tone's own
|
|
158
158
|
* border, where the other four let their fill be their edge.
|
|
159
159
|
*/
|
|
160
|
-
[data-ui
|
|
160
|
+
[data-ui-tag][data-part-root][data-tone='secondary'] {
|
|
161
161
|
--_edge: var(--_border);
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
[data-ui
|
|
164
|
+
[data-ui-tag][data-part-root][data-tone='accent'] {
|
|
165
165
|
--_solid: var(--slotted-tone-accent-solid);
|
|
166
166
|
--_solid-hover: var(--slotted-tone-accent-solid-hover);
|
|
167
167
|
--_solid-active: var(--slotted-tone-accent-solid-active);
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
--_text: var(--slotted-tone-accent-text);
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
[data-ui
|
|
176
|
+
[data-ui-tag][data-part-root][data-tone='success'] {
|
|
177
177
|
--_solid: var(--slotted-tone-success-solid);
|
|
178
178
|
--_solid-hover: var(--slotted-tone-success-solid-hover);
|
|
179
179
|
--_solid-active: var(--slotted-tone-success-solid-active);
|
|
@@ -185,7 +185,19 @@
|
|
|
185
185
|
--_text: var(--slotted-tone-success-text);
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
-
[data-ui
|
|
188
|
+
[data-ui-tag][data-part-root][data-tone='info'] {
|
|
189
|
+
--_solid: var(--slotted-tone-info-solid);
|
|
190
|
+
--_solid-hover: var(--slotted-tone-info-solid-hover);
|
|
191
|
+
--_solid-active: var(--slotted-tone-info-solid-active);
|
|
192
|
+
--_on-solid: var(--slotted-tone-info-on-solid);
|
|
193
|
+
--_surface: var(--slotted-tone-info-surface);
|
|
194
|
+
--_subtle-hover: var(--slotted-tone-info-subtle-hover);
|
|
195
|
+
--_subtle-active: var(--slotted-tone-info-subtle-active);
|
|
196
|
+
--_border: var(--slotted-tag-border-color, var(--slotted-tone-info-border));
|
|
197
|
+
--_text: var(--slotted-tone-info-text);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
[data-ui-tag][data-part-root][data-tone='warning'] {
|
|
189
201
|
--_solid: var(--slotted-tone-warning-solid);
|
|
190
202
|
--_solid-hover: var(--slotted-tone-warning-solid-hover);
|
|
191
203
|
--_solid-active: var(--slotted-tone-warning-solid-active);
|
|
@@ -197,7 +209,7 @@
|
|
|
197
209
|
--_text: var(--slotted-tone-warning-text);
|
|
198
210
|
}
|
|
199
211
|
|
|
200
|
-
[data-ui
|
|
212
|
+
[data-ui-tag][data-part-root][data-tone='danger'] {
|
|
201
213
|
--_solid: var(--slotted-tone-danger-solid);
|
|
202
214
|
--_solid-hover: var(--slotted-tone-danger-solid-hover);
|
|
203
215
|
--_solid-active: var(--slotted-tone-danger-solid-active);
|
|
@@ -218,29 +230,36 @@
|
|
|
218
230
|
* with nothing behind it. `soft` keeps its edge because in `high-contrast`
|
|
219
231
|
* every tone surface collapses to the page's own white, and there it
|
|
220
232
|
* converges with `outline` — which is what a high-contrast scheme is for.
|
|
233
|
+
* `dashed` is `outline` with the edge drawn in dashes; a selected tag fills,
|
|
234
|
+
* and its edge is solid again.
|
|
221
235
|
*/
|
|
222
236
|
|
|
223
|
-
[data-ui
|
|
237
|
+
[data-ui-tag][data-part-root][data-variant='solid'] {
|
|
224
238
|
background-color: var(--_solid, ButtonFace);
|
|
225
239
|
border-color: var(--_edge, ButtonFace);
|
|
226
240
|
color: var(--_on-solid, ButtonText);
|
|
227
241
|
}
|
|
228
242
|
|
|
229
|
-
[data-ui
|
|
243
|
+
[data-ui-tag][data-part-root][data-variant='soft'] {
|
|
230
244
|
background-color: var(--_surface, ButtonFace);
|
|
231
245
|
border-color: var(--_border, ButtonBorder);
|
|
232
246
|
color: var(--_text, ButtonText);
|
|
233
247
|
}
|
|
234
248
|
|
|
235
|
-
[data-ui
|
|
249
|
+
[data-ui-tag][data-part-root][data-variant='outline'],
|
|
250
|
+
[data-ui-tag][data-part-root][data-variant='dashed'] {
|
|
236
251
|
background-color: transparent;
|
|
237
252
|
border-color: var(--_border, ButtonBorder);
|
|
238
253
|
color: var(--_text, ButtonText);
|
|
239
254
|
}
|
|
240
255
|
|
|
256
|
+
[data-ui-tag][data-part-root][data-variant='dashed']:not([data-selected]) {
|
|
257
|
+
border-style: dashed;
|
|
258
|
+
}
|
|
259
|
+
|
|
241
260
|
/* ── Size ─────────────────────────────────────────────────────────────── */
|
|
242
261
|
|
|
243
|
-
[data-ui
|
|
262
|
+
[data-ui-tag][data-part-root][data-size='sm'] {
|
|
244
263
|
--_font-size: var(--slotted-control-font-size-sm, 12px);
|
|
245
264
|
--_inset-block: var(--slotted-tag-inset-block, var(--slotted-space-1, 0.125rem));
|
|
246
265
|
--_inset-inline: var(--slotted-space-3, 0.375rem);
|
|
@@ -252,7 +271,7 @@
|
|
|
252
271
|
* the same reason: a 12px chip and a 13px chip should not carry visibly
|
|
253
272
|
* different glyphs.
|
|
254
273
|
*/
|
|
255
|
-
[data-ui
|
|
274
|
+
[data-ui-tag][data-part-root][data-size='lg'] {
|
|
256
275
|
--_font-size: var(--slotted-control-font-size-lg, 14px);
|
|
257
276
|
--_icon-size: var(--slotted-control-icon-size-md, 16px);
|
|
258
277
|
--_inner-size: var(--slotted-control-inner-size-md, 24px);
|
|
@@ -263,7 +282,7 @@
|
|
|
263
282
|
|
|
264
283
|
/* ── Shape ────────────────────────────────────────────────────────────── */
|
|
265
284
|
|
|
266
|
-
[data-ui
|
|
285
|
+
[data-ui-tag][data-part-root][data-shape='square'] {
|
|
267
286
|
--_radius: var(--slotted-radius-sm, 4px);
|
|
268
287
|
}
|
|
269
288
|
|
|
@@ -275,7 +294,7 @@
|
|
|
275
294
|
* ground around itself. It is a `span` when the tag does nothing and the
|
|
276
295
|
* element its member names when it does.
|
|
277
296
|
*/
|
|
278
|
-
[data-ui
|
|
297
|
+
[data-ui-tag] [data-part-body] {
|
|
279
298
|
align-items: center;
|
|
280
299
|
/* The root paints the ground; the body paints only its own states. */
|
|
281
300
|
background-color: transparent;
|
|
@@ -304,7 +323,7 @@
|
|
|
304
323
|
}
|
|
305
324
|
|
|
306
325
|
/* The only child rounds both ends, which is every tag that cannot be removed. */
|
|
307
|
-
[data-ui
|
|
326
|
+
[data-ui-tag] [data-part-body]:last-child {
|
|
308
327
|
border-end-end-radius: var(--_inner-radius);
|
|
309
328
|
border-start-end-radius: var(--_inner-radius);
|
|
310
329
|
}
|
|
@@ -318,11 +337,11 @@
|
|
|
318
337
|
* mostly of air. What is left is the gap the chip uses between any two things
|
|
319
338
|
* inside it.
|
|
320
339
|
*/
|
|
321
|
-
[data-ui
|
|
340
|
+
[data-ui-tag] [data-part-body]:has(+ [data-part-remove]) {
|
|
322
341
|
padding-inline-end: var(--_gap);
|
|
323
342
|
}
|
|
324
343
|
|
|
325
|
-
[data-ui
|
|
344
|
+
[data-ui-tag] [data-part-body]:is(a, button) {
|
|
326
345
|
cursor: pointer;
|
|
327
346
|
}
|
|
328
347
|
|
|
@@ -332,7 +351,7 @@
|
|
|
332
351
|
* Where the line is clipped. `min-inline-size: 0` is what lets the box
|
|
333
352
|
* shrink below its content inside the flex body.
|
|
334
353
|
*/
|
|
335
|
-
[data-ui
|
|
354
|
+
[data-ui-tag] [data-part-label] {
|
|
336
355
|
min-inline-size: 0;
|
|
337
356
|
overflow: hidden;
|
|
338
357
|
text-overflow: ellipsis;
|
|
@@ -349,7 +368,7 @@
|
|
|
349
368
|
}
|
|
350
369
|
|
|
351
370
|
@supports (text-box: trim-both cap alphabetic) {
|
|
352
|
-
[data-ui
|
|
371
|
+
[data-ui-tag] [data-part-label] {
|
|
353
372
|
/**
|
|
354
373
|
* The line box a flex container centres is not symmetric around the
|
|
355
374
|
* letters inside it: the ascender reaches further above the cap than the
|
|
@@ -375,8 +394,8 @@
|
|
|
375
394
|
* from its container, and a bare glyph host such as `ng-icon` reads the
|
|
376
395
|
* slot's font-size, so both are the glyph scale.
|
|
377
396
|
*/
|
|
378
|
-
[data-ui
|
|
379
|
-
[data-ui
|
|
397
|
+
[data-ui-tag] [data-part-start],
|
|
398
|
+
[data-ui-tag] [data-part-end] {
|
|
380
399
|
--slotted-icon-size: var(--_icon-size);
|
|
381
400
|
|
|
382
401
|
align-items: center;
|
|
@@ -390,8 +409,8 @@
|
|
|
390
409
|
line-height: 1;
|
|
391
410
|
}
|
|
392
411
|
|
|
393
|
-
[data-ui
|
|
394
|
-
[data-ui
|
|
412
|
+
[data-ui-tag] [data-part-start] > *,
|
|
413
|
+
[data-ui-tag] [data-part-end] > * {
|
|
395
414
|
block-size: 100%;
|
|
396
415
|
display: block;
|
|
397
416
|
inline-size: 100%;
|
|
@@ -410,7 +429,7 @@
|
|
|
410
429
|
* `hideSingleSelectionIndicator` to avoid it; the transition is the third
|
|
411
430
|
* answer, and the theme collapses its duration under reduced motion.
|
|
412
431
|
*/
|
|
413
|
-
[data-ui
|
|
432
|
+
[data-ui-tag] [data-part-indicator] {
|
|
414
433
|
--slotted-icon-size: var(--_icon-size);
|
|
415
434
|
|
|
416
435
|
align-items: center;
|
|
@@ -433,7 +452,7 @@
|
|
|
433
452
|
opacity var(--slotted-duration-short) var(--slotted-easing-standard);
|
|
434
453
|
}
|
|
435
454
|
|
|
436
|
-
[data-ui
|
|
455
|
+
[data-ui-tag][data-part-root][data-selected] [data-part-indicator] {
|
|
437
456
|
inline-size: var(--_icon-size);
|
|
438
457
|
margin-inline-end: 0;
|
|
439
458
|
opacity: 1;
|
|
@@ -457,7 +476,7 @@
|
|
|
457
476
|
* The mark is the `x` glyph the binding renders; the control hands its icon
|
|
458
477
|
* box the chip's glyph size.
|
|
459
478
|
*/
|
|
460
|
-
[data-ui
|
|
479
|
+
[data-ui-tag] [data-part-remove] {
|
|
461
480
|
--slotted-icon-size: var(--_icon-size);
|
|
462
481
|
|
|
463
482
|
align-items: center;
|
|
@@ -491,7 +510,7 @@
|
|
|
491
510
|
* falls short and is inert on the two larger sizes, where the chip is already
|
|
492
511
|
* taller than the minimum.
|
|
493
512
|
*/
|
|
494
|
-
[data-ui
|
|
513
|
+
[data-ui-tag] [data-part-remove]::after {
|
|
495
514
|
content: '';
|
|
496
515
|
inset: min(0px, calc((100% - var(--slotted-target-min, 24px)) / 2));
|
|
497
516
|
position: absolute;
|
|
@@ -504,7 +523,7 @@
|
|
|
504
523
|
* segment 24 wide and 32 tall. The halo above grows to 44 pixels around it.
|
|
505
524
|
*/
|
|
506
525
|
@media (pointer: coarse) {
|
|
507
|
-
[data-ui
|
|
526
|
+
[data-ui-tag] [data-part-remove] {
|
|
508
527
|
inline-size: max(
|
|
509
528
|
var(--slotted-target-min, 24px),
|
|
510
529
|
min(calc(var(--_icon-size) + 2 * var(--slotted-space-2, 0.25rem)), var(--_inner-size)),
|
|
@@ -512,14 +531,14 @@
|
|
|
512
531
|
);
|
|
513
532
|
}
|
|
514
533
|
|
|
515
|
-
[data-ui
|
|
534
|
+
[data-ui-tag] [data-part-remove]::after {
|
|
516
535
|
inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
|
|
517
536
|
}
|
|
518
537
|
}
|
|
519
538
|
|
|
520
539
|
/* A tag that is only a remove control is not a tag, but the rounding is one
|
|
521
540
|
rule either way rather than a case the sheet has to know about. */
|
|
522
|
-
[data-ui
|
|
541
|
+
[data-ui-tag] [data-part-remove]:first-child {
|
|
523
542
|
border-end-start-radius: var(--_inner-radius);
|
|
524
543
|
border-start-start-radius: var(--_inner-radius);
|
|
525
544
|
}
|
|
@@ -531,7 +550,7 @@
|
|
|
531
550
|
* is the rule `button` set for `pressed`: "on" is never one shade away from
|
|
532
551
|
* "hovered".
|
|
533
552
|
*/
|
|
534
|
-
[data-ui
|
|
553
|
+
[data-ui-tag][data-part-root][data-selected]:not([data-disabled]) {
|
|
535
554
|
background-color: var(--_solid, ButtonFace);
|
|
536
555
|
border-color: var(--_edge, ButtonBorder);
|
|
537
556
|
color: var(--_on-solid, ButtonText);
|
|
@@ -558,7 +577,7 @@
|
|
|
558
577
|
* the two component tokens are for.
|
|
559
578
|
*/
|
|
560
579
|
|
|
561
|
-
[data-ui
|
|
580
|
+
[data-ui-tag][data-part-root] {
|
|
562
581
|
--_state-hover: color-mix(
|
|
563
582
|
in oklab,
|
|
564
583
|
currentColor var(--slotted-tag-state-layer-hover, 8%),
|
|
@@ -571,27 +590,27 @@
|
|
|
571
590
|
);
|
|
572
591
|
}
|
|
573
592
|
|
|
574
|
-
[data-ui
|
|
575
|
-
:is([data-part
|
|
593
|
+
[data-ui-tag][data-part-root][data-variant='soft']:not([data-disabled]):not([data-selected])
|
|
594
|
+
:is([data-part-body]:is(a, button), [data-part-remove]):hover:not(:disabled) {
|
|
576
595
|
background-color: var(--_state-hover);
|
|
577
596
|
}
|
|
578
597
|
|
|
579
|
-
[data-ui
|
|
580
|
-
:is([data-part
|
|
598
|
+
[data-ui-tag][data-part-root][data-variant='soft']:not([data-disabled]):not([data-selected])
|
|
599
|
+
:is([data-part-body]:is(a, button), [data-part-remove]):active:not(:disabled) {
|
|
581
600
|
background-color: var(--_state-active);
|
|
582
601
|
}
|
|
583
602
|
|
|
584
|
-
[data-ui
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
:is([data-part
|
|
603
|
+
[data-ui-tag][data-part-root][data-variant='outline']:not([data-disabled]):not([data-selected])
|
|
604
|
+
:is([data-part-body]:is(a, button), [data-part-remove]):hover:not(:disabled),
|
|
605
|
+
[data-ui-tag][data-part-root][data-variant='dashed']:not([data-disabled]):not([data-selected])
|
|
606
|
+
:is([data-part-body]:is(a, button), [data-part-remove]):hover:not(:disabled) {
|
|
588
607
|
background-color: var(--_subtle-hover, ButtonFace);
|
|
589
608
|
}
|
|
590
609
|
|
|
591
|
-
[data-ui
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
:is([data-part
|
|
610
|
+
[data-ui-tag][data-part-root][data-variant='outline']:not([data-disabled]):not([data-selected])
|
|
611
|
+
:is([data-part-body]:is(a, button), [data-part-remove]):active:not(:disabled),
|
|
612
|
+
[data-ui-tag][data-part-root][data-variant='dashed']:not([data-disabled]):not([data-selected])
|
|
613
|
+
:is([data-part-body]:is(a, button), [data-part-remove]):active:not(:disabled) {
|
|
595
614
|
background-color: var(--_subtle-active, ButtonFace);
|
|
596
615
|
}
|
|
597
616
|
|
|
@@ -599,17 +618,17 @@
|
|
|
599
618
|
* A filled chip washes along its own ramp, as `button` does — and a selected
|
|
600
619
|
* chip is a filled chip whatever its variant, so the two share these rules.
|
|
601
620
|
*/
|
|
602
|
-
[data-ui
|
|
603
|
-
:is([data-part
|
|
604
|
-
[data-ui
|
|
605
|
-
:is([data-part
|
|
621
|
+
[data-ui-tag][data-part-root][data-variant='solid']:not([data-disabled])
|
|
622
|
+
:is([data-part-body]:is(a, button), [data-part-remove]):hover:not(:disabled),
|
|
623
|
+
[data-ui-tag][data-part-root][data-selected]:not([data-disabled])
|
|
624
|
+
:is([data-part-body]:is(a, button), [data-part-remove]):hover:not(:disabled) {
|
|
606
625
|
background-color: var(--_solid-hover, Highlight);
|
|
607
626
|
}
|
|
608
627
|
|
|
609
|
-
[data-ui
|
|
610
|
-
:is([data-part
|
|
611
|
-
[data-ui
|
|
612
|
-
:is([data-part
|
|
628
|
+
[data-ui-tag][data-part-root][data-variant='solid']:not([data-disabled])
|
|
629
|
+
:is([data-part-body]:is(a, button), [data-part-remove]):active:not(:disabled),
|
|
630
|
+
[data-ui-tag][data-part-root][data-selected]:not([data-disabled])
|
|
631
|
+
:is([data-part-body]:is(a, button), [data-part-remove]):active:not(:disabled) {
|
|
613
632
|
background-color: var(--_solid-active, Highlight);
|
|
614
633
|
}
|
|
615
634
|
|
|
@@ -637,8 +656,8 @@
|
|
|
637
656
|
* target: a rounded rectangle floating inside the segment would be prettier
|
|
638
657
|
* and would say the hit area is somewhere it is not.
|
|
639
658
|
*/
|
|
640
|
-
[data-ui
|
|
641
|
-
[data-ui
|
|
659
|
+
[data-ui-tag] [data-part-body]:focus-visible,
|
|
660
|
+
[data-ui-tag] [data-part-remove]:focus-visible {
|
|
642
661
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
643
662
|
outline-offset: calc(-2 * var(--slotted-focus-ring-width, 2px));
|
|
644
663
|
}
|
|
@@ -648,7 +667,7 @@
|
|
|
648
667
|
* It is drawn for one moment: the group takes focus when the last tag it
|
|
649
668
|
* held is removed, so the keyboard is not returned to the top of the page.
|
|
650
669
|
*/
|
|
651
|
-
[data-ui
|
|
670
|
+
[data-ui-tag][data-part-group]:focus-visible {
|
|
652
671
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
653
672
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
654
673
|
}
|
|
@@ -664,7 +683,7 @@
|
|
|
664
683
|
* a control and a control that keeps its place in the tab sequence carries
|
|
665
684
|
* `aria-disabled` and no `:disabled`.
|
|
666
685
|
*/
|
|
667
|
-
[data-ui
|
|
686
|
+
[data-ui-tag][data-part-root][data-disabled] {
|
|
668
687
|
color: var(--slotted-disabled-foreground, GrayText);
|
|
669
688
|
}
|
|
670
689
|
|
|
@@ -676,21 +695,22 @@
|
|
|
676
695
|
* capture showed "Disabled selected" as a check and two words floating on
|
|
677
696
|
* the page with no box around them.
|
|
678
697
|
*/
|
|
679
|
-
[data-ui
|
|
680
|
-
[data-ui
|
|
681
|
-
[data-ui
|
|
698
|
+
[data-ui-tag][data-part-root][data-variant='solid'][data-disabled],
|
|
699
|
+
[data-ui-tag][data-part-root][data-variant='soft'][data-disabled],
|
|
700
|
+
[data-ui-tag][data-part-root][data-selected][data-disabled] {
|
|
682
701
|
background-color: var(--slotted-disabled-background, Canvas);
|
|
683
702
|
border-color: var(--slotted-disabled-border, GrayText);
|
|
684
703
|
}
|
|
685
704
|
|
|
686
|
-
[data-ui
|
|
705
|
+
[data-ui-tag][data-part-root][data-variant='outline'][data-disabled],
|
|
706
|
+
[data-ui-tag][data-part-root][data-variant='dashed'][data-disabled] {
|
|
687
707
|
background-color: transparent;
|
|
688
708
|
border-color: var(--slotted-disabled-border, GrayText);
|
|
689
709
|
}
|
|
690
710
|
|
|
691
|
-
[data-ui
|
|
692
|
-
[data-ui
|
|
693
|
-
[data-ui
|
|
711
|
+
[data-ui-tag][data-part-root][data-disabled] :is([data-part-body], [data-part-remove]),
|
|
712
|
+
[data-ui-tag] [data-part-body]:disabled,
|
|
713
|
+
[data-ui-tag] [data-part-remove]:disabled {
|
|
694
714
|
background-color: transparent;
|
|
695
715
|
cursor: not-allowed;
|
|
696
716
|
}
|
|
@@ -699,7 +719,7 @@
|
|
|
699
719
|
* A remove control the consumer disabled on its own, inside a chip that is
|
|
700
720
|
* otherwise operable. It loses its colour rather than the whole chip's.
|
|
701
721
|
*/
|
|
702
|
-
[data-ui
|
|
722
|
+
[data-ui-tag] [data-part-remove]:disabled {
|
|
703
723
|
color: var(--slotted-disabled-foreground, GrayText);
|
|
704
724
|
}
|
|
705
725
|
|
|
@@ -711,14 +731,14 @@
|
|
|
711
731
|
* the arrow keys move between the controls inside it — the APG Toolbar
|
|
712
732
|
* pattern, which is a container for grouping a set of controls.
|
|
713
733
|
*/
|
|
714
|
-
[data-ui
|
|
734
|
+
[data-ui-tag][data-part-group] {
|
|
715
735
|
align-items: center;
|
|
716
736
|
display: flex;
|
|
717
737
|
flex-wrap: wrap;
|
|
718
738
|
gap: var(--slotted-tag-group-gap, var(--slotted-space-2, 0.25rem));
|
|
719
739
|
}
|
|
720
740
|
|
|
721
|
-
[data-ui
|
|
741
|
+
[data-ui-tag][data-part-group][data-orientation='vertical'] {
|
|
722
742
|
align-items: start;
|
|
723
743
|
flex-direction: column;
|
|
724
744
|
flex-wrap: nowrap;
|
|
@@ -731,7 +751,7 @@
|
|
|
731
751
|
* that holds it — the defect `button-group` recorded when it found the same
|
|
732
752
|
* thing.
|
|
733
753
|
*/
|
|
734
|
-
[data-ui
|
|
754
|
+
[data-ui-tag][data-part-group]:empty {
|
|
735
755
|
display: none;
|
|
736
756
|
}
|
|
737
757
|
|
|
@@ -750,17 +770,17 @@
|
|
|
750
770
|
* pair instead.
|
|
751
771
|
*/
|
|
752
772
|
@media (forced-colors: active) {
|
|
753
|
-
[data-ui
|
|
773
|
+
[data-ui-tag][data-part-root] {
|
|
754
774
|
border-color: currentColor;
|
|
755
775
|
}
|
|
756
776
|
|
|
757
|
-
[data-ui
|
|
777
|
+
[data-ui-tag][data-part-root][data-selected]:not([data-disabled]) {
|
|
758
778
|
background-color: Highlight;
|
|
759
779
|
color: HighlightText;
|
|
760
780
|
forced-color-adjust: none;
|
|
761
781
|
}
|
|
762
782
|
|
|
763
|
-
[data-ui
|
|
783
|
+
[data-ui-tag][data-part-root][data-disabled] {
|
|
764
784
|
border-color: GrayText;
|
|
765
785
|
color: GrayText;
|
|
766
786
|
}
|
package/src/tag/tag.tokens.json
CHANGED
|
@@ -56,6 +56,15 @@
|
|
|
56
56
|
"--slotted-tone-danger-subtle-hover",
|
|
57
57
|
"--slotted-tone-danger-surface",
|
|
58
58
|
"--slotted-tone-danger-text",
|
|
59
|
+
"--slotted-tone-info-border",
|
|
60
|
+
"--slotted-tone-info-on-solid",
|
|
61
|
+
"--slotted-tone-info-solid",
|
|
62
|
+
"--slotted-tone-info-solid-active",
|
|
63
|
+
"--slotted-tone-info-solid-hover",
|
|
64
|
+
"--slotted-tone-info-subtle-active",
|
|
65
|
+
"--slotted-tone-info-subtle-hover",
|
|
66
|
+
"--slotted-tone-info-surface",
|
|
67
|
+
"--slotted-tone-info-text",
|
|
59
68
|
"--slotted-tone-secondary-border",
|
|
60
69
|
"--slotted-tone-secondary-on-solid",
|
|
61
70
|
"--slotted-tone-secondary-solid-active",
|