@threadlabs/looma 0.46.4 → 0.47.0

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/README.md CHANGED
@@ -56,8 +56,8 @@ stylesheet is the only stylesheet to include. Without a build, link components o
56
56
  ## Site navigation
57
57
 
58
58
  Provide the brand and navigation once. SiteHeader automatically adds a hamburger
59
- in the inline navigation's position beside the logo below 64rem, keeping the same
60
- brand-to-navigation gap. Optional actions stay at the trailing edge. It opens the
59
+ in the inline navigation's position beside the logo below 64rem, using compact
60
+ mobile spacing. Optional actions stay at the trailing edge. It opens the
61
61
  same links in a full-height, scrollable modal drawer with a dark backdrop. It
62
62
  handles focus, page scroll locking, Escape,
63
63
  outside presses, and closing after link selection. No separate menu or drawer wiring
@@ -130,6 +130,9 @@
130
130
  --_tone-highlight: var(--ui-accent-highlight, none);
131
131
  --_tone-hover-highlight: var(--ui-accent-hover-highlight, none);
132
132
  --_tone-outline-border: var(--ui-accent-outline-border, var(--ui-accent-subtle-text));
133
+ --_tone-wash: var(--ui-accent-wash);
134
+ --_tone-wash-hover: var(--ui-accent-wash-hover);
135
+ --_tone-ghost-hover: var(--ui-accent-ghost-hover);
133
136
  --_tone-glow: var(--ui-accent-glow, 0 0 transparent);
134
137
  --_hue: var(--ui-accent);
135
138
  --_hue-hover: var(--ui-accent-hover);
@@ -316,7 +319,7 @@
316
319
 
317
320
  :host[data-appearance="outline"]:not([data-tone="neutral"]) {
318
321
  --_outline-highlight: var(--ui-surface-highlight, linear-gradient(transparent, transparent));
319
- --_outline-wash: oklch(from var(--_tone) l c h / calc(8% * var(--ui-tonal-opacity, 1)));
322
+ --_outline-wash: var(--_tone-wash);
320
323
  border-color: var(--ui-button-border, var(--_tone-outline-border, var(--_tone-text)));
321
324
  background-color: var(--ui-button-surface, transparent);
322
325
  box-shadow: var(--ui-button-shadow, var(--ui-neutral-shadow));
@@ -326,8 +329,7 @@
326
329
  }
327
330
 
328
331
  :host[data-appearance="outline"]:not([data-tone="neutral"]):hover:not(:disabled, [aria-disabled="true"]) {
329
- --_outline-highlight: var(--ui-neutral-highlight, var(--ui-surface-highlight, linear-gradient(transparent, transparent)));
330
- --_outline-wash: oklch(from var(--_tone) l c h / calc(12% * var(--ui-tonal-opacity, 1)));
332
+ --_outline-wash: var(--_tone-wash-hover);
331
333
  background-color: var(--ui-button-hover-surface, transparent);
332
334
  border-color: var(--ui-button-hover-border, var(--_tone-outline-border));
333
335
  }
@@ -395,6 +397,9 @@
395
397
  --_tone-highlight: var(--ui-accent-secondary-highlight, none);
396
398
  --_tone-hover-highlight: var(--ui-accent-secondary-hover-highlight, none);
397
399
  --_tone-outline-border: var(--ui-accent-secondary-outline-border, var(--ui-accent-secondary-subtle-text));
400
+ --_tone-wash: var(--ui-accent-secondary-wash);
401
+ --_tone-wash-hover: var(--ui-accent-secondary-wash-hover);
402
+ --_tone-ghost-hover: var(--ui-accent-secondary-ghost-hover);
398
403
  --_tone-glow: var(--ui-accent-secondary-glow, 0 0 transparent);
399
404
  --_hue: var(--ui-accent-secondary);
400
405
  --_hue-hover: var(--ui-accent-secondary-hover);
@@ -410,6 +415,9 @@
410
415
  --_tone-highlight: var(--ui-accent-tertiary-highlight, none);
411
416
  --_tone-hover-highlight: var(--ui-accent-tertiary-hover-highlight, none);
