@slotted/styles 0.1.0-beta.3 → 0.1.0-beta.31
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 +97 -97
- package/src/alert/alert.tokens.json +6 -1
- package/src/app-shell/app-shell.css +456 -329
- package/src/app-shell/app-shell.tokens.json +6 -3
- 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 +70 -67
- package/src/card/card.tokens.json +1 -0
- package/src/carousel/carousel.css +158 -169
- package/src/cascader/cascader.css +161 -159
- package/src/cascader/cascader.tokens.json +2 -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 +81 -80
- package/src/collapsible/collapsible.tokens.json +1 -0
- package/src/color-picker/color-picker.css +106 -114
- package/src/column-manager/column-manager.css +111 -119
- package/src/combobox/combobox.css +206 -132
- package/src/combobox/combobox.tokens.json +4 -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 +204 -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 +435 -199
- package/src/dialog/dialog.tokens.json +9 -0
- package/src/divider/divider.css +20 -20
- package/src/drawer/drawer.css +598 -237
- package/src/drawer/drawer.tokens.json +14 -0
- package/src/entity-picker/entity-picker.css +326 -272
- package/src/entity-picker/entity-picker.tokens.json +4 -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 +100 -26
- package/src/form/form.tokens.json +6 -1
- 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 +147 -168
- package/src/import-export-center/import-export-center.tokens.json +1 -0
- 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 +166 -83
- package/src/menu/menu.tokens.json +3 -1
- package/src/menubar/menubar.css +16 -16
- package/src/message/message.css +1253 -1246
- package/src/message/message.tokens.json +5 -0
- package/src/message-scroller/message-scroller.css +323 -320
- package/src/multi-select/multi-select.css +233 -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 +41 -27
- package/src/page/page.tokens.json +1 -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/popover/popover.css +85 -65
- package/src/popover/popover.tokens.json +2 -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 +95 -102
- package/src/result-state/result-state.tokens.json +1 -0
- package/src/runtime-properties.mjs +19 -6
- package/src/saved-views/saved-views.css +43 -49
- package/src/scroll-area/scroll-area.css +50 -37
- package/src/section/section.css +179 -44
- package/src/section/section.tokens.json +9 -3
- package/src/segmented-control/segmented-control.css +210 -133
- package/src/segmented-control/segmented-control.tokens.json +7 -11
- package/src/select/select.css +213 -149
- package/src/select/select.tokens.json +4 -0
- package/src/side-navigation/side-navigation.css +201 -198
- 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 +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 +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 +68 -74
- package/src/tour/tour.tokens.json +1 -0
- 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
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
* the ends of the bar and nowhere else — and states no distance between its
|
|
16
16
|
* controls. A joined bar does not wrap and does not stack: its shape is the
|
|
17
17
|
* whole point of it, and no surveyed implementation flips that shape at a
|
|
18
|
-
* width the consumer cannot see coming. A label that outgrows the bar
|
|
19
|
-
* inside its own control, which is `button`'s rule and not
|
|
18
|
+
* width the consumer cannot see coming. A label that outgrows the bar ends
|
|
19
|
+
* in an ellipsis inside its own control, which is `button`'s rule and not
|
|
20
|
+
* this family's.
|
|
20
21
|
*
|
|
21
22
|
* The children are the consumer's own elements, selected as direct children.
|
|
22
23
|
* Primer wraps each child in a div of its own and pays for it twice: its
|
|
@@ -27,7 +28,7 @@
|
|
|
27
28
|
* The group paints one thing and only one: the seam between two joined solid
|
|
28
29
|
* controls. That rule is documented where it is written.
|
|
29
30
|
*/
|
|
30
|
-
[data-ui
|
|
31
|
+
[data-ui-button-group] {
|
|
31
32
|
--_radius: var(--slotted-control-radius, 4px);
|
|
32
33
|
--_overlap: calc(-1 * var(--slotted-control-border-width, 1px));
|
|
33
34
|
/**
|
|
@@ -71,13 +72,13 @@
|
|
|
71
72
|
* that holds it, so the toolbar beside it drifts by half a centimetre for a
|
|
72
73
|
* reason nobody can see in the markup.
|
|
73
74
|
*/
|
|
74
|
-
[data-ui
|
|
75
|
+
[data-ui-button-group]:empty {
|
|
75
76
|
display: none;
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
/* ── Orientation ──────────────────────────────────────────────────────── */
|
|
79
80
|
|
|
80
|
-
[data-ui
|
|
81
|
+
[data-ui-button-group][data-orientation='vertical'] {
|
|
81
82
|
--_join-main: 0;
|
|
82
83
|
--_join-cross: var(--_radius);
|
|
83
84
|
--_overlap-inline: 0;
|
|
@@ -88,19 +89,19 @@
|
|
|
88
89
|
|
|
89
90
|
/* ── Across the flow ──────────────────────────────────────────────────── */
|
|
90
91
|
|
|
91
|
-
[data-ui
|
|
92
|
+
[data-ui-button-group][data-align='start'] {
|
|
92
93
|
align-items: start;
|
|
93
94
|
}
|
|
94
95
|
|
|
95
|
-
[data-ui
|
|
96
|
+
[data-ui-button-group][data-align='center'] {
|
|
96
97
|
align-items: center;
|
|
97
98
|
}
|
|
98
99
|
|
|
99
|
-
[data-ui
|
|
100
|
+
[data-ui-button-group][data-align='end'] {
|
|
100
101
|
align-items: end;
|
|
101
102
|
}
|
|
102
103
|
|
|
103
|
-
[data-ui
|
|
104
|
+
[data-ui-button-group][data-align='stretch'] {
|
|
104
105
|
align-items: stretch;
|
|
105
106
|
}
|
|
106
107
|
|
|
@@ -112,30 +113,30 @@
|
|
|
112
113
|
* shrinks to its content, which is what a pair of actions beside a sentence
|
|
113
114
|
* needs and what every surveyed implementation defaults to.
|
|
114
115
|
*/
|
|
115
|
-
[data-ui
|
|
116
|
+
[data-ui-button-group][data-justify] {
|
|
116
117
|
display: flex;
|
|
117
118
|
inline-size: 100%;
|
|
118
119
|
}
|
|
119
120
|
|
|
120
|
-
[data-ui
|
|
121
|
+
[data-ui-button-group][data-justify='start'] {
|
|
121
122
|
justify-content: start;
|
|
122
123
|
}
|
|
123
124
|
|
|
124
|
-
[data-ui
|
|
125
|
+
[data-ui-button-group][data-justify='center'] {
|
|
125
126
|
justify-content: center;
|
|
126
127
|
}
|
|
127
128
|
|
|
128
|
-
[data-ui
|
|
129
|
+
[data-ui-button-group][data-justify='end'] {
|
|
129
130
|
justify-content: end;
|
|
130
131
|
}
|
|
131
132
|
|
|
132
|
-
[data-ui
|
|
133
|
+
[data-ui-button-group][data-justify='between'] {
|
|
133
134
|
justify-content: space-between;
|
|
134
135
|
}
|
|
135
136
|
|
|
136
137
|
/* ── Full width ───────────────────────────────────────────────────────── */
|
|
137
138
|
|
|
138
|
-
[data-ui
|
|
139
|
+
[data-ui-button-group][data-full-width] {
|
|
139
140
|
display: flex;
|
|
140
141
|
inline-size: 100%;
|
|
141
142
|
}
|
|
@@ -149,8 +150,8 @@
|
|
|
149
150
|
* along the flow would distribute height instead, which is not what anyone
|
|
150
151
|
* asking for a full-width group meant.
|
|
151
152
|
*/
|
|
152
|
-
[data-ui
|
|
153
|
-
> :not([data-part
|
|
153
|
+
[data-ui-button-group][data-full-width]:not([data-orientation='vertical'])
|
|
154
|
+
> :not([data-part-separator]) {
|
|
154
155
|
flex: 1 1 0;
|
|
155
156
|
min-inline-size: 0;
|
|
156
157
|
}
|
|
@@ -166,15 +167,15 @@
|
|
|
166
167
|
* square from the control height, and shrinking it would take it below the
|
|
167
168
|
* target size its own family guarantees.
|
|
168
169
|
*/
|
|
169
|
-
[data-ui
|
|
170
|
+
[data-ui-button-group] > :not([data-part-separator]):not([data-shape]) {
|
|
170
171
|
min-inline-size: 0;
|
|
171
172
|
}
|
|
172
173
|
|
|
173
|
-
[data-ui
|
|
174
|
+
[data-ui-button-group] > [data-shape] {
|
|
174
175
|
flex: none;
|
|
175
176
|
}
|
|
176
177
|
|
|
177
|
-
[data-ui
|
|
178
|
+
[data-ui-button-group] > :not([data-ui-button-group]) {
|
|
178
179
|
border-radius: 0;
|
|
179
180
|
}
|
|
180
181
|
|
|
@@ -183,18 +184,18 @@
|
|
|
183
184
|
* bar takes no column of its own, so the control after it shares an edge
|
|
184
185
|
* with the control before it exactly like every other neighbour pair.
|
|
185
186
|
*/
|
|
186
|
-
[data-ui
|
|
187
|
+
[data-ui-button-group] > :not(:first-child):not([data-part-separator]) {
|
|
187
188
|
margin-block-start: var(--_overlap-block);
|
|
188
189
|
margin-inline-start: var(--_overlap-inline);
|
|
189
190
|
}
|
|
190
191
|
|
|
191
|
-
[data-ui
|
|
192
|
+
[data-ui-button-group] > :first-child {
|
|
192
193
|
border-end-start-radius: var(--_join-main);
|
|
193
194
|
border-start-end-radius: var(--_join-cross);
|
|
194
195
|
border-start-start-radius: var(--_radius);
|
|
195
196
|
}
|
|
196
197
|
|
|
197
|
-
[data-ui
|
|
198
|
+
[data-ui-button-group] > :last-child {
|
|
198
199
|
border-end-end-radius: var(--_radius);
|
|
199
200
|
border-end-start-radius: var(--_join-cross);
|
|
200
201
|
border-start-end-radius: var(--_join-main);
|
|
@@ -206,7 +207,7 @@
|
|
|
206
207
|
* came out with one square corner. Measured on the harness before this rule
|
|
207
208
|
* existed: 4/4/4/0. A lone control keeps all four.
|
|
208
209
|
*/
|
|
209
|
-
[data-ui
|
|
210
|
+
[data-ui-button-group] > :only-child {
|
|
210
211
|
border-radius: var(--_radius);
|
|
211
212
|
}
|
|
212
213
|
|
|
@@ -220,17 +221,17 @@
|
|
|
220
221
|
* bar, so inside another group every corner of a run is squared and only
|
|
221
222
|
* the two on the ends of the outer bar are put back.
|
|
222
223
|
*/
|
|
223
|
-
[data-ui
|
|
224
|
+
[data-ui-button-group] [data-ui-button-group] > :not([data-part-separator]) {
|
|
224
225
|
border-radius: 0;
|
|
225
226
|
}
|
|
226
227
|
|
|
227
|
-
[data-ui
|
|
228
|
+
[data-ui-button-group] > [data-ui-button-group]:first-child > :first-child {
|
|
228
229
|
border-end-start-radius: var(--_join-main);
|
|
229
230
|
border-start-end-radius: var(--_join-cross);
|
|
230
231
|
border-start-start-radius: var(--_radius);
|
|
231
232
|
}
|
|
232
233
|
|
|
233
|
-
[data-ui
|
|
234
|
+
[data-ui-button-group] > [data-ui-button-group]:last-child > :last-child {
|
|
234
235
|
border-end-end-radius: var(--_radius);
|
|
235
236
|
border-end-start-radius: var(--_join-cross);
|
|
236
237
|
border-start-end-radius: var(--_join-main);
|
|
@@ -258,19 +259,15 @@
|
|
|
258
259
|
* fifth, and it is a name the contract declares rather than a selector
|
|
259
260
|
* repeated for weight.
|
|
260
261
|
*/
|
|
261
|
-
[data-ui
|
|
262
|
-
|
|
263
|
-
[data-ui
|
|
264
|
-
> [data-ui='button'][data-variant='outline'][data-disabled],
|
|
265
|
-
[data-ui='button-group'][data-part='root'] > [data-ui='button'][data-variant='outline']:disabled {
|
|
262
|
+
[data-ui-button-group][data-part-root] > [data-ui-button][data-variant='outline'][data-pressed],
|
|
263
|
+
[data-ui-button-group][data-part-root] > [data-ui-button][data-variant='outline'][data-disabled],
|
|
264
|
+
[data-ui-button-group][data-part-root] > [data-ui-button][data-variant='outline']:disabled {
|
|
266
265
|
border-color: var(--slotted-control-border-color, ButtonBorder);
|
|
267
266
|
}
|
|
268
267
|
|
|
269
|
-
[data-ui
|
|
270
|
-
|
|
271
|
-
[data-ui
|
|
272
|
-
> [data-ui='button'][data-variant='ghost'][data-disabled],
|
|
273
|
-
[data-ui='button-group'][data-part='root'] > [data-ui='button'][data-variant='ghost']:disabled {
|
|
268
|
+
[data-ui-button-group][data-part-root] > [data-ui-button][data-variant='ghost'][data-pressed],
|
|
269
|
+
[data-ui-button-group][data-part-root] > [data-ui-button][data-variant='ghost'][data-disabled],
|
|
270
|
+
[data-ui-button-group][data-part-root] > [data-ui-button][data-variant='ghost']:disabled {
|
|
274
271
|
border-color: transparent;
|
|
275
272
|
}
|
|
276
273
|
|
|
@@ -278,7 +275,7 @@
|
|
|
278
275
|
* ── One border in each shared column ──────────────────────────────────
|
|
279
276
|
*
|
|
280
277
|
* The overlap puts two borders in the same one-pixel column. They are the
|
|
281
|
-
* same
|
|
278
|
+
* same color and the same width, so on paper they are one line — and they
|
|
282
279
|
* are, until the page is zoomed. The browser snaps each border box to device
|
|
283
280
|
* pixels on its own, so at 110%, 150% and 175% one boundary lands on a single
|
|
284
281
|
* column and the next lands across two, and a bar of equal dividers renders
|
|
@@ -297,19 +294,19 @@
|
|
|
297
294
|
* not the last run gives it up too: the next run's first control follows it
|
|
298
295
|
* in the same column.
|
|
299
296
|
*/
|
|
300
|
-
[data-ui
|
|
301
|
-
> [data-ui
|
|
302
|
-
[data-ui
|
|
303
|
-
> [data-ui
|
|
304
|
-
> [data-ui
|
|
297
|
+
[data-ui-button-group][data-part-root]:not([data-orientation='vertical'])
|
|
298
|
+
> [data-ui-button]:not(:last-child),
|
|
299
|
+
[data-ui-button-group][data-part-root]:not([data-orientation='vertical'])
|
|
300
|
+
> [data-ui-button-group]:not(:last-child)
|
|
301
|
+
> [data-ui-button]:last-child {
|
|
305
302
|
border-inline-end-color: transparent;
|
|
306
303
|
}
|
|
307
304
|
|
|
308
|
-
[data-ui
|
|
309
|
-
> [data-ui
|
|
310
|
-
[data-ui
|
|
311
|
-
> [data-ui
|
|
312
|
-
> [data-ui
|
|
305
|
+
[data-ui-button-group][data-part-root][data-orientation='vertical']
|
|
306
|
+
> [data-ui-button]:not(:last-child),
|
|
307
|
+
[data-ui-button-group][data-part-root][data-orientation='vertical']
|
|
308
|
+
> [data-ui-button-group]:not(:last-child)
|
|
309
|
+
> [data-ui-button]:last-child {
|
|
313
310
|
border-block-end-color: transparent;
|
|
314
311
|
}
|
|
315
312
|
|
|
@@ -333,37 +330,41 @@
|
|
|
333
330
|
* `data-tone`, which `button` declares in public, so this is composition
|
|
334
331
|
* against a contract rather than against internal DOM.
|
|
335
332
|
*/
|
|
336
|
-
[data-ui
|
|
333
|
+
[data-ui-button-group] > [data-tone='accent'] {
|
|
337
334
|
--_seam: var(--slotted-tone-accent-solid-active);
|
|
338
335
|
}
|
|
339
336
|
|
|
340
|
-
[data-ui
|
|
337
|
+
[data-ui-button-group] > [data-tone='secondary'] {
|
|
341
338
|
--_seam: var(--slotted-tone-secondary-solid-active);
|
|
342
339
|
}
|
|
343
340
|
|
|
344
|
-
[data-ui
|
|
341
|
+
[data-ui-button-group] > [data-tone='neutral'] {
|
|
345
342
|
--_seam: var(--slotted-tone-neutral-solid-active);
|
|
346
343
|
}
|
|
347
344
|
|
|
348
|
-
[data-ui
|
|
345
|
+
[data-ui-button-group] > [data-tone='success'] {
|
|
349
346
|
--_seam: var(--slotted-tone-success-solid-active);
|
|
350
347
|
}
|
|
351
348
|
|
|
352
|
-
[data-ui
|
|
349
|
+
[data-ui-button-group] > [data-tone='info'] {
|
|
350
|
+
--_seam: var(--slotted-tone-info-solid-active);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
[data-ui-button-group] > [data-tone='warning'] {
|
|
353
354
|
--_seam: var(--slotted-tone-warning-solid-active);
|
|
354
355
|
}
|
|
355
356
|
|
|
356
|
-
[data-ui
|
|
357
|
+
[data-ui-button-group] > [data-tone='danger'] {
|
|
357
358
|
--_seam: var(--slotted-tone-danger-solid-active);
|
|
358
359
|
}
|
|
359
360
|
|
|
360
|
-
[data-ui
|
|
361
|
-
> [data-ui
|
|
361
|
+
[data-ui-button-group][data-part-root]:not([data-orientation='vertical'])
|
|
362
|
+
> [data-ui-button][data-variant='solid']:not(:first-child) {
|
|
362
363
|
border-inline-start-color: var(--_seam, ButtonBorder);
|
|
363
364
|
}
|
|
364
365
|
|
|
365
|
-
[data-ui
|
|
366
|
-
> [data-ui
|
|
366
|
+
[data-ui-button-group][data-part-root][data-orientation='vertical']
|
|
367
|
+
> [data-ui-button][data-variant='solid']:not(:first-child) {
|
|
367
368
|
border-block-start-color: var(--_seam, ButtonBorder);
|
|
368
369
|
}
|
|
369
370
|
|
|
@@ -374,18 +375,18 @@
|
|
|
374
375
|
* in those libraries a touched control repaints its own edge; here the edge
|
|
375
376
|
* is the group's, so nothing about it changes and there is nothing to lift.
|
|
376
377
|
*/
|
|
377
|
-
[data-ui
|
|
378
|
-
[data-ui
|
|
378
|
+
[data-ui-button-group] > *:focus-visible,
|
|
379
|
+
[data-ui-button-group] > *:has(:focus-visible) {
|
|
379
380
|
z-index: 1;
|
|
380
381
|
}
|
|
381
382
|
|
|
382
383
|
/**
|
|
383
|
-
* Under forced
|
|
384
|
+
* Under forced colors the theme flattens every fill, so a segment that is
|
|
384
385
|
* on has only its edge left to say so. `button` makes that edge `Highlight`;
|
|
385
386
|
* the rule above would have taken it away, and this puts it back.
|
|
386
387
|
*/
|
|
387
388
|
@media (forced-colors: active) {
|
|
388
|
-
[data-ui
|
|
389
|
+
[data-ui-button-group][data-part-root] > [data-ui-button][data-pressed] {
|
|
389
390
|
border-color: Highlight;
|
|
390
391
|
}
|
|
391
392
|
}
|
|
@@ -400,7 +401,7 @@
|
|
|
400
401
|
* family's DOM a private API of another, which is the coupling
|
|
401
402
|
* `identity.test.mjs` exists to refuse.
|
|
402
403
|
*
|
|
403
|
-
* A joined bar is one shape, and a rule is not
|
|
404
|
+
* A joined bar is one shape, and a rule is not license to cut it. So the
|
|
404
405
|
* rule is not a box at all: it takes no width, no height and no margin, and
|
|
405
406
|
* what it marks is painted on the leading edge of the control that follows
|
|
406
407
|
* it — the one edge the overlap already leaves in the shared column.
|
|
@@ -413,7 +414,7 @@
|
|
|
413
414
|
* than as a boundary. Nothing about the bar's shape changes now — the
|
|
414
415
|
* corners, the height and the overlap are what they are without the rule.
|
|
415
416
|
*/
|
|
416
|
-
[data-ui
|
|
417
|
+
[data-ui-button-group] > [data-part-separator] {
|
|
417
418
|
background: none;
|
|
418
419
|
block-size: 0;
|
|
419
420
|
border: 0;
|
|
@@ -424,7 +425,7 @@
|
|
|
424
425
|
|
|
425
426
|
/**
|
|
426
427
|
* One step stronger than the seams around it, because a boundary painted in
|
|
427
|
-
* the seam's own
|
|
428
|
+
* the seam's own color is a seam. `--slotted-text-muted` is the quietest
|
|
428
429
|
* tone in the foundation that still reads darker than `--slotted-border-
|
|
429
430
|
* strong`, and it carries the difference the eye needs without the weight a
|
|
430
431
|
* thicker line would add. In a frameless bar it is the only line there is,
|
|
@@ -437,23 +438,23 @@
|
|
|
437
438
|
* a rule inside a filled run is the seam, drawn where the consumer asked
|
|
438
439
|
* for it.
|
|
439
440
|
*/
|
|
440
|
-
[data-ui
|
|
441
|
-
> [data-part
|
|
442
|
-
+ [data-ui
|
|
443
|
-
[data-ui
|
|
444
|
-
> [data-part
|
|
445
|
-
+ [data-ui
|
|
446
|
-
> [data-ui
|
|
441
|
+
[data-ui-button-group][data-part-root]:not([data-orientation='vertical'])
|
|
442
|
+
> [data-part-separator]
|
|
443
|
+
+ [data-ui-button]:not([data-variant='solid']),
|
|
444
|
+
[data-ui-button-group][data-part-root]:not([data-orientation='vertical'])
|
|
445
|
+
> [data-part-separator]
|
|
446
|
+
+ [data-ui-button-group]
|
|
447
|
+
> [data-ui-button]:first-child:not([data-variant='solid']) {
|
|
447
448
|
border-inline-start-color: var(--slotted-text-muted, ButtonBorder);
|
|
448
449
|
}
|
|
449
450
|
|
|
450
|
-
[data-ui
|
|
451
|
-
> [data-part
|
|
452
|
-
+ [data-ui
|
|
453
|
-
[data-ui
|
|
454
|
-
> [data-part
|
|
455
|
-
+ [data-ui
|
|
456
|
-
> [data-ui
|
|
451
|
+
[data-ui-button-group][data-part-root][data-orientation='vertical']
|
|
452
|
+
> [data-part-separator]
|
|
453
|
+
+ [data-ui-button]:not([data-variant='solid']),
|
|
454
|
+
[data-ui-button-group][data-part-root][data-orientation='vertical']
|
|
455
|
+
> [data-part-separator]
|
|
456
|
+
+ [data-ui-button-group]
|
|
457
|
+
> [data-ui-button]:first-child:not([data-variant='solid']) {
|
|
457
458
|
border-block-start-color: var(--slotted-text-muted, ButtonBorder);
|
|
458
459
|
}
|
|
459
460
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"--slotted-text-muted",
|
|
6
6
|
"--slotted-tone-accent-solid-active",
|
|
7
7
|
"--slotted-tone-danger-solid-active",
|
|
8
|
+
"--slotted-tone-info-solid-active",
|
|
8
9
|
"--slotted-tone-neutral-solid-active",
|
|
9
10
|
"--slotted-tone-secondary-solid-active",
|
|
10
11
|
"--slotted-tone-success-solid-active",
|