@@ -20,10 +20,10 @@ governing permissions and limitations under the License.
20
20
--spectrum-actionbutton-background-color-selected-hover : var (--spectrum-alias-toggle-color-selected-hover );
21
21
--spectrum-actionbutton-background-color-selected-key-focus : var (--spectrum-alias-toggle-color-selected-key-focus );
22
22
--spectrum-actionbutton-background-color-selected-down : var (--spectrum-alias-toggle-color-selected-down );
23
- --spectrum-actionbutton-border-color-selected : var (--spectrum-actionbutton-background -color-selected );
24
- --spectrum-actionbutton-border-color-selected-hover : var (--spectrum-actionbutton-background -color-selected-hover );
25
- --spectrum-actionbutton-border-color-selected-key-focus : var (--spectrum-actionbutton-background -color-selected-key-focus );
26
- --spectrum-actionbutton-border-color-selected-down : var (--spectrum-actionbutton-background -color-selected-down );
23
+ --spectrum-actionbutton-border-color-selected : var (--spectrum-alias-toggle -color-selected );
24
+ --spectrum-actionbutton-border-color-selected-hover : var (--spectrum-alias-toggle -color-selected-hover );
25
+ --spectrum-actionbutton-border-color-selected-key-focus : var (--spectrum-alias-toggle -color-selected-key-focus );
26
+ --spectrum-actionbutton-border-color-selected-down : var (--spectrum-alias-toggle -color-selected-down );
27
27
--spectrum-actionbutton-text-color-selected : var (--spectrum-gray-50 );
28
28
--spectrum-actionbutton-text-color-selected-hover : var (--spectrum-gray-50 );
29
29
--spectrum-actionbutton-text-color-selected-key-focus : var (--spectrum-gray-50 );
@@ -37,10 +37,10 @@ governing permissions and limitations under the License.
37
37
--spectrum-actionbutton-emphasized-background-color-selected-hover : var (--spectrum-accent-background-color-hover );
38
38
--spectrum-actionbutton-emphasized-background-color-selected-key-focus : var (--spectrum-accent-background-color-key-focus );
39
39
--spectrum-actionbutton-emphasized-background-color-selected-down : var (--spectrum-accent-background-color-down );
40
- --spectrum-actionbutton-emphasized-border-color-selected : var (--spectrum-actionbutton-emphasized- background-color-selected );
41
- --spectrum-actionbutton-emphasized-border-color-selected-hover : var (--spectrum-actionbutton-emphasized- background-color-selected -hover );
42
- --spectrum-actionbutton-emphasized-border-color-selected-key-focus : var (--spectrum-actionbutton-emphasized- background-color-selected -key-focus );
43
- --spectrum-actionbutton-emphasized-border-color-selected-down : var (--spectrum-actionbutton-emphasized- background-color-selected -down );
40
+ --spectrum-actionbutton-emphasized-border-color-selected : var (--spectrum-accent- background-color-default );
41
+ --spectrum-actionbutton-emphasized-border-color-selected-hover : var (--spectrum-accent- background-color-hover );
42
+ --spectrum-actionbutton-emphasized-border-color-selected-key-focus : var (--spectrum-accent- background-color-key-focus );
43
+ --spectrum-actionbutton-emphasized-border-color-selected-down : var (--spectrum-accent- background-color-down );
44
44
45
45
/* TBD on new tokens. This passes contrast for now. */
46
46
--spectrum-logicbutton-and-background-color : var (--spectrum-global-color-static-blue-600 );
@@ -534,12 +534,12 @@ governing permissions and limitations under the License.
534
534
535
535
& : disabled ,
536
536
& .is-disabled {
537
- background-color : xvar (--spectrum-high-contrast-button-face , var (--spectrum-actionbutton-background-color-selected-disabled ));
537
+ background-color : xvar (--spectrum-high-contrast-gray-text , var (--spectrum-actionbutton-background-color-selected-disabled ));
538
538
border-color : xvar (--spectrum-high-contrast-gray-text , var (--spectrum-actionbutton-border-color-selected-disabled ));
539
- color : xvar (--spectrum-high-contrast-gray-text , var (--spectrum-actionbutton-text-color-selected-disabled ));
539
+ color : xvar (--spectrum-high-contrast-button-face , var (--spectrum-actionbutton-text-color-selected-disabled ));
540
540
541
541
.spectrum-Icon {
542
- fill : xvar (--spectrum-high-contrast-gray-text , var (--spectrum-actionbutton-icon-color-selected-disabled ));
542
+ fill : xvar (--spectrum-high-contrast-button-face , var (--spectrum-actionbutton-icon-color-selected-disabled ));
543
543
}
544
544
}
545
545
}
@@ -588,20 +588,20 @@ governing permissions and limitations under the License.
588
588
589
589
& : disabled ,
590
590
& .is-disabled {
591
- background-color : xvar (--spectrum-high-contrast-button-face , var (--spectrum-actionbutton-emphasized-background-color-selected-disabled ));
591
+ background-color : xvar (--spectrum-high-contrast-gray-text , var (--spectrum-actionbutton-emphasized-background-color-selected-disabled ));
592
592
border-color : xvar (--spectrum-high-contrast-gray-text , var (--spectrum-actionbutton-emphasized-border-color-selected-disabled ));
593
- color : xvar (--spectrum-high-contrast-gray-text , var (--spectrum-actionbutton-emphasized-text-color-selected-disabled ));
593
+ color : xvar (--spectrum-high-contrast-button-face , var (--spectrum-actionbutton-emphasized-text-color-selected-disabled ));
594
594
595
595
.spectrum-Icon {
596
- fill : xvar (--spectrum-high-contrast-gray-text , var (--spectrum-actionbutton-emphasized-icon-color-selected-disabled ));
596
+ fill : xvar (--spectrum-high-contrast-button-face , var (--spectrum-actionbutton-emphasized-icon-color-selected-disabled ));
597
597
}
598
598
}
599
599
}
600
600
}
601
601
602
602
.spectrum-ActionButton--quiet {
603
603
background-color : xvar (--spectrum-high-contrast-button-face , var (--spectrum-actionbutton-quiet-background-color ));
604
- border-color : xvar (--spectrum-high-contrast-button-face , var (--spectrum-actionbutton-quiet-border-color ));
604
+ border-color : xvar (--spectrum-high-contrast-button-text , var (--spectrum-actionbutton-quiet-border-color ));
605
605
color : xvar (--spectrum-high-contrast-button-text , var (--spectrum-actionbutton-quiet-text-color ));
606
606
607
607
& : hover {
@@ -645,18 +645,21 @@ governing permissions and limitations under the License.
645
645
--spectrum-actionbutton-static-border-color : var (--spectrum-actionbutton-static-white-border-color );
646
646
--spectrum-actionbutton-static-border-color-hover : var (--spectrum-actionbutton-static-white-border-color-hover );
647
647
--spectrum-actionbutton-static-border-color-active : var (--spectrum-actionbutton-static-white-border-color-down );
648
+ --spectrum-actionbutton-static-border-color-selected : var (--spectrum-actionbutton-static-background-color-selected );
648
649
--spectrum-actionbutton-static-border-color-focus : var (--spectrum-actionbutton-static-white-border-color-key-focus );
649
- --spectrum-actionbutton-static-border-disabled : var (--spectrum-actionbutton-static-white-border-color-disabled );
650
+ --spectrum-actionbutton-static-border-color- disabled : var (--spectrum-actionbutton-static-white-border-color-disabled );
650
651
--spectrum-actionbutton-static-border-color-selected-disabled : var (--spectrum-actionbutton-static-white-border-color-selected-disabled );
651
652
--spectrum-actionbutton-static-color : white;
652
653
--spectrum-actionbutton-static-color-selected : black; /* becomes the background of the parent element due to mix-blend-mode */
653
654
--spectrum-actionbutton-static-color-disabled : rgba (255 , 255 , 255 , 0.55 );
655
+ --spectrum-actionbutton-static-color-selected-disabled : var (--spectrum-actionbutton-static-color-disabled );
654
656
}
655
657
656
658
.spectrum-ActionButton--staticWhite .spectrum-ActionButton--quiet {
657
659
--spectrum-actionbutton-static-border-color : transparent;
658
660
--spectrum-actionbutton-static-border-color-hover : transparent;
659
661
--spectrum-actionbutton-static-border-color-active : transparent;
662
+ --spectrum-actionbutton-static-border-color-selected : transparent;
660
663
}
661
664
662
665
.spectrum-ActionButton--staticBlack {
@@ -674,18 +677,21 @@ governing permissions and limitations under the License.
674
677
--spectrum-actionbutton-static-border-color : var (--spectrum-actionbutton-static-black-border-color );
675
678
--spectrum-actionbutton-static-border-color-hover : var (--spectrum-actionbutton-static-black-border-color-hover );
676
679
--spectrum-actionbutton-static-border-color-active : var (--spectrum-actionbutton-static-black-border-color-down );
680
+ --spectrum-actionbutton-static-border-color-selected : var (--spectrum-actionbutton-static-background-color-selected );
677
681
--spectrum-actionbutton-static-border-color-focus : var (--spectrum-actionbutton-static-black-border-color-key-focus );
678
- --spectrum-actionbutton-static-border-disabled : var (--spectrum-actionbutton-static-black-border-color-disabled );
682
+ --spectrum-actionbutton-static-border-color- disabled : var (--spectrum-actionbutton-static-black-border-color-disabled );
679
683
--spectrum-actionbutton-static-border-color-selected-disabled : var (--spectrum-actionbutton-static-black-border-color-selected-disabled );
680
684
--spectrum-actionbutton-static-color : black;
681
685
--spectrum-actionbutton-static-color-selected : white; /* becomes the background of the parent element due to mix-blend-mode */
682
686
--spectrum-actionbutton-static-color-disabled : rgba (0 , 0 , 0 , 0.55 );
687
+ --spectrum-actionbutton-static-color-selected-disabled : var (--spectrum-actionbutton-static-color-disabled );
683
688
}
684
689
685
690
.spectrum-ActionButton--staticBlack .spectrum-ActionButton--quiet {
686
691
--spectrum-actionbutton-static-border-color : transparent;
687
692
--spectrum-actionbutton-static-border-color-hover : transparent;
688
693
--spectrum-actionbutton-static-border-color-active : transparent;
694
+ --spectrum-actionbutton-static-border-color-selected : transparent;
689
695
}
690
696
691
697
.spectrum-ActionButton--staticColor {
@@ -748,7 +754,7 @@ governing permissions and limitations under the License.
748
754
& : disabled ,
749
755
& .is-disabled {
750
756
background-color : var (--spectrum-actionbutton-static-background-color-disabled );
751
- border-color : var (--spectrum-actionbutton-static-border-disabled );
757
+ border-color : var (--spectrum-actionbutton-static-border-color- disabled );
752
758
color : var (--spectrum-actionbutton-static-color-disabled );
753
759
754
760
.spectrum-Icon {
@@ -763,7 +769,7 @@ governing permissions and limitations under the License.
763
769
& .spectrum-ActionButton--quiet .is-selected ,
764
770
& .is-selected {
765
771
background-color : var (--spectrum-actionbutton-static-background-color-selected );
766
- border-color : var (--spectrum-actionbutton-static-background -color-selected );
772
+ border-color : var (--spectrum-actionbutton-static-border -color-selected );
767
773
color : var (--spectrum-actionbutton-static-color-selected );
768
774
769
775
.spectrum-Icon {
@@ -796,10 +802,10 @@ governing permissions and limitations under the License.
796
802
& .is-disabled {
797
803
background-color : var (--spectrum-actionbutton-static-background-color-selected-disabled );
798
804
border-color : var (--spectrum-actionbutton-static-border-color-selected-disabled );
799
- color : var (--spectrum-actionbutton-static-color-disabled );
805
+ color : var (--spectrum-actionbutton-static-color-selected- disabled );
800
806
801
807
.spectrum-Icon {
802
- fill : var (--spectrum-actionbutton-static-color-disabled );
808
+ fill : var (--spectrum-actionbutton-static-color-selected- disabled );
803
809
}
804
810
805
811
.spectrum-ActionButton-hold {
@@ -812,17 +818,12 @@ governing permissions and limitations under the License.
812
818
/* Quiet action buttons always have transparent backgrounds, in both Spectrum and Express */
813
819
--spectrum-actionbutton-static-background-color : transparent;
814
820
--spectrum-actionbutton-static-background-color-disabled : transparent;
815
-
816
- & ,
817
- & : hover ,
818
- & .is-active ,
819
- & : disabled ,
820
- & .is-disabled {
821
- & ,
822
- & .is-selected {
823
- border-color : transparent;
824
- }
825
- }
821
+ --spectrum-actionbutton-static-border-color : transparent;
822
+ --spectrum-actionbutton-static-border-color-disabled : transparent;
823
+ --spectrum-actionbutton-static-border-color-selected-hover : transparent;
824
+ --spectrum-actionbutton-static-border-color-focus : transparent;
825
+ --spectrum-actionbutton-static-border-color-active : transparent;
826
+ --spectrum-actionbutton-static-border-color-selected-disabled : transparent;
826
827
}
827
828
}
828
829
@@ -1034,24 +1035,33 @@ governing permissions and limitations under the License.
1034
1035
--spectrum-button-over-background-color : ButtonText;
1035
1036
}
1036
1037
1038
+ .spectrum-ActionButton--staticColor ,
1037
1039
.spectrum-ActionButton--staticWhite ,
1038
- .spectrum-ActionButton--staticBlack {
1040
+ .spectrum-ActionButton--staticBlack ,
1041
+ .spectrum-ActionButton--staticWhite .spectrum-ActionButton--quiet ,
1042
+ .spectrum-ActionButton--staticBlack .spectrum-ActionButton--quiet {
1039
1043
/* For some reason, making this a var doesn't work, the value is inlined in the css */
1040
1044
mix-blend-mode : normal;
1045
+ --spectrum-actionbutton-static-background-color : ButtonFace;
1046
+ --spectrum-actionbutton-static-background-color-disabled : var (--spectrum-high-contrast-transparent );
1047
+ --spectrum-actionbutton-static-background-color-selected-disabled : GrayText;
1041
1048
--spectrum-actionbutton-static-background-color-hover : ButtonFace;
1042
1049
--spectrum-actionbutton-static-background-color-focus : ButtonFace;
1043
1050
--spectrum-actionbutton-static-background-color-active : ButtonFace;
1044
1051
--spectrum-actionbutton-static-background-color-selected : Highlight;
1045
1052
--spectrum-actionbutton-static-background-color-selected-hover : Highlight;
1046
1053
--spectrum-actionbutton-static-background-color-selected-focus : Highlight;
1047
1054
--spectrum-actionbutton-static-background-color-selected-active : Highlight;
1055
+ --spectrum-actionbutton-static-background-color-selected-disabled : GrayText;
1048
1056
--spectrum-actionbutton-static-border-color : ButtonText;
1049
1057
--spectrum-actionbutton-static-border-color-hover : Highlight;
1050
1058
--spectrum-actionbutton-static-border-color-active : ButtonText;
1051
1059
--spectrum-actionbutton-static-border-color-focus : CanvasText;
1052
- --spectrum-actionbutton-static-border-disabled : GrayText;
1060
+ --spectrum-actionbutton-static-border-color-disabled : GrayText;
1061
+ --spectrum-actionbutton-static-border-color-selected-disabled : GrayText;
1053
1062
--spectrum-actionbutton-static-color : ButtonText;
1054
1063
--spectrum-actionbutton-static-color-selected : HighlightText; /* becomes the background of the parent element due to mix-blend-mode */
1055
1064
--spectrum-actionbutton-static-color-disabled : GrayText;
1065
+ --spectrum-actionbutton-static-color-selected-disabled : ButtonFace;
1056
1066
}
1057
1067
}
0 commit comments