@slotted/styles 0.1.0-beta.1 → 0.1.0-beta.11
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 +35 -42
- package/src/action-sheet/action-sheet.css +36 -36
- package/src/alert/alert.css +43 -35
- package/src/alert/alert.tokens.json +5 -0
- package/src/app-shell/app-shell.css +356 -301
- 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 +93 -103
- package/src/card/card.css +54 -61
- package/src/carousel/carousel.css +150 -161
- package/src/cascader/cascader.css +152 -153
- package/src/cascader/cascader.tokens.json +1 -0
- package/src/chart/chart.css +242 -239
- 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 +69 -76
- package/src/color-picker/color-picker.css +83 -91
- package/src/column-manager/column-manager.css +106 -114
- package/src/combobox/combobox.css +132 -107
- package/src/combobox/combobox.tokens.json +1 -0
- package/src/command-palette/command-palette.css +103 -90
- package/src/command-palette/command-palette.tokens.json +1 -0
- package/src/container/container.css +24 -24
- package/src/context-menu/context-menu.css +8 -8
- package/src/currency-field/currency-field.css +210 -88
- package/src/currency-field/currency-field.tokens.json +13 -0
- package/src/dashboard-grid/dashboard-grid.css +148 -116
- package/src/data-grid/data-grid.css +535 -470
- package/src/data-grid/data-grid.tokens.json +4 -0
- package/src/data-list/data-list.css +81 -70
- package/src/data-list/data-list.tokens.json +2 -1
- package/src/date-field/date-field.css +55 -52
- package/src/date-field/date-field.tokens.json +1 -0
- package/src/date-picker/date-picker.css +40 -42
- package/src/date-range-picker/date-range-picker.css +114 -118
- package/src/datetime-field/datetime-field.css +78 -80
- package/src/datetime-field/datetime-field.tokens.json +1 -0
- package/src/datetime-picker/datetime-picker.css +61 -63
- package/src/datetime-range-picker/datetime-range-picker.css +149 -156
- package/src/description-list/description-list.css +61 -64
- package/src/detail-panel/detail-panel.css +86 -71
- package/src/detail-panel/detail-panel.tokens.json +2 -0
- package/src/dialog/dialog.css +372 -153
- package/src/dialog/dialog.tokens.json +6 -0
- package/src/divider/divider.css +18 -18
- package/src/drawer/drawer.css +205 -210
- package/src/drawer/drawer.tokens.json +1 -0
- package/src/entity-picker/entity-picker.css +238 -241
- package/src/entity-picker/entity-picker.tokens.json +1 -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 +19 -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 +52 -28
- package/src/inline-message/inline-message.tokens.json +4 -0
- package/src/kbd/kbd.css +30 -26
- package/src/link/link.css +15 -15
- 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 +83 -63
- package/src/menubar/menubar.css +13 -13
- package/src/message/message.css +182 -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 +152 -145
- 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 +84 -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 +323 -283
- package/src/page-header/page-header.tokens.json +5 -0
- package/src/pagination/pagination.css +68 -72
- package/src/popover/popover.css +40 -49
- package/src/progress-indicator/progress-indicator.css +177 -120
- package/src/progress-indicator/progress-indicator.tokens.json +1 -1
- package/src/prompt-composer/prompt-composer.css +221 -102
- 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 +161 -41
- package/src/section/section.tokens.json +7 -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 +118 -117
- package/src/select/select.tokens.json +1 -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 +341 -224
- package/src/stat-card/stat-card.tokens.json +3 -0
- package/src/status-indicator/status-indicator.css +28 -28
- package/src/stepper/stepper.css +58 -62
- package/src/switch/switch.css +86 -92
- package/src/table/table.css +310 -165
- package/src/table/table.tokens.json +6 -0
- package/src/table-of-contents/table-of-contents.css +51 -54
- package/src/tabs/tabs.css +337 -302
- package/src/tabs/tabs.tokens.json +8 -5
- package/src/tag/tag.css +79 -71
- package/src/tag/tag.tokens.json +9 -0
- package/src/tags-input/tags-input.css +145 -82
- package/src/tags-input/tags-input.tokens.json +7 -1
- package/src/text-field/text-field.css +132 -136
- package/src/text-field/text-field.tokens.json +1 -0
- package/src/textarea/textarea.css +31 -28
- package/src/textarea/textarea.tokens.json +1 -0
- package/src/time-field/time-field.css +72 -69
- package/src/time-field/time-field.tokens.json +1 -0
- package/src/time-picker/time-picker.css +56 -58
- package/src/time-range-picker/time-range-picker.css +126 -133
- package/src/timeline/timeline.css +254 -266
- package/src/timeline/timeline.tokens.json +5 -0
- package/src/toast/toast.css +108 -90
- 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 +26 -26
- 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
|
@@ -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
|
|
|
@@ -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,33 +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'] {
|
|
342
|
+
--_seam: var(--slotted-tone-neutral-solid-active);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
[data-ui-button-group] > [data-tone='success'] {
|
|
345
346
|
--_seam: var(--slotted-tone-success-solid-active);
|
|
346
347
|
}
|
|
347
348
|
|
|
348
|
-
[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'] {
|
|
349
354
|
--_seam: var(--slotted-tone-warning-solid-active);
|
|
350
355
|
}
|
|
351
356
|
|
|
352
|
-
[data-ui
|
|
357
|
+
[data-ui-button-group] > [data-tone='danger'] {
|
|
353
358
|
--_seam: var(--slotted-tone-danger-solid-active);
|
|
354
359
|
}
|
|
355
360
|
|
|
356
|
-
[data-ui
|
|
357
|
-
> [data-ui
|
|
361
|
+
[data-ui-button-group][data-part-root]:not([data-orientation='vertical'])
|
|
362
|
+
> [data-ui-button][data-variant='solid']:not(:first-child) {
|
|
358
363
|
border-inline-start-color: var(--_seam, ButtonBorder);
|
|
359
364
|
}
|
|
360
365
|
|
|
361
|
-
[data-ui
|
|
362
|
-
> [data-ui
|
|
366
|
+
[data-ui-button-group][data-part-root][data-orientation='vertical']
|
|
367
|
+
> [data-ui-button][data-variant='solid']:not(:first-child) {
|
|
363
368
|
border-block-start-color: var(--_seam, ButtonBorder);
|
|
364
369
|
}
|
|
365
370
|
|
|
@@ -370,8 +375,8 @@
|
|
|
370
375
|
* in those libraries a touched control repaints its own edge; here the edge
|
|
371
376
|
* is the group's, so nothing about it changes and there is nothing to lift.
|
|
372
377
|
*/
|
|
373
|
-
[data-ui
|
|
374
|
-
[data-ui
|
|
378
|
+
[data-ui-button-group] > *:focus-visible,
|
|
379
|
+
[data-ui-button-group] > *:has(:focus-visible) {
|
|
375
380
|
z-index: 1;
|
|
376
381
|
}
|
|
377
382
|
|
|
@@ -381,7 +386,7 @@
|
|
|
381
386
|
* the rule above would have taken it away, and this puts it back.
|
|
382
387
|
*/
|
|
383
388
|
@media (forced-colors: active) {
|
|
384
|
-
[data-ui
|
|
389
|
+
[data-ui-button-group][data-part-root] > [data-ui-button][data-pressed] {
|
|
385
390
|
border-color: Highlight;
|
|
386
391
|
}
|
|
387
392
|
}
|
|
@@ -409,7 +414,7 @@
|
|
|
409
414
|
* than as a boundary. Nothing about the bar's shape changes now — the
|
|
410
415
|
* corners, the height and the overlap are what they are without the rule.
|
|
411
416
|
*/
|
|
412
|
-
[data-ui
|
|
417
|
+
[data-ui-button-group] > [data-part-separator] {
|
|
413
418
|
background: none;
|
|
414
419
|
block-size: 0;
|
|
415
420
|
border: 0;
|
|
@@ -433,23 +438,23 @@
|
|
|
433
438
|
* a rule inside a filled run is the seam, drawn where the consumer asked
|
|
434
439
|
* for it.
|
|
435
440
|
*/
|
|
436
|
-
[data-ui
|
|
437
|
-
> [data-part
|
|
438
|
-
+ [data-ui
|
|
439
|
-
[data-ui
|
|
440
|
-
> [data-part
|
|
441
|
-
+ [data-ui
|
|
442
|
-
> [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']) {
|
|
443
448
|
border-inline-start-color: var(--slotted-text-muted, ButtonBorder);
|
|
444
449
|
}
|
|
445
450
|
|
|
446
|
-
[data-ui
|
|
447
|
-
> [data-part
|
|
448
|
-
+ [data-ui
|
|
449
|
-
[data-ui
|
|
450
|
-
> [data-part
|
|
451
|
-
+ [data-ui
|
|
452
|
-
> [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']) {
|
|
453
458
|
border-block-start-color: var(--slotted-text-muted, ButtonBorder);
|
|
454
459
|
}
|
|
455
460
|
}
|
|
@@ -5,6 +5,8 @@
|
|
|
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",
|
|
9
|
+
"--slotted-tone-neutral-solid-active",
|
|
8
10
|
"--slotted-tone-secondary-solid-active",
|
|
9
11
|
"--slotted-tone-success-solid-active",
|
|
10
12
|
"--slotted-tone-warning-solid-active"
|