412
417
  --_tone-outline-border: var(--ui-accent-tertiary-outline-border, var(--ui-accent-tertiary-subtle-text));
418
+ --_tone-wash: var(--ui-accent-tertiary-wash);
419
+ --_tone-wash-hover: var(--ui-accent-tertiary-wash-hover);
420
+ --_tone-ghost-hover: var(--ui-accent-tertiary-ghost-hover);
413
421
  --_tone-glow: var(--ui-accent-tertiary-glow, 0 0 transparent);
414
422
  --_hue: var(--ui-accent-tertiary);
415
423
  --_hue-hover: var(--ui-accent-tertiary-hover);
@@ -423,8 +431,9 @@
423
431
  --_tone-hover-border: var(--ui-control-border-hover, var(--ui-neutral-hover));
424
432
  --_tone-active-border: var(--ui-control-border-hover, var(--ui-neutral-active));
425
433
  --_tone-highlight: var(--ui-neutral-highlight, none);
426
- --_tone-hover-highlight: var(--ui-neutral-highlight, var(--_tone-highlight));
434
+ --_tone-hover-highlight: var(--ui-neutral-hover-highlight, var(--_tone-highlight));
427
435
  --_tone-outline-border: var(--ui-control-border);
436
+ --_tone-ghost-hover: var(--ui-neutral-ghost-hover);
428
437
  --_tone-glow: var(--ui-neutral-glow, 0 0 transparent);
429
438
  --_hue: var(--ui-text);
430
439
  --_hue-hover: var(--ui-text);
@@ -446,8 +455,8 @@
446
455
  }
447
456
  :host[data-tone="neutral"][data-appearance="outline"]:hover:not(:disabled, [aria-disabled="true"]) {
448
457
  border-color: var(--ui-button-hover-border, var(--ui-control-border-hover));
449
- background-color: var(--ui-button-hover-surface, var(--ui-neutral-hover));
450
- --_outline-wash: oklch(from var(--ui-text) l c h / 5%);
458
+ background-color: var(--ui-button-hover-surface, transparent);
459
+ --_outline-wash: var(--ui-neutral-wash-hover);
451
460
  background-image:
452
461
  linear-gradient(var(--_outline-wash), var(--_outline-wash)),
453
462
  var(--ui-surface-highlight, linear-gradient(transparent, transparent));
@@ -473,6 +482,9 @@
473
482
  --_tone-highlight: var(--ui-danger-highlight, none);
474
483
  --_tone-hover-highlight: var(--ui-danger-hover-highlight, none);
475
484
  --_tone-outline-border: var(--ui-danger-outline-border, var(--ui-danger-subtle-text));
485
+ --_tone-wash: var(--ui-danger-wash);
486
+ --_tone-wash-hover: var(--ui-danger-wash-hover);
487
+ --_tone-ghost-hover: var(--ui-danger-ghost-hover);
476
488
  --_tone-glow: var(--ui-danger-glow, 0 0 transparent);
477
489
  --_hue: var(--ui-danger);
478
490
  --_hue-hover: var(--ui-danger-hover);
@@ -488,6 +500,9 @@
488
500
  --_tone-highlight: var(--ui-success-highlight, none);
489
501
  --_tone-hover-highlight: var(--ui-success-hover-highlight, none);
490
502
  --_tone-outline-border: var(--ui-success-outline-border, var(--ui-success-subtle-text));
503
+ --_tone-wash: var(--ui-success-wash);
504
+ --_tone-wash-hover: var(--ui-success-wash-hover);
505
+ --_tone-ghost-hover: var(--ui-success-ghost-hover);
491
506
  --_tone-glow: var(--ui-success-glow, 0 0 transparent);
492
507
  --_hue: var(--ui-success);
493
508
  --_hue-hover: var(--ui-success-hover);
@@ -503,6 +518,9 @@
503
518
  --_tone-highlight: var(--ui-warning-highlight, none);
504
519
  --_tone-hover-highlight: var(--ui-warning-hover-highlight, none);
505
520
  --_tone-outline-border: var(--ui-warning-outline-border, var(--ui-warning-subtle-text));
521
+ --_tone-wash: var(--ui-warning-wash);
522
+ --_tone-wash-hover: var(--ui-warning-wash-hover);
523
+ --_tone-ghost-hover: var(--ui-warning-ghost-hover);
506
524
  --_tone-glow: var(--ui-warning-glow, 0 0 transparent);
507
525
  --_hue: var(--ui-warning);
508
526
  --_hue-hover: var(--ui-warning-hover);
@@ -518,6 +536,9 @@
518
536
  --_tone-highlight: var(--ui-info-highlight, none);
519
537
  --_tone-hover-highlight: var(--ui-info-hover-highlight, none);
520
538
  --_tone-outline-border: var(--ui-info-outline-border, var(--ui-info-subtle-text));
539
+ --_tone-wash: var(--ui-info-wash);
540
+ --_tone-wash-hover: var(--ui-info-wash-hover);
541
+ --_tone-ghost-hover: var(--ui-info-ghost-hover);
521
542
  --_tone-glow: var(--ui-info-glow, 0 0 transparent);
522
543
  --_hue: var(--ui-info);
523
544
  --_hue-hover: var(--ui-info-hover);
@@ -560,9 +581,9 @@
560
581
  color: var(--ui-button-ghost-text, var(--_tone-text));
561
582
  }
