@tangible/ui 0.2.21 → 0.2.23
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/figma-tokens.json +234 -18
- package/icons/icons.svg +15 -0
- package/icons/manifest.json +120 -0
- package/icons/registry.d.ts +30 -0
- package/icons/registry.js +15 -0
- package/icons/system/index.d.ts +30 -0
- package/icons/system/index.js +165 -0
- package/package.json +1 -1
- package/skills/building-with-tui/SKILL.md +16 -6
- package/styles/all.css +1 -1
- package/styles/all.expanded.css +196 -74
- package/styles/all.expanded.unlayered.css +196 -74
- package/styles/all.unlayered.css +1 -1
- package/styles/components/accordion.scss +5 -0
- package/styles/components/button.scss +13 -9
- package/styles/components/card.scss +14 -0
- package/styles/components/color-picker.scss +1 -0
- package/styles/components/combobox.scss +35 -10
- package/styles/components/content-indicator.scss +1 -1
- package/styles/components/date-picker.scss +15 -0
- package/styles/components/dropdown.scss +27 -8
- package/styles/components/gradient-picker.scss +1 -0
- package/styles/components/multi-combobox.scss +26 -11
- package/styles/components/multi-select.scss +31 -9
- package/styles/components/search-select.scss +46 -10
- package/styles/components/segmented-control.scss +6 -0
- package/styles/components/select.scss +35 -10
- package/styles/components/sidebar.scss +4 -0
- package/styles/components/table.scss +8 -1
- package/styles/components/tabs.scss +4 -1
- package/styles/core.css +1 -1
- package/styles/core.unlayered.css +1 -1
- package/styles/system/_palettes.scss +19 -1
- package/styles/system/_tokens.scss +6 -6
- package/tui-manifest.json +40 -7
- package/utils/portal.js +34 -5
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
/* @tui-tokens
|
|
4
4
|
--tui-accordion-bg
|
|
5
5
|
--tui-accordion-bg-open
|
|
6
|
+
--tui-accordion-fg
|
|
6
7
|
--tui-accordion-border
|
|
7
8
|
--tui-accordion-divider
|
|
8
9
|
--tui-accordion-radius
|
|
@@ -25,6 +26,7 @@
|
|
|
25
26
|
// Component API tokens (never defined here, only read via fallback):
|
|
26
27
|
// --tui-accordion-bg Item background
|
|
27
28
|
// --tui-accordion-bg-open Background when expanded
|
|
29
|
+
// --tui-accordion-fg Text color (item and panel)
|
|
28
30
|
// --tui-accordion-border Border color
|
|
29
31
|
// --tui-accordion-divider Border between trigger and panel when open
|
|
30
32
|
// --tui-accordion-radius Border radius
|
|
@@ -58,6 +60,7 @@
|
|
|
58
60
|
// Internal tokens — read component API with fallback to primitives
|
|
59
61
|
--_bg: var(--#{sys.$prefix}accordion-bg, var(--#{sys.$prefix}color-bg-surface));
|
|
60
62
|
--_bg-open: var(--#{sys.$prefix}accordion-bg-open, var(--#{sys.$prefix}color-bg-surface));
|
|
63
|
+
--_fg: var(--#{sys.$prefix}accordion-fg, var(--#{sys.$prefix}color-fg));
|
|
61
64
|
--_border: var(--#{sys.$prefix}accordion-border, var(--#{sys.$prefix}color-border));
|
|
62
65
|
--_divider: var(--#{sys.$prefix}accordion-divider, var(--_border));
|
|
63
66
|
--_radius: var(--#{sys.$prefix}accordion-radius, var(--#{sys.$prefix}radius-md));
|
|
@@ -70,6 +73,7 @@
|
|
|
70
73
|
--_indicator: var(--#{sys.$prefix}accordion-indicator, currentColor);
|
|
71
74
|
|
|
72
75
|
background-color: var(--_bg);
|
|
76
|
+
color: var(--_fg);
|
|
73
77
|
border: var(--#{sys.$prefix}border-width) solid var(--_border);
|
|
74
78
|
border-radius: var(--_radius);
|
|
75
79
|
overflow: hidden;
|
|
@@ -195,6 +199,7 @@
|
|
|
195
199
|
overflow: hidden;
|
|
196
200
|
padding-inline: var(--_panel-padding);
|
|
197
201
|
background: var(--_panel-bg);
|
|
202
|
+
color: var(--_fg);
|
|
198
203
|
// No padding-block — it would prevent full collapse during the
|
|
199
204
|
// grid-template-rows animation. Both top and bottom spacing use
|
|
200
205
|
// pseudo-elements that participate in the grid row and shrink to 0.
|
|
@@ -452,16 +452,20 @@ $_typography-lineHeight: var(--#{sys.$prefix}button-line-height, 1.4);
|
|
|
452
452
|
// File input button
|
|
453
453
|
// ---------------------------------------------------------------------------
|
|
454
454
|
.#{sys.$prefix}interface input[type="file"] {
|
|
455
|
-
//
|
|
456
|
-
--_bg
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
--_bg-interact: var(--#{sys.$prefix}button-bg-interact, var(--#{sys.$prefix}theme-primary-stronger));
|
|
461
|
-
--_fg-interact: var(--#{sys.$prefix}button-fg-interact, var(--#{sys.$prefix}color-fg-on-accent));
|
|
462
|
-
--_border-interact: var(--#{sys.$prefix}button-border-interact, var(--#{sys.$prefix}theme-primary-stronger));
|
|
463
|
-
|
|
455
|
+
// The button's internals live on the pseudo-element, not the input. The
|
|
456
|
+
// input is also the field (input/index.scss sets its own --_bg/--_fg on it),
|
|
457
|
+
// and same-named internals on one element collide: this rule is more
|
|
458
|
+
// specific, so the whole field used to take the button's primary fill and
|
|
459
|
+
// white text (#116).
|
|
464
460
|
&::file-selector-button {
|
|
461
|
+
--_bg: var(--#{sys.$prefix}button-bg, var(--#{sys.$prefix}theme-primary-base));
|
|
462
|
+
--_fg: var(--#{sys.$prefix}button-fg, var(--#{sys.$prefix}color-fg-on-accent));
|
|
463
|
+
--_border: var(--#{sys.$prefix}button-border, var(--#{sys.$prefix}theme-primary-base));
|
|
464
|
+
--_radius: var(--#{sys.$prefix}button-radius, var(--#{sys.$prefix}radius-md));
|
|
465
|
+
--_bg-interact: var(--#{sys.$prefix}button-bg-interact, var(--#{sys.$prefix}theme-primary-stronger));
|
|
466
|
+
--_fg-interact: var(--#{sys.$prefix}button-fg-interact, var(--#{sys.$prefix}color-fg-on-accent));
|
|
467
|
+
--_border-interact: var(--#{sys.$prefix}button-border-interact, var(--#{sys.$prefix}theme-primary-stronger));
|
|
468
|
+
|
|
465
469
|
@include button-base;
|
|
466
470
|
|
|
467
471
|
background-color: var(--_bg);
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
/* @tui-tokens
|
|
4
4
|
--tui-card-bg
|
|
5
|
+
--tui-card-fg
|
|
5
6
|
--tui-card-bg-interact
|
|
6
7
|
--tui-card-border
|
|
7
8
|
--tui-card-border-width
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
// Component API tokens (never defined here, only read via fallback):
|
|
24
25
|
// --tui-card-bg Background color
|
|
25
26
|
// --tui-card-bg-interact Hover/focus fill (default: no change; ghost: bg-muted)
|
|
27
|
+
// --tui-card-fg Text color (solid/elevated; outline, ghost and seamless inherit; ghost owns it on hover)
|
|
26
28
|
// --tui-card-border Border color
|
|
27
29
|
// --tui-card-border-width Border width (falls back to --tui-border-width)
|
|
28
30
|
// --tui-card-border-interact Hover/focus border color
|
|
@@ -41,6 +43,10 @@
|
|
|
41
43
|
:where(.#{sys.$prefix}interface) .#{sys.$prefix}card {
|
|
42
44
|
// Internal tokens — read component API with fallback to primitives
|
|
43
45
|
--_bg: var(--#{sys.$prefix}card-bg, var(--#{sys.$prefix}color-bg));
|
|
46
|
+
// Text colour is owned wherever the card paints a fill. Variants with no
|
|
47
|
+
// resting fill (outline/ghost/seamless) re-point --_fg to inherit.
|
|
48
|
+
--_fg: var(--#{sys.$prefix}card-fg, var(--#{sys.$prefix}color-fg));
|
|
49
|
+
--_fg-interact: var(--_fg);
|
|
44
50
|
--_border: var(--#{sys.$prefix}card-border, var(--#{sys.$prefix}color-border));
|
|
45
51
|
--_border-width: var(--#{sys.$prefix}card-border-width, var(--#{sys.$prefix}border-width));
|
|
46
52
|
--_border-interact: var(--#{sys.$prefix}card-border-interact, var(--#{sys.$prefix}theme-primary-base));
|
|
@@ -65,6 +71,7 @@
|
|
|
65
71
|
border-color: var(--_border);
|
|
66
72
|
border-radius: var(--_radius);
|
|
67
73
|
background-color: var(--_bg);
|
|
74
|
+
color: var(--_fg);
|
|
68
75
|
|
|
69
76
|
// -------------------------------------------------------------------------
|
|
70
77
|
// Media
|
|
@@ -283,12 +290,14 @@
|
|
|
283
290
|
&:hover {
|
|
284
291
|
--_border: var(--_border-interact);
|
|
285
292
|
background-color: var(--_bg-interact);
|
|
293
|
+
color: var(--_fg-interact);
|
|
286
294
|
}
|
|
287
295
|
|
|
288
296
|
&:focus-visible,
|
|
289
297
|
&:has(:focus-visible) {
|
|
290
298
|
--_border: var(--_border-interact);
|
|
291
299
|
background-color: var(--_bg-interact);
|
|
300
|
+
color: var(--_fg-interact);
|
|
292
301
|
}
|
|
293
302
|
|
|
294
303
|
&:active,
|
|
@@ -341,12 +350,16 @@
|
|
|
341
350
|
// Outline: border only, no fill.
|
|
342
351
|
&.is-style-outline {
|
|
343
352
|
--_bg: transparent;
|
|
353
|
+
--_fg: var(--#{sys.$prefix}card-fg, inherit);
|
|
344
354
|
}
|
|
345
355
|
|
|
346
356
|
// Ghost: no resting chrome, reveals a fill on interaction. Border colour goes
|
|
347
357
|
// transparent (box metrics preserved so it aligns with solid/outline in grids).
|
|
348
358
|
&.is-style-ghost {
|
|
349
359
|
--_bg: transparent;
|
|
360
|
+
--_fg: var(--#{sys.$prefix}card-fg, inherit);
|
|
361
|
+
// The hover fill is real, so the text colour is owned while it shows.
|
|
362
|
+
--_fg-interact: var(--#{sys.$prefix}card-fg, var(--#{sys.$prefix}color-fg));
|
|
350
363
|
--_border: transparent;
|
|
351
364
|
--_bg-interact: var(--#{sys.$prefix}card-bg-interact, var(--#{sys.$prefix}color-bg-muted));
|
|
352
365
|
}
|
|
@@ -357,6 +370,7 @@
|
|
|
357
370
|
// `ghost` when you want a hover-reveal on a chrome-less card.
|
|
358
371
|
&.is-style-seamless {
|
|
359
372
|
--_bg: transparent;
|
|
373
|
+
--_fg: var(--#{sys.$prefix}card-fg, inherit);
|
|
360
374
|
--_border: transparent;
|
|
361
375
|
// 0px, NOT 0 — these feed calcs (`calc(100% + var(--_padding))`,
|
|
362
376
|
// `calc(var(--_radius) - var(--_border-width))`). A unitless zero makes
|
|
@@ -169,6 +169,7 @@
|
|
|
169
169
|
var(--#{sys.$prefix}input-border, var(--#{sys.$prefix}color-border));
|
|
170
170
|
border-radius: var(--#{sys.$prefix}input-radius, var(--#{sys.$prefix}radius-md));
|
|
171
171
|
background: var(--#{sys.$prefix}input-bg, var(--#{sys.$prefix}color-bg-surface));
|
|
172
|
+
color: var(--#{sys.$prefix}input-fg, var(--#{sys.$prefix}color-fg));
|
|
172
173
|
font-size: var(--#{sys.$prefix}typography-size-xs);
|
|
173
174
|
|
|
174
175
|
&:focus-within {
|
|
@@ -8,12 +8,17 @@
|
|
|
8
8
|
--tui-combobox-input-border-focus
|
|
9
9
|
--tui-combobox-input-radius
|
|
10
10
|
--tui-combobox-content-bg
|
|
11
|
+
--tui-combobox-content-fg
|
|
11
12
|
--tui-combobox-content-border
|
|
12
13
|
--tui-combobox-content-shadow
|
|
13
14
|
--tui-combobox-content-radius
|
|
14
15
|
--tui-combobox-option-radius
|
|
15
16
|
--tui-combobox-option-bg-hover
|
|
16
17
|
--tui-combobox-option-bg-selected
|
|
18
|
+
--tui-combobox-option-fg-hover
|
|
19
|
+
--tui-combobox-option-fg-selected
|
|
20
|
+
--tui-combobox-option-bg-selected-hover
|
|
21
|
+
--tui-combobox-option-check
|
|
17
22
|
--tui-combobox-option-gap
|
|
18
23
|
*/
|
|
19
24
|
|
|
@@ -27,6 +32,12 @@ $_min-width: 160px;
|
|
|
27
32
|
//
|
|
28
33
|
// Shares visual language with Select. Uses Select tokens as fallbacks.
|
|
29
34
|
//
|
|
35
|
+
// Panel and option tokens sit on top of the family-wide --tui-listbox-* layer
|
|
36
|
+
// (bg, fg, border, shadow, radius, option-radius, option-gap, option-bg-hover,
|
|
37
|
+
// option-fg-hover, option-bg-selected, option-fg-selected,
|
|
38
|
+
// option-bg-selected-hover, option-check). Set --tui-listbox-* to restyle every
|
|
39
|
+
// listbox at once; a per-component token below overrides it for this one.
|
|
40
|
+
//
|
|
30
41
|
// Component API tokens (only define if Combobox needs different values):
|
|
31
42
|
// --tui-combobox-input-bg
|
|
32
43
|
// --tui-combobox-input-fg
|
|
@@ -34,12 +45,17 @@ $_min-width: 160px;
|
|
|
34
45
|
// --tui-combobox-input-border-focus
|
|
35
46
|
// --tui-combobox-input-radius
|
|
36
47
|
// --tui-combobox-content-bg
|
|
48
|
+
// --tui-combobox-content-fg
|
|
37
49
|
// --tui-combobox-content-border
|
|
38
50
|
// --tui-combobox-content-shadow
|
|
39
51
|
// --tui-combobox-content-radius
|
|
40
52
|
// --tui-combobox-option-radius
|
|
41
53
|
// --tui-combobox-option-bg-hover
|
|
42
54
|
// --tui-combobox-option-bg-selected
|
|
55
|
+
// --tui-combobox-option-fg-hover
|
|
56
|
+
// --tui-combobox-option-fg-selected
|
|
57
|
+
// --tui-combobox-option-bg-selected-hover
|
|
58
|
+
// --tui-combobox-option-check
|
|
43
59
|
//
|
|
44
60
|
// ==========================================================================
|
|
45
61
|
|
|
@@ -188,10 +204,11 @@ $_min-width: 160px;
|
|
|
188
204
|
|
|
189
205
|
:where(.#{sys.$prefix}interface) .#{sys.$prefix}combobox__content {
|
|
190
206
|
// Internal tokens with fallbacks to Select tokens
|
|
191
|
-
--_bg: var(--#{sys.$prefix}combobox-content-bg, var(--#{sys.$prefix}select-content-bg, var(--#{sys.$prefix}color-bg-elevated)));
|
|
192
|
-
--
|
|
193
|
-
--
|
|
194
|
-
--
|
|
207
|
+
--_bg: var(--#{sys.$prefix}combobox-content-bg, var(--#{sys.$prefix}select-content-bg, var(--#{sys.$prefix}listbox-bg, var(--#{sys.$prefix}color-bg-elevated))));
|
|
208
|
+
--_fg: var(--#{sys.$prefix}combobox-content-fg, var(--#{sys.$prefix}select-content-fg, var(--#{sys.$prefix}listbox-fg, var(--#{sys.$prefix}color-fg))));
|
|
209
|
+
--_border: var(--#{sys.$prefix}combobox-content-border, var(--#{sys.$prefix}select-content-border, var(--#{sys.$prefix}listbox-border, var(--#{sys.$prefix}color-border))));
|
|
210
|
+
--_shadow: var(--#{sys.$prefix}combobox-content-shadow, var(--#{sys.$prefix}select-content-shadow, var(--#{sys.$prefix}listbox-shadow, var(--#{sys.$prefix}shadow-dropdown))));
|
|
211
|
+
--_radius: var(--#{sys.$prefix}combobox-content-radius, var(--#{sys.$prefix}select-content-radius, var(--#{sys.$prefix}listbox-radius, var(--#{sys.$prefix}radius-md))));
|
|
195
212
|
--_min-width: var(--#{sys.$prefix}combobox-min-width, var(--#{sys.$prefix}select-min-width, #{$_min-width}));
|
|
196
213
|
|
|
197
214
|
// Layout
|
|
@@ -228,6 +245,7 @@ $_min-width: 160px;
|
|
|
228
245
|
|
|
229
246
|
// Visual
|
|
230
247
|
background-color: var(--_bg);
|
|
248
|
+
color: var(--_fg);
|
|
231
249
|
border: var(--#{sys.$prefix}border-width) solid var(--_border);
|
|
232
250
|
border-radius: var(--_radius);
|
|
233
251
|
box-shadow: var(--_shadow);
|
|
@@ -242,9 +260,13 @@ $_min-width: 160px;
|
|
|
242
260
|
|
|
243
261
|
:where(.#{sys.$prefix}interface) .#{sys.$prefix}combobox__option {
|
|
244
262
|
// Internal tokens with fallbacks to Select tokens
|
|
245
|
-
--_option-radius: var(--#{sys.$prefix}combobox-option-radius, var(--#{sys.$prefix}select-option-radius, var(--#{sys.$prefix}radius-sm)));
|
|
246
|
-
--_bg-hover: var(--#{sys.$prefix}combobox-option-bg-hover, var(--#{sys.$prefix}select-option-bg-hover, var(--#{sys.$prefix}color-fill-subtle)));
|
|
247
|
-
--_bg-selected: var(--#{sys.$prefix}combobox-option-bg-selected, var(--#{sys.$prefix}select-option-bg-selected, var(--#{sys.$prefix}theme-primary-subtlest)));
|
|
263
|
+
--_option-radius: var(--#{sys.$prefix}combobox-option-radius, var(--#{sys.$prefix}select-option-radius, var(--#{sys.$prefix}listbox-option-radius, var(--#{sys.$prefix}radius-sm))));
|
|
264
|
+
--_bg-hover: var(--#{sys.$prefix}combobox-option-bg-hover, var(--#{sys.$prefix}select-option-bg-hover, var(--#{sys.$prefix}listbox-option-bg-hover, var(--#{sys.$prefix}color-fill-subtle))));
|
|
265
|
+
--_bg-selected: var(--#{sys.$prefix}combobox-option-bg-selected, var(--#{sys.$prefix}select-option-bg-selected, var(--#{sys.$prefix}listbox-option-bg-selected, var(--#{sys.$prefix}theme-primary-subtlest))));
|
|
266
|
+
--_fg-hover: var(--#{sys.$prefix}combobox-option-fg-hover, var(--#{sys.$prefix}select-option-fg-hover, var(--#{sys.$prefix}listbox-option-fg-hover, inherit)));
|
|
267
|
+
--_fg-selected: var(--#{sys.$prefix}combobox-option-fg-selected, var(--#{sys.$prefix}select-option-fg-selected, var(--#{sys.$prefix}listbox-option-fg-selected, inherit)));
|
|
268
|
+
--_bg-selected-hover: var(--#{sys.$prefix}combobox-option-bg-selected-hover, var(--#{sys.$prefix}select-option-bg-selected-hover, var(--#{sys.$prefix}listbox-option-bg-selected-hover, var(--#{sys.$prefix}theme-primary-subtle))));
|
|
269
|
+
--_check: var(--#{sys.$prefix}combobox-option-check, var(--#{sys.$prefix}select-option-check, var(--#{sys.$prefix}listbox-option-check, var(--#{sys.$prefix}theme-primary-strong))));
|
|
248
270
|
|
|
249
271
|
// Layout
|
|
250
272
|
display: flex;
|
|
@@ -265,21 +287,24 @@ $_min-width: 160px;
|
|
|
265
287
|
// (Not `& + &`: sass expands both ampersands to the full compound
|
|
266
288
|
// selector, and the :where() prefix ends up mid-combinator — dead rule.)
|
|
267
289
|
& + .#{sys.$prefix}combobox__option {
|
|
268
|
-
margin-block-start: var(--#{sys.$prefix}combobox-option-gap, var(--#{sys.$prefix}select-option-gap, 2px));
|
|
290
|
+
margin-block-start: var(--#{sys.$prefix}combobox-option-gap, var(--#{sys.$prefix}select-option-gap, var(--#{sys.$prefix}listbox-option-gap, 2px)));
|
|
269
291
|
}
|
|
270
292
|
|
|
271
293
|
&:hover:not([data-disabled]),
|
|
272
294
|
&[data-highlighted]:not([data-disabled]) {
|
|
273
295
|
background-color: var(--_bg-hover);
|
|
296
|
+
color: var(--_fg-hover);
|
|
274
297
|
}
|
|
275
298
|
|
|
276
299
|
&[aria-selected="true"] {
|
|
277
300
|
background-color: var(--_bg-selected);
|
|
301
|
+
color: var(--_fg-selected);
|
|
278
302
|
}
|
|
279
303
|
|
|
280
304
|
&[aria-selected="true"]:hover:not([data-disabled]),
|
|
281
305
|
&[aria-selected="true"][data-highlighted]:not([data-disabled]) {
|
|
282
|
-
background-color: var(
|
|
306
|
+
background-color: var(--_bg-selected-hover);
|
|
307
|
+
color: var(--_fg-selected);
|
|
283
308
|
}
|
|
284
309
|
|
|
285
310
|
&[data-disabled] {
|
|
@@ -295,7 +320,7 @@ $_min-width: 160px;
|
|
|
295
320
|
|
|
296
321
|
:where(.#{sys.$prefix}interface) .#{sys.$prefix}combobox__option-check {
|
|
297
322
|
flex-shrink: 0;
|
|
298
|
-
color: var(
|
|
323
|
+
color: var(--_check);
|
|
299
324
|
}
|
|
300
325
|
|
|
301
326
|
// ---------------------------------------------------------------------------
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
// Themes
|
|
88
88
|
// -------------------------------------------------------------------------
|
|
89
89
|
&.is-theme-default {
|
|
90
|
-
--_border: var(--#{sys.$prefix}color-
|
|
90
|
+
--_border: var(--#{sys.$prefix}color-fg-muted);
|
|
91
91
|
--_fg: var(--#{sys.$prefix}color-fg-muted);
|
|
92
92
|
}
|
|
93
93
|
|
|
@@ -132,6 +132,20 @@
|
|
|
132
132
|
color: var(--#{sys.$prefix}color-fg-muted);
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
+
// On a filled cell (today, in-range, hover) muted text drops below AA
|
|
136
|
+
// (4.39:1 on bg-muted in light), so step up to secondary. The extra states
|
|
137
|
+
// sit in :where() to hold this at the outside rule's weight: the selected
|
|
138
|
+
// rule below must still win on source order.
|
|
139
|
+
&__cell.is-outside:where(.is-today, .is-in-range) .#{sys.$prefix}calendar__day {
|
|
140
|
+
color: var(--#{sys.$prefix}color-fg-secondary);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@media (hover: hover) {
|
|
144
|
+
&__cell.is-outside .#{sys.$prefix}calendar__day:where(:hover) {
|
|
145
|
+
color: var(--#{sys.$prefix}color-fg-secondary);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
135
149
|
&__cell.is-today .#{sys.$prefix}calendar__day {
|
|
136
150
|
background-color: var(--_today-bg);
|
|
137
151
|
}
|
|
@@ -266,6 +280,7 @@
|
|
|
266
280
|
display: inline-flex;
|
|
267
281
|
align-items: center;
|
|
268
282
|
background-color: var(--#{sys.$prefix}input-bg, var(--#{sys.$prefix}color-bg-surface));
|
|
283
|
+
color: var(--#{sys.$prefix}input-fg, var(--#{sys.$prefix}color-fg));
|
|
269
284
|
border: var(--#{sys.$prefix}border-width) solid
|
|
270
285
|
var(--#{sys.$prefix}input-border, var(--#{sys.$prefix}color-border));
|
|
271
286
|
border-radius: var(--#{sys.$prefix}input-radius, var(--#{sys.$prefix}radius-md));
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
--tui-dropdown-min-width
|
|
12
12
|
--tui-dropdown-item-bg-hover
|
|
13
13
|
--tui-dropdown-item-bg-active
|
|
14
|
+
--tui-dropdown-item-fg
|
|
15
|
+
--tui-dropdown-item-fg-hover
|
|
16
|
+
--tui-dropdown-item-fg-active
|
|
14
17
|
*/
|
|
15
18
|
|
|
16
19
|
@mixin styles() {
|
|
@@ -28,6 +31,9 @@
|
|
|
28
31
|
// --tui-dropdown-min-width Minimum width
|
|
29
32
|
// --tui-dropdown-item-bg-hover Item hover background
|
|
30
33
|
// --tui-dropdown-item-bg-active Item active/selected background
|
|
34
|
+
// --tui-dropdown-item-fg Item text (default: the menu's fg)
|
|
35
|
+
// --tui-dropdown-item-fg-hover Item hover/focus text
|
|
36
|
+
// --tui-dropdown-item-fg-active Item pressed text
|
|
31
37
|
//
|
|
32
38
|
// ==========================================================================
|
|
33
39
|
|
|
@@ -44,6 +50,13 @@
|
|
|
44
50
|
// no feedback at all.
|
|
45
51
|
--_item-bg-hover: var(--#{sys.$prefix}dropdown-item-bg-hover, var(--#{sys.$prefix}color-fill-subtle));
|
|
46
52
|
--_item-bg-active: var(--#{sys.$prefix}dropdown-item-bg-active, var(--#{sys.$prefix}color-fill));
|
|
53
|
+
// Each row state pairs its fill with a foreground. These resolve HERE, on
|
|
54
|
+
// the panel, and reach the items as computed colours. The items are
|
|
55
|
+
// Buttons with their own --_fg, so a var(--_fg) written on the item would
|
|
56
|
+
// read the Button's internal, not the menu's.
|
|
57
|
+
--_item-fg: var(--#{sys.$prefix}dropdown-item-fg, var(--_fg));
|
|
58
|
+
--_item-fg-hover: var(--#{sys.$prefix}dropdown-item-fg-hover, var(--_item-fg));
|
|
59
|
+
--_item-fg-active: var(--#{sys.$prefix}dropdown-item-fg-active, var(--_item-fg-hover));
|
|
47
60
|
|
|
48
61
|
// Layout
|
|
49
62
|
z-index: var(--_z);
|
|
@@ -90,26 +103,32 @@
|
|
|
90
103
|
text-align: left;
|
|
91
104
|
font-weight: normal;
|
|
92
105
|
|
|
93
|
-
// Override Button's
|
|
106
|
+
// Override Button's colours for menu context. These are the tokens the
|
|
107
|
+
// ghost variant actually reads: rest from -bg/-fg, hover/focus/active from
|
|
108
|
+
// -bg-interact/-fg-interact. Setting -fg to `inherit` did nothing (on a
|
|
109
|
+
// custom property that copies the parent's unset value), and hover set
|
|
110
|
+
// -bg, which ghost never reads, so items rendered as primary-blue text with
|
|
111
|
+
// a primary hover instead of riding the fill ladder.
|
|
94
112
|
--#{sys.$prefix}button-bg: transparent;
|
|
95
|
-
--#{sys.$prefix}button-fg:
|
|
96
|
-
--#{sys.$prefix}button-border
|
|
113
|
+
--#{sys.$prefix}button-fg: var(--_item-fg);
|
|
114
|
+
--#{sys.$prefix}button-border: transparent;
|
|
115
|
+
--#{sys.$prefix}button-bg-interact: var(--_item-bg-hover);
|
|
116
|
+
--#{sys.$prefix}button-fg-interact: var(--_item-fg-hover);
|
|
117
|
+
--#{sys.$prefix}button-border-interact: transparent;
|
|
97
118
|
|
|
98
|
-
&:hover,
|
|
99
119
|
&[data-active] {
|
|
100
120
|
--#{sys.$prefix}button-bg: var(--_item-bg-hover);
|
|
101
|
-
--#{sys.$prefix}button-fg:
|
|
121
|
+
--#{sys.$prefix}button-fg: var(--_item-fg-hover);
|
|
102
122
|
}
|
|
103
123
|
|
|
104
124
|
&:focus-visible {
|
|
105
|
-
--#{sys.$prefix}button-bg: var(--_item-bg-hover);
|
|
106
|
-
--#{sys.$prefix}button-fg: inherit;
|
|
107
125
|
outline: var(--#{sys.$prefix}focus-ring-width) solid var(--#{sys.$prefix}focus-ring-color);
|
|
108
126
|
outline-offset: calc(-1 * var(--#{sys.$prefix}focus-ring-width, 2px));
|
|
109
127
|
}
|
|
110
128
|
|
|
111
129
|
&:active {
|
|
112
|
-
--#{sys.$prefix}button-bg: var(--_item-bg-active);
|
|
130
|
+
--#{sys.$prefix}button-bg-interact: var(--_item-bg-active);
|
|
131
|
+
--#{sys.$prefix}button-fg-interact: var(--_item-fg-active);
|
|
113
132
|
}
|
|
114
133
|
|
|
115
134
|
&:disabled,
|
|
@@ -89,6 +89,7 @@
|
|
|
89
89
|
border-radius: var(--#{sys.$prefix}radius-full, 999px);
|
|
90
90
|
border: var(--#{sys.$prefix}border-width) solid var(--#{sys.$prefix}color-border);
|
|
91
91
|
background: var(--#{sys.$prefix}input-bg, var(--#{sys.$prefix}color-bg-surface));
|
|
92
|
+
color: var(--#{sys.$prefix}input-fg, var(--#{sys.$prefix}color-fg));
|
|
92
93
|
cursor: grab;
|
|
93
94
|
touch-action: none;
|
|
94
95
|
user-select: none;
|
|
@@ -8,12 +8,17 @@
|
|
|
8
8
|
--tui-multicombobox-control-border-focus Control border colour (focus / open)
|
|
9
9
|
--tui-multicombobox-control-radius Control border radius
|
|
10
10
|
--tui-multicombobox-content-bg Listbox background
|
|
11
|
+
--tui-multicombobox-content-fg Listbox text colour
|
|
11
12
|
--tui-multicombobox-content-border Listbox border colour
|
|
12
13
|
--tui-multicombobox-content-shadow Listbox drop shadow
|
|
13
14
|
--tui-multicombobox-content-radius Listbox border radius
|
|
14
15
|
--tui-multicombobox-option-radius Option corner radius
|
|
15
16
|
--tui-multicombobox-option-bg-hover Option background (hover / highlighted)
|
|
16
17
|
--tui-multicombobox-option-bg-selected Option background (selected)
|
|
18
|
+
--tui-multicombobox-option-fg-hover
|
|
19
|
+
--tui-multicombobox-option-fg-selected
|
|
20
|
+
--tui-multicombobox-option-bg-selected-hover
|
|
21
|
+
--tui-multicombobox-option-check
|
|
17
22
|
--tui-multicombobox-option-gap Vertical gap between options
|
|
18
23
|
*/
|
|
19
24
|
|
|
@@ -31,7 +36,8 @@ $_token-row-padding: 2px;
|
|
|
31
36
|
//
|
|
32
37
|
// The free-typing sibling of MultiSelect. Shares Combobox's visual language
|
|
33
38
|
// for the listbox and Select tokens as the ultimate fallback: token chains
|
|
34
|
-
// resolve --tui-multicombobox-* → --tui-combobox-* → --tui-select-* →
|
|
39
|
+
// resolve --tui-multicombobox-* → --tui-combobox-* → --tui-select-* →
|
|
40
|
+
// --tui-listbox-* (the family-wide layer) → system.
|
|
35
41
|
//
|
|
36
42
|
// The control is a token field: a bordered box holding wrapping chips and an
|
|
37
43
|
// auto-growing search input, with the clear-all button and chevron pinned to
|
|
@@ -264,10 +270,11 @@ $_token-row-padding: 2px;
|
|
|
264
270
|
// ---------------------------------------------------------------------------
|
|
265
271
|
|
|
266
272
|
:where(.#{sys.$prefix}interface) .#{sys.$prefix}multicombobox__content {
|
|
267
|
-
--_bg: var(--#{sys.$prefix}multicombobox-content-bg, var(--#{sys.$prefix}combobox-content-bg, var(--#{sys.$prefix}select-content-bg, var(--#{sys.$prefix}color-bg-elevated))));
|
|
268
|
-
--
|
|
269
|
-
--
|
|
270
|
-
--
|
|
273
|
+
--_bg: var(--#{sys.$prefix}multicombobox-content-bg, var(--#{sys.$prefix}combobox-content-bg, var(--#{sys.$prefix}select-content-bg, var(--#{sys.$prefix}listbox-bg, var(--#{sys.$prefix}color-bg-elevated)))));
|
|
274
|
+
--_fg: var(--#{sys.$prefix}multicombobox-content-fg, var(--#{sys.$prefix}combobox-content-fg, var(--#{sys.$prefix}select-content-fg, var(--#{sys.$prefix}listbox-fg, var(--#{sys.$prefix}color-fg)))));
|
|
275
|
+
--_border: var(--#{sys.$prefix}multicombobox-content-border, var(--#{sys.$prefix}combobox-content-border, var(--#{sys.$prefix}select-content-border, var(--#{sys.$prefix}listbox-border, var(--#{sys.$prefix}color-border)))));
|
|
276
|
+
--_shadow: var(--#{sys.$prefix}multicombobox-content-shadow, var(--#{sys.$prefix}combobox-content-shadow, var(--#{sys.$prefix}select-content-shadow, var(--#{sys.$prefix}listbox-shadow, var(--#{sys.$prefix}shadow-dropdown)))));
|
|
277
|
+
--_radius: var(--#{sys.$prefix}multicombobox-content-radius, var(--#{sys.$prefix}combobox-content-radius, var(--#{sys.$prefix}select-content-radius, var(--#{sys.$prefix}listbox-radius, var(--#{sys.$prefix}radius-md)))));
|
|
271
278
|
--_min-width: var(--#{sys.$prefix}multicombobox-min-width, var(--#{sys.$prefix}combobox-min-width, var(--#{sys.$prefix}select-min-width, #{$_min-width})));
|
|
272
279
|
|
|
273
280
|
z-index: var(--#{sys.$prefix}layer-top);
|
|
@@ -301,6 +308,7 @@ $_token-row-padding: 2px;
|
|
|
301
308
|
}
|
|
302
309
|
|
|
303
310
|
background-color: var(--_bg);
|
|
311
|
+
color: var(--_fg);
|
|
304
312
|
border: var(--#{sys.$prefix}border-width) solid var(--_border);
|
|
305
313
|
border-radius: var(--_radius);
|
|
306
314
|
box-shadow: var(--_shadow);
|
|
@@ -313,9 +321,13 @@ $_token-row-padding: 2px;
|
|
|
313
321
|
// ---------------------------------------------------------------------------
|
|
314
322
|
|
|
315
323
|
:where(.#{sys.$prefix}interface) .#{sys.$prefix}multicombobox__option {
|
|
316
|
-
--_option-radius: var(--#{sys.$prefix}multicombobox-option-radius, var(--#{sys.$prefix}combobox-option-radius, var(--#{sys.$prefix}select-option-radius, var(--#{sys.$prefix}radius-sm))));
|
|
317
|
-
--_bg-hover: var(--#{sys.$prefix}multicombobox-option-bg-hover, var(--#{sys.$prefix}combobox-option-bg-hover, var(--#{sys.$prefix}select-option-bg-hover, var(--#{sys.$prefix}color-fill-subtle))));
|
|
318
|
-
--_bg-selected: var(--#{sys.$prefix}multicombobox-option-bg-selected, var(--#{sys.$prefix}combobox-option-bg-selected, var(--#{sys.$prefix}select-option-bg-selected, var(--#{sys.$prefix}theme-primary-subtlest))));
|
|
324
|
+
--_option-radius: var(--#{sys.$prefix}multicombobox-option-radius, var(--#{sys.$prefix}combobox-option-radius, var(--#{sys.$prefix}select-option-radius, var(--#{sys.$prefix}listbox-option-radius, var(--#{sys.$prefix}radius-sm)))));
|
|
325
|
+
--_bg-hover: var(--#{sys.$prefix}multicombobox-option-bg-hover, var(--#{sys.$prefix}combobox-option-bg-hover, var(--#{sys.$prefix}select-option-bg-hover, var(--#{sys.$prefix}listbox-option-bg-hover, var(--#{sys.$prefix}color-fill-subtle)))));
|
|
326
|
+
--_bg-selected: var(--#{sys.$prefix}multicombobox-option-bg-selected, var(--#{sys.$prefix}combobox-option-bg-selected, var(--#{sys.$prefix}select-option-bg-selected, var(--#{sys.$prefix}listbox-option-bg-selected, var(--#{sys.$prefix}theme-primary-subtlest)))));
|
|
327
|
+
--_fg-hover: var(--#{sys.$prefix}multicombobox-option-fg-hover, var(--#{sys.$prefix}combobox-option-fg-hover, var(--#{sys.$prefix}select-option-fg-hover, var(--#{sys.$prefix}listbox-option-fg-hover, inherit))));
|
|
328
|
+
--_fg-selected: var(--#{sys.$prefix}multicombobox-option-fg-selected, var(--#{sys.$prefix}combobox-option-fg-selected, var(--#{sys.$prefix}select-option-fg-selected, var(--#{sys.$prefix}listbox-option-fg-selected, inherit))));
|
|
329
|
+
--_bg-selected-hover: var(--#{sys.$prefix}multicombobox-option-bg-selected-hover, var(--#{sys.$prefix}combobox-option-bg-selected-hover, var(--#{sys.$prefix}select-option-bg-selected-hover, var(--#{sys.$prefix}listbox-option-bg-selected-hover, var(--#{sys.$prefix}theme-primary-subtle)))));
|
|
330
|
+
--_check: var(--#{sys.$prefix}multicombobox-option-check, var(--#{sys.$prefix}combobox-option-check, var(--#{sys.$prefix}select-option-check, var(--#{sys.$prefix}listbox-option-check, var(--#{sys.$prefix}theme-primary-strong)))));
|
|
319
331
|
|
|
320
332
|
display: flex;
|
|
321
333
|
align-items: center;
|
|
@@ -330,21 +342,24 @@ $_token-row-padding: 2px;
|
|
|
330
342
|
transition: background-color var(--#{sys.$prefix}motion-duration) var(--#{sys.$prefix}motion-timing);
|
|
331
343
|
|
|
332
344
|
& + .#{sys.$prefix}multicombobox__option {
|
|
333
|
-
margin-block-start: var(--#{sys.$prefix}multicombobox-option-gap, var(--#{sys.$prefix}combobox-option-gap, var(--#{sys.$prefix}select-option-gap, 2px)));
|
|
345
|
+
margin-block-start: var(--#{sys.$prefix}multicombobox-option-gap, var(--#{sys.$prefix}combobox-option-gap, var(--#{sys.$prefix}select-option-gap, var(--#{sys.$prefix}listbox-option-gap, 2px))));
|
|
334
346
|
}
|
|
335
347
|
|
|
336
348
|
&:hover:not([data-disabled]),
|
|
337
349
|
&[data-highlighted]:not([data-disabled]) {
|
|
338
350
|
background-color: var(--_bg-hover);
|
|
351
|
+
color: var(--_fg-hover);
|
|
339
352
|
}
|
|
340
353
|
|
|
341
354
|
&[aria-selected="true"] {
|
|
342
355
|
background-color: var(--_bg-selected);
|
|
356
|
+
color: var(--_fg-selected);
|
|
343
357
|
}
|
|
344
358
|
|
|
345
359
|
&[aria-selected="true"]:hover:not([data-disabled]),
|
|
346
360
|
&[aria-selected="true"][data-highlighted]:not([data-disabled]) {
|
|
347
|
-
background-color: var(
|
|
361
|
+
background-color: var(--_bg-selected-hover);
|
|
362
|
+
color: var(--_fg-selected);
|
|
348
363
|
}
|
|
349
364
|
|
|
350
365
|
&[data-disabled] {
|
|
@@ -360,7 +375,7 @@ $_token-row-padding: 2px;
|
|
|
360
375
|
align-items: center;
|
|
361
376
|
justify-content: center;
|
|
362
377
|
width: 1.25em;
|
|
363
|
-
color: var(
|
|
378
|
+
color: var(--_check);
|
|
364
379
|
}
|
|
365
380
|
|
|
366
381
|
:where(.#{sys.$prefix}interface) .#{sys.$prefix}multicombobox__option-content {
|
|
@@ -8,12 +8,16 @@
|
|
|
8
8
|
--tui-multiselect-trigger-border-focus
|
|
9
9
|
--tui-multiselect-trigger-radius
|
|
10
10
|
--tui-multiselect-content-bg
|
|
11
|
+
--tui-multiselect-content-fg
|
|
11
12
|
--tui-multiselect-content-border
|
|
12
13
|
--tui-multiselect-content-shadow
|
|
13
14
|
--tui-multiselect-content-radius
|
|
14
15
|
--tui-multiselect-option-radius
|
|
15
16
|
--tui-multiselect-option-bg-hover
|
|
16
17
|
--tui-multiselect-option-bg-selected
|
|
18
|
+
--tui-multiselect-option-fg-hover
|
|
19
|
+
--tui-multiselect-option-fg-selected
|
|
20
|
+
--tui-multiselect-option-bg-selected-hover
|
|
17
21
|
--tui-multiselect-option-gap
|
|
18
22
|
--tui-multiselect-chip-bg
|
|
19
23
|
--tui-multiselect-chip-fg
|
|
@@ -29,6 +33,12 @@ $_chip-max-width: 120px;
|
|
|
29
33
|
// MultiSelect Component
|
|
30
34
|
// ==========================================================================
|
|
31
35
|
//
|
|
36
|
+
// Panel and option tokens sit on top of the family-wide --tui-listbox-* layer
|
|
37
|
+
// (bg, fg, border, shadow, radius, option-radius, option-gap, option-bg-hover,
|
|
38
|
+
// option-fg-hover, option-bg-selected, option-fg-selected,
|
|
39
|
+
// option-bg-selected-hover, option-check). Set --tui-listbox-* to restyle every
|
|
40
|
+
// listbox at once; a per-component token below overrides it for this one.
|
|
41
|
+
//
|
|
32
42
|
// Component API tokens (never defined here, only read via fallback):
|
|
33
43
|
//
|
|
34
44
|
// Trigger:
|
|
@@ -40,6 +50,7 @@ $_chip-max-width: 120px;
|
|
|
40
50
|
//
|
|
41
51
|
// Content:
|
|
42
52
|
// --tui-multiselect-content-bg
|
|
53
|
+
// --tui-multiselect-content-fg
|
|
43
54
|
// --tui-multiselect-content-border
|
|
44
55
|
// --tui-multiselect-content-shadow
|
|
45
56
|
// --tui-multiselect-content-radius
|
|
@@ -48,6 +59,9 @@ $_chip-max-width: 120px;
|
|
|
48
59
|
// --tui-multiselect-option-radius
|
|
49
60
|
// --tui-multiselect-option-bg-hover
|
|
50
61
|
// --tui-multiselect-option-bg-selected
|
|
62
|
+
// --tui-multiselect-option-fg-hover
|
|
63
|
+
// --tui-multiselect-option-fg-selected
|
|
64
|
+
// --tui-multiselect-option-bg-selected-hover
|
|
51
65
|
//
|
|
52
66
|
// Chips:
|
|
53
67
|
// --tui-multiselect-chip-bg
|
|
@@ -203,10 +217,11 @@ $_chip-max-width: 120px;
|
|
|
203
217
|
|
|
204
218
|
:where(.#{sys.$prefix}interface) .#{sys.$prefix}multiselect__content {
|
|
205
219
|
// Internal tokens with real fallbacks
|
|
206
|
-
--_bg: var(--#{sys.$prefix}multiselect-content-bg, var(--#{sys.$prefix}color-bg-elevated));
|
|
207
|
-
--
|
|
208
|
-
--
|
|
209
|
-
--
|
|
220
|
+
--_bg: var(--#{sys.$prefix}multiselect-content-bg, var(--#{sys.$prefix}listbox-bg, var(--#{sys.$prefix}color-bg-elevated)));
|
|
221
|
+
--_fg: var(--#{sys.$prefix}multiselect-content-fg, var(--#{sys.$prefix}listbox-fg, var(--#{sys.$prefix}color-fg)));
|
|
222
|
+
--_border: var(--#{sys.$prefix}multiselect-content-border, var(--#{sys.$prefix}listbox-border, var(--#{sys.$prefix}color-border)));
|
|
223
|
+
--_shadow: var(--#{sys.$prefix}multiselect-content-shadow, var(--#{sys.$prefix}listbox-shadow, var(--#{sys.$prefix}shadow-dropdown)));
|
|
224
|
+
--_radius: var(--#{sys.$prefix}multiselect-content-radius, var(--#{sys.$prefix}listbox-radius, var(--#{sys.$prefix}radius-md)));
|
|
210
225
|
--_min-width: var(--#{sys.$prefix}multiselect-min-width, #{$_min-width});
|
|
211
226
|
|
|
212
227
|
// Layout
|
|
@@ -243,6 +258,7 @@ $_chip-max-width: 120px;
|
|
|
243
258
|
|
|
244
259
|
// Visual
|
|
245
260
|
background-color: var(--_bg);
|
|
261
|
+
color: var(--_fg);
|
|
246
262
|
border: var(--#{sys.$prefix}border-width) solid var(--_border);
|
|
247
263
|
border-radius: var(--_radius);
|
|
248
264
|
box-shadow: var(--_shadow);
|
|
@@ -257,9 +273,12 @@ $_chip-max-width: 120px;
|
|
|
257
273
|
|
|
258
274
|
:where(.#{sys.$prefix}interface) .#{sys.$prefix}multiselect__option {
|
|
259
275
|
// Internal tokens with real fallbacks
|
|
260
|
-
--_option-radius: var(--#{sys.$prefix}multiselect-option-radius, var(--#{sys.$prefix}radius-sm));
|
|
261
|
-
--_bg-hover: var(--#{sys.$prefix}multiselect-option-bg-hover, var(--#{sys.$prefix}color-fill-subtle));
|
|
262
|
-
--_bg-selected: var(--#{sys.$prefix}multiselect-option-bg-selected, var(--#{sys.$prefix}theme-primary-subtlest));
|
|
276
|
+
--_option-radius: var(--#{sys.$prefix}multiselect-option-radius, var(--#{sys.$prefix}listbox-option-radius, var(--#{sys.$prefix}radius-sm)));
|
|
277
|
+
--_bg-hover: var(--#{sys.$prefix}multiselect-option-bg-hover, var(--#{sys.$prefix}listbox-option-bg-hover, var(--#{sys.$prefix}color-fill-subtle)));
|
|
278
|
+
--_bg-selected: var(--#{sys.$prefix}multiselect-option-bg-selected, var(--#{sys.$prefix}listbox-option-bg-selected, var(--#{sys.$prefix}theme-primary-subtlest)));
|
|
279
|
+
--_fg-hover: var(--#{sys.$prefix}multiselect-option-fg-hover, var(--#{sys.$prefix}listbox-option-fg-hover, inherit));
|
|
280
|
+
--_fg-selected: var(--#{sys.$prefix}multiselect-option-fg-selected, var(--#{sys.$prefix}listbox-option-fg-selected, inherit));
|
|
281
|
+
--_bg-selected-hover: var(--#{sys.$prefix}multiselect-option-bg-selected-hover, var(--#{sys.$prefix}listbox-option-bg-selected-hover, var(--#{sys.$prefix}theme-primary-subtle)));
|
|
263
282
|
|
|
264
283
|
// Layout
|
|
265
284
|
display: flex;
|
|
@@ -279,21 +298,24 @@ $_chip-max-width: 120px;
|
|
|
279
298
|
// (Not `& + &`: sass expands both ampersands to the full compound
|
|
280
299
|
// selector, and the :where() prefix ends up mid-combinator — dead rule.)
|
|
281
300
|
& + .#{sys.$prefix}multiselect__option {
|
|
282
|
-
margin-block-start: var(--#{sys.$prefix}multiselect-option-gap, var(--#{sys.$prefix}select-option-gap, 2px));
|
|
301
|
+
margin-block-start: var(--#{sys.$prefix}multiselect-option-gap, var(--#{sys.$prefix}select-option-gap, var(--#{sys.$prefix}listbox-option-gap, 2px)));
|
|
283
302
|
}
|
|
284
303
|
|
|
285
304
|
&:hover:not([data-disabled]):not([data-blocked]),
|
|
286
305
|
&[data-highlighted]:not([data-disabled]):not([data-blocked]) {
|
|
287
306
|
background-color: var(--_bg-hover);
|
|
307
|
+
color: var(--_fg-hover);
|
|
288
308
|
}
|
|
289
309
|
|
|
290
310
|
&[aria-selected="true"] {
|
|
291
311
|
background-color: var(--_bg-selected);
|
|
312
|
+
color: var(--_fg-selected);
|
|
292
313
|
}
|
|
293
314
|
|
|
294
315
|
&[aria-selected="true"]:hover:not([data-disabled]):not([data-blocked]),
|
|
295
316
|
&[aria-selected="true"][data-highlighted]:not([data-disabled]):not([data-blocked]) {
|
|
296
|
-
background-color: var(
|
|
317
|
+
background-color: var(--_bg-selected-hover);
|
|
318
|
+
color: var(--_fg-selected);
|
|
297
319
|
}
|
|
298
320
|
|
|
299
321
|
// Intrinsically disabled (disabled prop)
|