@@ -134,7 +134,6 @@ governing permissions and limitations under the License.
134
134
}
135
135
136
136
# label {
137
- text-align : center;
138
137
place-self : center;
139
138
}
140
139
@@ -315,6 +314,8 @@ governing permissions and limitations under the License.
315
314
- - mod- butto n- padding- label- to - icon,
316
315
var (- - spectrum- butto n- padding- label- to - icon)
317
316
);
317
+ max- inline-size: none;
318
+ max- inline-size: var(- - mod- butto n- max- inline-size, none );
318
319
min- inline-size: var(
319
320
- - mod- butto n- min- width,
320
321
var (- - spectrum- butto n- min- width)
@@ -400,6 +401,7 @@ governing permissions and limitations under the License.
400
401
--mod-button-line-height ,
401
402
var (--spectrum-button-line-height )
402
403
);
404
+ text-align : center;
403
405
text-align : var (--mod-button-text-align , center);
404
406
align-self : start;
405
407
padding-block-start : calc (
@@ -413,6 +415,7 @@ governing permissions and limitations under the License.
413
415
}
414
416
415
417
[name = 'icon' ] + # label {
418
+ text-align : start;
416
419
text-align : var (--mod-button-text-align-with-icon , start);
417
420
}
418
421
@@ -512,6 +515,10 @@ governing permissions and limitations under the License.
512
515
var (- - spectrum- butto n- content- color - default)
513
516
)
514
517
);
518
+ transition:
519
+ bor der 0.13s linear,
520
+ color 0.13s linear,
521
+ background-color 0.13s linear;
515
522
transition:
516
523
bor der
517
524
var(
@@ -639,6 +646,7 @@ governing permissions and limitations under the License.
639
646
::slotted ([slot = 'icon' ]) {
640
647
visibility : visible;
641
648
opacity : 1 ;
649
+ transition : opacity 0.13s ease-in-out;
642
650
transition : opacity
643
651
var (
644
652
--mod-button-animation-duration ,
@@ -650,6 +658,9 @@ governing permissions and limitations under the License.
650
658
.spectrum-ProgressCircle {
651
659
visibility : hidden;
652
660
opacity : 0 ;
661
+ transition :
662
+ opacity 0.13s ease-in-out,
663
+ visibility 0s linear 0.13s ;
653
664
transition :
654
665
opacity
655
666
var (
@@ -673,6 +684,7 @@ governing permissions and limitations under the License.
673
684
: host ([pending ]) .spectrum-ProgressCircle {
674
685
visibility : visible;
675
686
opacity : 1 ;
687
+ transition : opacity 0.13s ease-in-out;
676
688
transition : opacity
677
689
var (
678
690
--mod-button-animation-duration ,
@@ -681,6 +693,12 @@ governing permissions and limitations under the License.
681
693
ease-in-out;
682
694
}
683
695
696
+ : host ([no-wrap ]) # label {
697
+ text-overflow : ellipsis;
698
+ white-space : nowrap;
699
+ overflow : hidden;
700
+ }
701
+
684
702
: host ([static = 'black' ]),
685
703
: host ([static = 'white' ]) {
686
704
--spectrum-button-focus-indicator-color : var (
@@ -691,13 +709,31 @@ governing permissions and limitations under the License.
691
709
692
710
@media (forced-colors : active) {
693
711
: host {
712
+ --highcontrast-button-content-color-default : ButtonText;
713
+ --highcontrast-button-content-color-hover : ButtonText;
714
+ --highcontrast-button-content-color-focus : ButtonText;
715
+ --highcontrast-button-content-color-down : ButtonText;
716
+ --highcontrast-button-border-color-default : ButtonBorder;
717
+ --highcontrast-button-border-color-hover : ButtonBorder;
718
+ --highcontrast-button-border-color-focus : ButtonBorder;
719
+ --highcontrast-button-border-color-down : ButtonBorder;
720
+ --highcontrast-button-background-color-default : ButtonFace;
721
+ --highcontrast-button-background-color-hover : ButtonFace;
722
+ --highcontrast-button-background-color-down : ButtonFace;
723
+ --highcontrast-button-background-color-focus : ButtonFace;
724
+ --highcontrast-button-background-color-disabled : ButtonFace;
694
725
--highcontrast-button-content-color-disabled : GrayText;
695
726
--highcontrast-button-border-color-disabled : GrayText;
696
727
--mod-progress-circle-track-border-color : ButtonText;
697
728
--mod-progress-circle-track-border-color-over-background : ButtonText;
698
729
--mod-progress-circle-thickness : var (
699
730
--spectrum-progress-circle-thickness-medium
700
731
);
732
+ --mod-button-animation-duration : 0s ;
733
+ }
734
+
735
+ # label {
736
+ forced-color-adjust : none;
701
737
}
702
738
703
739
: host (: focus-visible ): after {
@@ -713,17 +749,17 @@ governing permissions and limitations under the License.
713
749
: host ([variant = 'accent' ][treatment = 'fill' ]) {
714
750
--highcontrast-button-background-color-default : ButtonText;
715
751
--highcontrast-button-content-color-default : ButtonFace;
752
+ --highcontrast-button-content-color-hover : HighlightText;
753
+ --highcontrast-button-content-color-down : HighlightText;
754
+ --highcontrast-button-content-color-focus : HighlightText;
716
755
--highcontrast-button-background-color-disabled : ButtonFace;
717
756
--highcontrast-button-background-color-hover : Highlight;
718
757
--highcontrast-button-background-color-down : Highlight;
719
758
--highcontrast-button-background-color-focus : Highlight;
720
- --highcontrast-button-content-color-hover : ButtonFace;
721
- --highcontrast-button-content-color-down : ButtonFace;
722
- --highcontrast-button-content-color-focus : ButtonFace;
723
- }
724
-
725
- : host ([variant = 'accent' ][treatment = 'fill' ]) # label {
726
- forced-color-adjust : none;
759
+ --highcontrast-button-border-color-default : ButtonText;
760
+ --highcontrast-button-border-color-hover : Highlight;
761
+ --highcontrast-button-border-color-focus : Highlight;
762
+ --highcontrast-button-border-color-down : Highlight;
727
763
}
728
764
}
729
765
0 commit comments