562
583
 
563
- /* Tints derive from the text colour, not a surface token, so hover and press show on any background. */
584
+ /* Shared translucent paint keeps text and icon action feedback coordinated. */
564
585
  :host[data-appearance="ghost"]:hover:not(:disabled, [aria-disabled="true"]) {
565
- background-color: var(--ui-button-ghost-hover-surface, oklch(from var(--_tone) l c h / calc(10% * var(--ui-tonal-opacity, 1))));
586
+ background-color: var(--ui-button-ghost-hover-surface, var(--_tone-ghost-hover));
566
587
  border-color: transparent;
567
588
  }
568
589
 
@@ -204,8 +204,26 @@
204
204
  }
205
205
  }
206
206
 
207
- input:hover:enabled {
208
- border-color: var(--ui-accent-solid);
207
+ @media (hover: hover) and (forced-colors: none) {
208
+ :host:hover input:enabled {
209
+ --_choice-hover-wash: var(--ui-neutral-wash-hover);
210
+ background-image:
211
+ linear-gradient(var(--_choice-hover-wash), var(--_choice-hover-wash)),
212
+ var(--ui-surface-highlight, linear-gradient(transparent, transparent));
213
+ }
214
+
215
+ :host:hover input:enabled:not([aria-invalid="true"]) {
216
+ border-color: var(--ui-control-border-hover, var(--ui-border-strong));
217
+ }
218
+
219
+ :host:hover input:enabled:is(:checked, :indeterminate) {
220
+ background-color: var(--ui-choice-hover-surface);
221
+ background-image: var(--ui-choice-hover-highlight, none);
222
+ }
223
+
224
+ :host:hover input:enabled:is(:checked, :indeterminate):not([aria-invalid="true"]) {
225
+ border-color: var(--ui-choice-hover-surface);
226
+ }
209
227
  }
210
228
 
211
229
  input:focus-visible {
@@ -63,6 +63,9 @@
63
63
  --_tone-highlight: var(--ui-accent-highlight, none);
64
64
  --_tone-hover-highlight: var(--ui-accent-hover-highlight, none);
65
65
  --_tone-outline-border: var(--ui-accent-outline-border, var(--ui-accent-subtle-text));
66
+ --_tone-wash: var(--ui-accent-wash);
67
+ --_tone-wash-hover: var(--ui-accent-wash-hover);
68
+ --_tone-ghost-hover: var(--ui-accent-ghost-hover);
66
69
  --_tone-glow: var(--ui-accent-glow, 0 0 transparent);
67
70
  --_ui-action-start: 1px;
68
71
  --_ui-action-edge: var(
@@ -91,6 +94,9 @@
91
94
  --_tone-highlight: var(--ui-accent-secondary-highlight, none);
92
95
  --_tone-hover-highlight: var(--ui-accent-secondary-hover-highlight, none);
93
96
  --_tone-outline-border: var(--ui-accent-secondary-outline-border, var(--ui-accent-secondary-subtle-text));
97
+ --_tone-wash: var(--ui-accent-secondary-wash);
98
+ --_tone-wash-hover: var(--ui-accent-secondary-wash-hover);
99
+ --_tone-ghost-hover: var(--ui-accent-secondary-ghost-hover);
94
100
  --_tone-glow: var(--ui-accent-secondary-glow, 0 0 transparent);
95
101
  --_icon-button-border: var(--ui-accent-secondary-subtle-text);
96
102
  --_icon-button-hover-border: var(--ui-accent-secondary-subtle-text);
@@ -110,6 +116,9 @@
110
116
  --_tone-highlight: var(--ui-accent-tertiary-highlight, none);
111
117
  --_tone-hover-highlight: var(--ui-accent-tertiary-hover-highlight, none);
112
118
  --_tone-outline-border: var(--ui-accent-tertiary-outline-border, var(--ui-accent-tertiary-subtle-text));
119
+ --_tone-wash: var(--ui-accent-tertiary-wash);
120
+ --_tone-wash-hover: var(--ui-accent-tertiary-wash-hover);
121
+ --_tone-ghost-hover: var(--ui-accent-tertiary-ghost-hover);
113
122
  --_tone-glow: var(--ui-accent-tertiary-glow, 0 0 transparent);
114
123
  --_icon-button-border: var(--ui-accent-tertiary-subtle-text);
115
124
  --_icon-button-hover-border: var(--ui-accent-tertiary-subtle-text);
@@ -129,6 +138,9 @@
129
138
  --_tone-highlight: var(--ui-accent-highlight, none);
130
139
  --_tone-hover-highlight: var(--ui-accent-hover-highlight, none);
131
140
  --_tone-outline-border: var(--ui-accent-outline-border, var(--ui-accent-subtle-text));
141
+ --_tone-wash: var(--ui-accent-wash);
142
+ --_tone-wash-hover: var(--ui-accent-wash-hover);
143
+ --_tone-ghost-hover: var(--ui-accent-ghost-hover);
132
144
  --_tone-glow: var(--ui-accent-glow, 0 0 transparent);
133
145
  --_icon-button-border: var(--ui-accent-subtle-text);
134
146
  --_icon-button-hover-border: var(--ui-accent-subtle-text);
@@ -145,6 +157,9 @@
145
157
  --_tone-highlight: var(--ui-danger-highlight, none);
146
158
  --_tone-hover-highlight: var(--ui-danger-hover-highlight, none);
147
159
  --_tone-outline-border: var(--ui-danger-outline-border, var(--ui-danger-subtle-text));
160
+ --_tone-wash: var(--ui-danger-wash);
161
+ --_tone-wash-hover: var(--ui-danger-wash-hover);
162
+ --_tone-ghost-hover: var(--ui-danger-ghost-hover);
148
163
  --_tone-glow: var(--ui-danger-glow, 0 0 transparent);
149
164
  --_icon-button-border: var(--ui-danger-subtle-text);
150
165
  --_icon-button-hover-border: var(--ui-danger-subtle-text);
@@ -164,6 +179,9 @@
164
179
  --_tone-highlight: var(--ui-success-highlight, none);
165
180
  --_tone-hover-highlight: var(--ui-success-hover-highlight, none);
166
181
  --_tone-outline-border: var(--ui-success-outline-border, var(--ui-success-subtle-text));
182
+ --_tone-wash: var(--ui-success-wash);
183
+ --_tone-wash-hover: var(--ui-success-wash-hover);
184
+ --_tone-ghost-hover: var(--ui-success-ghost-hover);
167
185
  --_tone-glow: var(--ui-success-glow, 0 0 transparent);
168
186
  --_icon-button-border: var(--ui-success-subtle-text);
169
187
  --_icon-button-hover-border: var(--ui-success-subtle-text);
@@ -183,6 +201,9 @@
183
201
  --_tone-highlight: var(--ui-warning-highlight, none);
184
202
  --_tone-hover-highlight: var(--ui-warning-hover-highlight, none);
185
203
  --_tone-outline-border: var(--ui-warning-outline-border, var(--ui-warning-subtle-text));
204
+ --_tone-wash: var(--ui-warning-wash);
205
+ --_tone-wash-hover: var(--ui-warning-wash-hover);
206
+ --_tone-ghost-hover: var(--ui-warning-ghost-hover);
186
207
  --_tone-glow: var(--ui-warning-glow, 0 0 transparent);
187
208
  --_icon-button-border: var(--ui-warning-subtle-text);
188
209
  --_icon-button-hover-border: var(--ui-warning-subtle-text);
@@ -202,6 +223,9 @@
202
223
  --_tone-highlight: var(--ui-info-highlight, none);
203
224
  --_tone-hover-highlight: var(--ui-info-hover-highlight, none);
204
225
  --_tone-outline-border: var(--ui-info-outline-border, var(--ui-info-subtle-text));
226
+ --_tone-wash: var(--ui-info-wash);
227
+ --_tone-wash-hover: var(--ui-info-wash-hover);
228
+ --_tone-ghost-hover: var(--ui-info-ghost-hover);
205
229
  --_tone-glow: var(--ui-info-glow, 0 0 transparent);
206
230
  --_icon-button-border: var(--ui-info-subtle-text);
207
231
  --_icon-button-hover-border: var(--ui-info-subtle-text);
@@ -220,8 +244,9 @@
220
244
  --_solid-active-border: var(--ui-control-border-hover, var(--ui-neutral-active));
221
245
  --_solid-active-surface: var(--ui-neutral-active, var(--ui-neutral-hover));
222
246
  --_tone-highlight: var(--ui-neutral-highlight, none);
223
- --_tone-hover-highlight: var(--ui-neutral-highlight, var(--_tone-highlight));
247
+ --_tone-hover-highlight: var(--ui-neutral-hover-highlight, var(--_tone-highlight));
224
248
  --_tone-outline-border: var(--ui-control-border);
249
+ --_tone-ghost-hover: var(--ui-neutral-ghost-hover);
225
250
  --_tone-glow: var(--ui-neutral-glow, 0 0 transparent);
226
251
  --_icon-button-outline-surface: transparent;
227
252
  --_icon-button-border: var(--ui-control-border);
@@ -413,14 +438,14 @@
413
438
  }
414
439
 
415
440
  :host:hover:enabled:not([aria-disabled="true"]) {
416
- /* Derived from the text colour so the ghost hover shows on any background. */
417
- background-color: var(--ui-icon-button-hover-surface, color-mix(in srgb, currentColor 8%, transparent));
441
+ /* Shared translucent paint keeps text and icon action feedback coordinated. */
442
+ background-color: var(--ui-icon-button-hover-surface, var(--_tone-ghost-hover));
418
443
  color: var(--ui-icon-button-hover-text, var(--_icon-button-text, var(--ui-text-primary)));
419
444
  }
420
445
 
421
446
  :host[data-appearance="outline"]:not([data-tone="neutral"]) {
422
447
  --_outline-highlight: var(--ui-surface-highlight, linear-gradient(transparent, transparent));
423
- --_outline-wash: oklch(from var(--_icon-button-solid-surface, var(--ui-accent)) l c h / calc(8% * var(--ui-tonal-opacity, 1)));
448
+ --_outline-wash: var(--_tone-wash);
424
449
  border-color: var(--ui-icon-button-border, var(--_tone-outline-border));
425
450
  background-color: var(--ui-icon-button-outline-surface, transparent);
426
451
  background-image:
@@ -429,8 +454,7 @@
429
454
  }
430
455
 
431
456
  :host[data-appearance="outline"]:not([data-tone="neutral"]):hover:enabled:not([aria-disabled="true"]) {
432
- --_outline-highlight: var(--ui-neutral-highlight, var(--ui-surface-highlight, linear-gradient(transparent, transparent)));
433
- --_outline-wash: oklch(from var(--_icon-button-solid-surface, var(--ui-accent)) l c h / calc(12% * var(--ui-tonal-opacity, 1)));
457
+ --_outline-wash: var(--_tone-wash-hover);
434
458
  background-color: var(--ui-icon-button-hover-surface, transparent);
435
459
  border-color: var(--ui-icon-button-hover-border, var(--_tone-outline-border));
436
460
  }
@@ -439,8 +463,8 @@
439
463
  border-color: var(--ui-icon-button-hover-border, var(--_icon-button-hover-border, var(--ui-control-border-hover, var(--ui-control-border))));
440
464
  }
441
465
  :host[data-tone="neutral"][data-appearance="outline"]:hover:enabled:not([aria-disabled="true"]) {
442
- background-color: var(--ui-icon-button-hover-surface, var(--ui-neutral-hover));
443
- --_outline-wash: oklch(from var(--ui-text) l c h / 5%);
466
+ background-color: var(--ui-icon-button-hover-surface, transparent);
467
+ --_outline-wash: var(--ui-neutral-wash-hover);
444
468
  background-image:
445
469
  linear-gradient(var(--_outline-wash), var(--_outline-wash)),
446
470
  var(--ui-surface-highlight, linear-gradient(transparent, transparent));
@@ -109,7 +109,7 @@
109
109
 
110
110
  input:checked {
111
111
  background-color: var(--ui-accent-solid);
112
- background-image: var(--ui-accent-highlight, none);
112
+ background-image: none;
113
113
  border-color: var(--ui-accent-solid);
114
114
  box-shadow: none;
115
115
  }
@@ -118,6 +118,28 @@
118
118
  opacity: 1;
119
119
  }
120
120
 
121
+ @media (hover: hover) and (forced-colors: none) {
122
+ :host:hover input:enabled {
123
+ --_choice-hover-wash: var(--ui-neutral-wash-hover);
124
+ background-image:
125
+ linear-gradient(var(--_choice-hover-wash), var(--_choice-hover-wash)),
126
+ var(--ui-surface-highlight, linear-gradient(transparent, transparent));
127
+ }
128
+
129
+ :host:hover input:enabled:not([aria-invalid="true"]) {
130
+ border-color: var(--ui-control-border-hover, var(--ui-border-strong));
131
+ }
132
+
133
+ :host:hover input:enabled:checked {
134
+ background-color: var(--ui-choice-hover-surface);
135
+ background-image: none;
136
+ }
137
+
138
+ :host:hover input:enabled:checked:not([aria-invalid="true"]) {
139
+ border-color: var(--ui-choice-hover-surface);
140
+ }
141
+ }
142
+
121
143
  input:focus-visible {
122
144
  outline: var(--ui-focus-width) solid var(--ui-focus-ring, var(--ui-accent-solid));
123
145
  outline-offset: var(--ui-focus-width);
@@ -22,7 +22,9 @@
22
22
  ></ui-icon></ui-icon-button>
23
23
  </div>
24
24
  </div>
25
- <div class="inline-navigation" $ref="inline"><nav class="navigation" $ref="navigation" from:aria-label="$label"><slot name="navigation"></slot></nav></div>
25
+ <div class="inline-navigation" $ref="inline">
26
+ <nav class="navigation" $ref="navigation" from:aria-label="$label"><slot name="navigation"></slot></nav>
27
+ </div>
26
28
  <dialog
27
29
  class="navigation-panel"
28
30
  $ref="panel"
@@ -147,10 +149,13 @@
147
149
  color: inherit;
148
150
  }
149
151
  :host(:state(drawer)) .inline-navigation,
150
- .navigation-panel:not([open]), .menu, .panel-heading {
152
+ .navigation-panel:not([open]),
153
+ .menu,
154
+ .panel-heading {
151
155
  display: none !important;
152
156
  }
153
157
  :host(:state(drawer)) .identity {
158
+ column-gap: var(--ui-space-2) !important;
154
159
  flex-wrap: nowrap !important;
155
160
  align-items: center !important;
156
161
  }
@@ -162,22 +167,52 @@
162
167
  }
163
168
  /* Authored native sidebar triggers remain usable before JavaScript upgrades the header. */
164
169
  @media (width < 40rem) {
165
- :host([breakpoint="sm"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .identity { flex-wrap: nowrap !important; align-items: center !important; }
166
- :host([breakpoint="sm"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .brand { flex: 1 1 0; }
167
- :host([breakpoint="sm"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .menu { display: grid !important; grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important; justify-items: center !important; flex: none; }
168
- :host([breakpoint="sm"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .inline-navigation { display: none !important; }
170
+ :host([breakpoint="sm"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .identity {
171
+ flex-wrap: nowrap !important;
172
+ align-items: center !important;
173
+ column-gap: var(--ui-space-2) !important;
174
+ }
175
+ :host([breakpoint="sm"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .menu {
176
+ display: grid !important;
177
+ grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important;
178
+ justify-items: center !important;
179
+ flex: none;
180
+ }
181
+ :host([breakpoint="sm"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .inline-navigation {
182
+ display: none !important;
183
+ }
169
184
  }
170
185
  @media (width < 48rem) {
171
- :host([breakpoint="md"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .identity { flex-wrap: nowrap !important; align-items: center !important; }
172
- :host([breakpoint="md"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .brand { flex: 1 1 0; }
173
- :host([breakpoint="md"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .menu { display: grid !important; grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important; justify-items: center !important; flex: none; }
174
- :host([breakpoint="md"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .inline-navigation { display: none !important; }
186
+ :host([breakpoint="md"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .identity {
187
+ flex-wrap: nowrap !important;
188
+ align-items: center !important;
189
+ column-gap: var(--ui-space-2) !important;
190
+ }
191
+ :host([breakpoint="md"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .menu {
192
+ display: grid !important;
193
+ grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important;
194
+ justify-items: center !important;
195
+ flex: none;
196
+ }
197
+ :host([breakpoint="md"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .inline-navigation {
198
+ display: none !important;
199
+ }
175
200
  }
176
201
  @media (width < 64rem) {
177
- :host([breakpoint="lg"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .identity { flex-wrap: nowrap !important; align-items: center !important; }
178
- :host([breakpoint="lg"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .brand { flex: 1 1 0; }
179
- :host([breakpoint="lg"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .menu { display: grid !important; grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important; justify-items: center !important; flex: none; }
180
- :host([breakpoint="lg"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .inline-navigation { display: none !important; }
202
+ :host([breakpoint="lg"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .identity {
203
+ flex-wrap: nowrap !important;
204
+ align-items: center !important;
205
+ column-gap: var(--ui-space-2) !important;
206
+ }
207
+ :host([breakpoint="lg"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .menu {
208
+ display: grid !important;
209
+ grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important;
210
+ justify-items: center !important;
211
+ flex: none;
212
+ }
213
+ :host([breakpoint="lg"]):not(:state(enhanced)):has(.custom-menu:not(:empty)) .inline-navigation {
214
+ display: none !important;
215
+ }
181
216
  }
182
217
 
183
218
  .automatic-menu {
@@ -133,6 +133,28 @@
133
133
  background-image: var(--ui-knob-on-accent-highlight, none);
134
134
  }
135
135
 
136
+ @media (hover: hover) and (forced-colors: none) {
137
+ :host:hover input:enabled {
138
+ --_choice-hover-wash: var(--ui-neutral-wash-hover);
139
+ background-image:
140
+ linear-gradient(var(--_choice-hover-wash), var(--_choice-hover-wash)),
141
+ var(--ui-surface-highlight, linear-gradient(transparent, transparent));
142
+ }
143
+
144
+ :host:hover input:enabled:not([aria-invalid="true"]) {
145
+ border-color: var(--ui-control-border-hover, var(--ui-border-strong));
146
+ }
147
+
148
+ :host:hover input:enabled:checked {
149
+ background-color: var(--ui-choice-hover-surface);
150
+ background-image: var(--ui-choice-hover-highlight, none);
151
+ }
152
+
153
+ :host:hover input:enabled:checked:not([aria-invalid="true"]) {
154
+ border-color: var(--ui-choice-hover-surface);
155
+ }
156
+ }
157
+
136
158
  input:focus-visible {
137
159
  outline: var(--ui-focus-width) solid var(--ui-focus-ring, var(--ui-accent-solid));
138
160
  outline-offset: var(--ui-focus-width);