@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 +2 -2
- package/components/ui-button/ui-button.html +29 -8
- package/components/ui-checkbox/ui-checkbox.html +20 -2
- package/components/ui-icon-button/ui-icon-button.html +32 -8
- package/components/ui-radio/ui-radio.html +23 -1
- package/components/ui-site-header/ui-site-header.html +49 -14
- package/components/ui-switch/ui-switch.html +22 -0
- package/dist/index.js +1 -1
- package/docs/README.md +6 -4
- package/docs/catalog.json +230 -34
- package/docs/theme.mjs +74 -22
- package/package.json +2 -2
- package/styles/ui-button.css +30 -9
- package/styles/ui-checkbox.css +23 -2
- package/styles/ui-icon-button.css +32 -8
- package/styles/ui-radio.css +26 -1
- package/styles/ui-site-header.css +89 -25
- package/styles/ui-switch.css +25 -0
- package/theme-system.css +2 -0
- package/tokens.css +45 -18
- package/vanilla/UiSiteHeader.js +2 -2
- package/vue/UiButton.vue +29 -14
- package/vue/UiCheckbox.vue +21 -2
- package/vue/UiIconButton.vue +32 -20
- package/vue/UiRadio.vue +24 -1
- package/vue/UiSiteHeader.vue +8 -24
- package/vue/UiSwitch.vue +23 -0
- package/vue/chunks/UiButton.js +1 -1
- package/vue/chunks/UiCheckbox.js +1 -1
- package/vue/chunks/UiIconButton.js +1 -1
- package/vue/chunks/UiRadio.js +1 -1
- package/vue/chunks/UiSiteHeader.js +1 -1
- package/vue/chunks/UiSwitch.js +1 -1
- package/vue/components.css +213 -82
package/vue/UiIconButton.vue
CHANGED
|
@@ -533,6 +533,9 @@ useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'),
|
|
|
533
533
|
--_tone-highlight: var(--ui-accent-highlight, none);
|
|
534
534
|
--_tone-hover-highlight: var(--ui-accent-hover-highlight, none);
|
|
535
535
|
--_tone-outline-border: var(--ui-accent-outline-border, var(--ui-accent-subtle-text));
|
|
536
|
+
--_tone-wash: var(--ui-accent-wash);
|
|
537
|
+
--_tone-wash-hover: var(--ui-accent-wash-hover);
|
|
538
|
+
--_tone-ghost-hover: var(--ui-accent-ghost-hover);
|
|
536
539
|
--_tone-glow: var(--ui-accent-glow, 0 0 transparent);
|
|
537
540
|
--_ui-action-start: 1px;
|
|
538
541
|
--_ui-action-edge: var(
|
|
@@ -576,6 +579,9 @@ useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'),
|
|
|
576
579
|
--ui-accent-secondary-outline-border,
|
|
577
580
|
var(--ui-accent-secondary-subtle-text)
|
|
578
581
|
);
|
|
582
|
+
--_tone-wash: var(--ui-accent-secondary-wash);
|
|
583
|
+
--_tone-wash-hover: var(--ui-accent-secondary-wash-hover);
|
|
584
|
+
--_tone-ghost-hover: var(--ui-accent-secondary-ghost-hover);
|
|
579
585
|
--_tone-glow: var(--ui-accent-secondary-glow, 0 0 transparent);
|
|
580
586
|
--_icon-button-border: var(--ui-accent-secondary-subtle-text);
|
|
581
587
|
--_icon-button-hover-border: var(--ui-accent-secondary-subtle-text);
|
|
@@ -604,6 +610,9 @@ useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'),
|
|
|
604
610
|
--ui-accent-tertiary-outline-border,
|
|
605
611
|
var(--ui-accent-tertiary-subtle-text)
|
|
606
612
|
);
|
|
613
|
+
--_tone-wash: var(--ui-accent-tertiary-wash);
|
|
614
|
+
--_tone-wash-hover: var(--ui-accent-tertiary-wash-hover);
|
|
615
|
+
--_tone-ghost-hover: var(--ui-accent-tertiary-ghost-hover);
|
|
607
616
|
--_tone-glow: var(--ui-accent-tertiary-glow, 0 0 transparent);
|
|
608
617
|
--_icon-button-border: var(--ui-accent-tertiary-subtle-text);
|
|
609
618
|
--_icon-button-hover-border: var(--ui-accent-tertiary-subtle-text);
|
|
@@ -626,6 +635,9 @@ useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'),
|
|
|
626
635
|
--_tone-highlight: var(--ui-accent-highlight, none);
|
|
627
636
|
--_tone-hover-highlight: var(--ui-accent-hover-highlight, none);
|
|
628
637
|
--_tone-outline-border: var(--ui-accent-outline-border, var(--ui-accent-subtle-text));
|
|
638
|
+
--_tone-wash: var(--ui-accent-wash);
|
|
639
|
+
--_tone-wash-hover: var(--ui-accent-wash-hover);
|
|
640
|
+
--_tone-ghost-hover: var(--ui-accent-ghost-hover);
|
|
629
641
|
--_tone-glow: var(--ui-accent-glow, 0 0 transparent);
|
|
630
642
|
--_icon-button-border: var(--ui-accent-subtle-text);
|
|
631
643
|
--_icon-button-hover-border: var(--ui-accent-subtle-text);
|
|
@@ -645,6 +657,9 @@ useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'),
|
|
|
645
657
|
--_tone-highlight: var(--ui-danger-highlight, none);
|
|
646
658
|
--_tone-hover-highlight: var(--ui-danger-hover-highlight, none);
|
|
647
659
|
--_tone-outline-border: var(--ui-danger-outline-border, var(--ui-danger-subtle-text));
|
|
660
|
+
--_tone-wash: var(--ui-danger-wash);
|
|
661
|
+
--_tone-wash-hover: var(--ui-danger-wash-hover);
|
|
662
|
+
--_tone-ghost-hover: var(--ui-danger-ghost-hover);
|
|
648
663
|
--_tone-glow: var(--ui-danger-glow, 0 0 transparent);
|
|
649
664
|
--_icon-button-border: var(--ui-danger-subtle-text);
|
|
650
665
|
--_icon-button-hover-border: var(--ui-danger-subtle-text);
|
|
@@ -667,6 +682,9 @@ useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'),
|
|
|
667
682
|
--_tone-highlight: var(--ui-success-highlight, none);
|
|
668
683
|
--_tone-hover-highlight: var(--ui-success-hover-highlight, none);
|
|
669
684
|
--_tone-outline-border: var(--ui-success-outline-border, var(--ui-success-subtle-text));
|
|
685
|
+
--_tone-wash: var(--ui-success-wash);
|
|
686
|
+
--_tone-wash-hover: var(--ui-success-wash-hover);
|
|
687
|
+
--_tone-ghost-hover: var(--ui-success-ghost-hover);
|
|
670
688
|
--_tone-glow: var(--ui-success-glow, 0 0 transparent);
|
|
671
689
|
--_icon-button-border: var(--ui-success-subtle-text);
|
|
672
690
|
--_icon-button-hover-border: var(--ui-success-subtle-text);
|
|
@@ -689,6 +707,9 @@ useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'),
|
|
|
689
707
|
--_tone-highlight: var(--ui-warning-highlight, none);
|
|
690
708
|
--_tone-hover-highlight: var(--ui-warning-hover-highlight, none);
|
|
691
709
|
--_tone-outline-border: var(--ui-warning-outline-border, var(--ui-warning-subtle-text));
|
|
710
|
+
--_tone-wash: var(--ui-warning-wash);
|
|
711
|
+
--_tone-wash-hover: var(--ui-warning-wash-hover);
|
|
712
|
+
--_tone-ghost-hover: var(--ui-warning-ghost-hover);
|
|
692
713
|
--_tone-glow: var(--ui-warning-glow, 0 0 transparent);
|
|
693
714
|
--_icon-button-border: var(--ui-warning-subtle-text);
|
|
694
715
|
--_icon-button-hover-border: var(--ui-warning-subtle-text);
|
|
@@ -711,6 +732,9 @@ useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'),
|
|
|
711
732
|
--_tone-highlight: var(--ui-info-highlight, none);
|
|
712
733
|
--_tone-hover-highlight: var(--ui-info-hover-highlight, none);
|
|
713
734
|
--_tone-outline-border: var(--ui-info-outline-border, var(--ui-info-subtle-text));
|
|
735
|
+
--_tone-wash: var(--ui-info-wash);
|
|
736
|
+
--_tone-wash-hover: var(--ui-info-wash-hover);
|
|
737
|
+
--_tone-ghost-hover: var(--ui-info-ghost-hover);
|
|
714
738
|
--_tone-glow: var(--ui-info-glow, 0 0 transparent);
|
|
715
739
|
--_icon-button-border: var(--ui-info-subtle-text);
|
|
716
740
|
--_icon-button-hover-border: var(--ui-info-subtle-text);
|
|
@@ -731,8 +755,9 @@ useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'),
|
|
|
731
755
|
--_solid-active-border: var(--ui-control-border-hover, var(--ui-neutral-active));
|
|
732
756
|
--_solid-active-surface: var(--ui-neutral-active, var(--ui-neutral-hover));
|
|
733
757
|
--_tone-highlight: var(--ui-neutral-highlight, none);
|
|
734
|
-
--_tone-hover-highlight: var(--ui-neutral-highlight, var(--_tone-highlight));
|
|
758
|
+
--_tone-hover-highlight: var(--ui-neutral-hover-highlight, var(--_tone-highlight));
|
|
735
759
|
--_tone-outline-border: var(--ui-control-border);
|
|
760
|
+
--_tone-ghost-hover: var(--ui-neutral-ghost-hover);
|
|
736
761
|
--_tone-glow: var(--ui-neutral-glow, 0 0 transparent);
|
|
737
762
|
--_icon-button-outline-surface: transparent;
|
|
738
763
|
--_icon-button-border: var(--ui-control-border);
|
|
@@ -931,20 +956,14 @@ useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'),
|
|
|
931
956
|
}
|
|
932
957
|
|
|
933
958
|
:global(:scope:hover:enabled:not([aria-disabled="true"]):where([data-hn-ui-icon-button])) {
|
|
934
|
-
/*
|
|
935
|
-
background-color: var(
|
|
936
|
-
--ui-icon-button-hover-surface,
|
|
937
|
-
color-mix(in srgb, currentColor 8%, transparent)
|
|
938
|
-
);
|
|
959
|
+
/* Shared translucent paint keeps text and icon action feedback coordinated. */
|
|
960
|
+
background-color: var(--ui-icon-button-hover-surface, var(--_tone-ghost-hover));
|
|
939
961
|
color: var(--ui-icon-button-hover-text, var(--_icon-button-text, var(--ui-text-primary)));
|
|
940
962
|
}
|
|
941
963
|
|
|
942
964
|
:global(:scope[data-appearance="outline"]:not([data-tone="neutral"]):where([data-hn-ui-icon-button])) {
|
|
943
965
|
--_outline-highlight: var(--ui-surface-highlight, linear-gradient(transparent, transparent));
|
|
944
|
-
--_outline-wash:
|
|
945
|
-
from var(--_icon-button-solid-surface, var(--ui-accent))
|
|
946
|
-
l c h / calc(8% * var(--ui-tonal-opacity, 1))
|
|
947
|
-
);
|
|
966
|
+
--_outline-wash: var(--_tone-wash);
|
|
948
967
|
border-color: var(--ui-icon-button-border, var(--_tone-outline-border));
|
|
949
968
|
background-color: var(--ui-icon-button-outline-surface, transparent);
|
|
950
969
|
background-image:
|
|
@@ -953,14 +972,7 @@ useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'),
|
|
|
953
972
|
}
|
|
954
973
|
|
|
955
974
|
:global(:scope[data-appearance="outline"]:not([data-tone="neutral"]):hover:enabled:not([aria-disabled="true"]):where([data-hn-ui-icon-button])) {
|
|
956
|
-
--_outline-
|
|
957
|
-
--ui-neutral-highlight,
|
|
958
|
-
var(--ui-surface-highlight, linear-gradient(transparent, transparent))
|
|
959
|
-
);
|
|
960
|
-
--_outline-wash: oklch(
|
|
961
|
-
from var(--_icon-button-solid-surface, var(--ui-accent))
|
|
962
|
-
l c h / calc(12% * var(--ui-tonal-opacity, 1))
|
|
963
|
-
);
|
|
975
|
+
--_outline-wash: var(--_tone-wash-hover);
|
|
964
976
|
background-color: var(--ui-icon-button-hover-surface, transparent);
|
|
965
977
|
border-color: var(--ui-icon-button-hover-border, var(--_tone-outline-border));
|
|
966
978
|
}
|
|
@@ -972,8 +984,8 @@ useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'),
|
|
|
972
984
|
);
|
|
973
985
|
}
|
|
974
986
|
:global(:scope[data-tone="neutral"][data-appearance="outline"]:hover:enabled:not([aria-disabled="true"]):where([data-hn-ui-icon-button])) {
|
|
975
|
-
background-color: var(--ui-icon-button-hover-surface,
|
|
976
|
-
--_outline-wash:
|
|
987
|
+
background-color: var(--ui-icon-button-hover-surface, transparent);
|
|
988
|
+
--_outline-wash: var(--ui-neutral-wash-hover);
|
|
977
989
|
background-image:
|
|
978
990
|
linear-gradient(var(--_outline-wash), var(--_outline-wash)),
|
|
979
991
|
var(--ui-surface-highlight, linear-gradient(transparent, transparent));
|
package/vue/UiRadio.vue
CHANGED
|
@@ -376,7 +376,7 @@ useComponentHost(() => import('../components/ui-radio/ui-radio.js'), {
|
|
|
376
376
|
|
|
377
377
|
:global(input:checked:where([data-hn-ui-radio])) {
|
|
378
378
|
background-color: var(--ui-accent-solid);
|
|
379
|
-
background-image:
|
|
379
|
+
background-image: none;
|
|
380
380
|
border-color: var(--ui-accent-solid);
|
|
381
381
|
box-shadow: none;
|
|
382
382
|
}
|
|
@@ -385,6 +385,29 @@ useComponentHost(() => import('../components/ui-radio/ui-radio.js'), {
|
|
|
385
385
|
opacity: 1;
|
|
386
386
|
}
|
|
387
387
|
|
|
388
|
+
@media (hover: hover) and (forced-colors: none) {
|
|
389
|
+
:global(:scope:hover input:enabled:where([data-hn-ui-radio])) {
|
|
390
|
+
--_choice-hover-wash: var(--ui-neutral-wash-hover);
|
|
391
|
+
background-image:
|
|
392
|
+
linear-gradient(var(--_choice-hover-wash), var(--_choice-hover-wash)),
|
|
393
|
+
var(--ui-surface-highlight, linear-gradient(transparent, transparent));
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
:global(:scope:hover input:enabled:not([aria-invalid="true"]):where([data-hn-ui-radio])) {
|
|
397
|
+
border-color: var(--ui-control-border-hover, var(--ui-border-strong));
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
:global(:scope:hover input:enabled:checked:where([data-hn-ui-radio])) {
|
|
401
|
+
background-color: var(--ui-choice-hover-surface);
|
|
402
|
+
background-image: none;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
:global(:scope:hover
|
|
406
|
+
input:enabled:checked:not([aria-invalid="true"]):where([data-hn-ui-radio])) {
|
|
407
|
+
border-color: var(--ui-choice-hover-surface);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
388
411
|
:global(input:focus-visible:where([data-hn-ui-radio])) {
|
|
389
412
|
outline: var(--ui-focus-width) solid var(--ui-focus-ring, var(--ui-accent-solid));
|
|
390
413
|
outline-offset: var(--ui-focus-width);
|
package/vue/UiSiteHeader.vue
CHANGED
|
@@ -414,6 +414,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
|
|
|
414
414
|
display: none !important;
|
|
415
415
|
}
|
|
416
416
|
:global(:scope[data-ui-site-header-state~="drawer"] .identity:where([data-hn-ui-site-header])) {
|
|
417
|
+
column-gap: var(--ui-space-2) !important;
|
|
417
418
|
flex-wrap: nowrap !important;
|
|
418
419
|
align-items: center !important;
|
|
419
420
|
}
|
|
@@ -429,10 +430,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
|
|
|
429
430
|
.identity:where([data-hn-ui-site-header])) {
|
|
430
431
|
flex-wrap: nowrap !important;
|
|
431
432
|
align-items: center !important;
|
|
432
|
-
|
|
433
|
-
:global(:scope[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
434
|
-
.brand:where([data-hn-ui-site-header])) {
|
|
435
|
-
flex: 1 1 0;
|
|
433
|
+
column-gap: var(--ui-space-2) !important;
|
|
436
434
|
}
|
|
437
435
|
:global(:scope[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
438
436
|
.menu:where([data-hn-ui-site-header])) {
|
|
@@ -451,10 +449,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
|
|
|
451
449
|
.identity:where([data-hn-ui-site-header])) {
|
|
452
450
|
flex-wrap: nowrap !important;
|
|
453
451
|
align-items: center !important;
|
|
454
|
-
|
|
455
|
-
:global(:scope[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
456
|
-
.brand:where([data-hn-ui-site-header])) {
|
|
457
|
-
flex: 1 1 0;
|
|
452
|
+
column-gap: var(--ui-space-2) !important;
|
|
458
453
|
}
|
|
459
454
|
:global(:scope[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
460
455
|
.menu:where([data-hn-ui-site-header])) {
|
|
@@ -473,10 +468,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
|
|
|
473
468
|
.identity:where([data-hn-ui-site-header])) {
|
|
474
469
|
flex-wrap: nowrap !important;
|
|
475
470
|
align-items: center !important;
|
|
476
|
-
|
|
477
|
-
:global(:scope[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
478
|
-
.brand:where([data-hn-ui-site-header])) {
|
|
479
|
-
flex: 1 1 0;
|
|
471
|
+
column-gap: var(--ui-space-2) !important;
|
|
480
472
|
}
|
|
481
473
|
:global(:scope[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
482
474
|
.menu:where([data-hn-ui-site-header])) {
|
|
@@ -711,6 +703,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
|
|
|
711
703
|
}
|
|
712
704
|
:global(:where(.ui-site-header)[data-ui-site-header-state~="drawer"]
|
|
713
705
|
.identity:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
|
|
706
|
+
column-gap: var(--ui-space-2) !important;
|
|
714
707
|
flex-wrap: nowrap !important;
|
|
715
708
|
align-items: center !important;
|
|
716
709
|
}
|
|
@@ -726,10 +719,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
|
|
|
726
719
|
.identity:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
|
|
727
720
|
flex-wrap: nowrap !important;
|
|
728
721
|
align-items: center !important;
|
|
729
|
-
|
|
730
|
-
:global(:where(.ui-site-header)[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
731
|
-
.brand:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
|
|
732
|
-
flex: 1 1 0;
|
|
722
|
+
column-gap: var(--ui-space-2) !important;
|
|
733
723
|
}
|
|
734
724
|
:global(:where(.ui-site-header)[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
735
725
|
.menu:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
|
|
@@ -748,10 +738,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
|
|
|
748
738
|
.identity:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
|
|
749
739
|
flex-wrap: nowrap !important;
|
|
750
740
|
align-items: center !important;
|
|
751
|
-
|
|
752
|
-
:global(:where(.ui-site-header)[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
753
|
-
.brand:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
|
|
754
|
-
flex: 1 1 0;
|
|
741
|
+
column-gap: var(--ui-space-2) !important;
|
|
755
742
|
}
|
|
756
743
|
:global(:where(.ui-site-header)[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
757
744
|
.menu:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
|
|
@@ -770,10 +757,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
|
|
|
770
757
|
.identity:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
|
|
771
758
|
flex-wrap: nowrap !important;
|
|
772
759
|
align-items: center !important;
|
|
773
|
-
|
|
774
|
-
:global(:where(.ui-site-header)[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
775
|
-
.brand:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
|
|
776
|
-
flex: 1 1 0;
|
|
760
|
+
column-gap: var(--ui-space-2) !important;
|
|
777
761
|
}
|
|
778
762
|
:global(:where(.ui-site-header)[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
779
763
|
.menu:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
|
package/vue/UiSwitch.vue
CHANGED
|
@@ -398,6 +398,29 @@ useComponentHost(() => import('../components/ui-switch/ui-switch.js'), {
|
|
|
398
398
|
background-image: var(--ui-knob-on-accent-highlight, none);
|
|
399
399
|
}
|
|
400
400
|
|
|
401
|
+
@media (hover: hover) and (forced-colors: none) {
|
|
402
|
+
:global(:scope:hover input:enabled:where([data-hn-ui-switch])) {
|
|
403
|
+
--_choice-hover-wash: var(--ui-neutral-wash-hover);
|
|
404
|
+
background-image:
|
|
405
|
+
linear-gradient(var(--_choice-hover-wash), var(--_choice-hover-wash)),
|
|
406
|
+
var(--ui-surface-highlight, linear-gradient(transparent, transparent));
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
:global(:scope:hover input:enabled:not([aria-invalid="true"]):where([data-hn-ui-switch])) {
|
|
410
|
+
border-color: var(--ui-control-border-hover, var(--ui-border-strong));
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
:global(:scope:hover input:enabled:checked:where([data-hn-ui-switch])) {
|
|
414
|
+
background-color: var(--ui-choice-hover-surface);
|
|
415
|
+
background-image: var(--ui-choice-hover-highlight, none);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
:global(:scope:hover
|
|
419
|
+
input:enabled:checked:not([aria-invalid="true"]):where([data-hn-ui-switch])) {
|
|
420
|
+
border-color: var(--ui-choice-hover-surface);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
|
|
401
424
|
:global(input:focus-visible:where([data-hn-ui-switch])) {
|
|
402
425
|
outline: var(--ui-focus-width) solid var(--ui-focus-ring, var(--ui-accent-solid));
|
|
403
426
|
outline-offset: var(--ui-focus-width);
|
package/vue/chunks/UiButton.js
CHANGED
package/vue/chunks/UiCheckbox.js
CHANGED
package/vue/chunks/UiRadio.js
CHANGED
package/vue/chunks/UiSwitch.js
CHANGED