@@ -19,6 +19,7 @@ $largeButtonSize: componentSize(l);
1919
2020.sg-button {
2121 @include applyFocus ();
22+ @include applyPressEffect ();
2223
2324 position : relative ;
2425 display : inline-flex ;
@@ -36,26 +37,17 @@ $largeButtonSize: componentSize(l);
3637 color : $white ;
3738 text-transform : uppercase ;
3839 padding : 0 20px ;
39- will-change : background-color , border-color ;
40- transition-property : background-color , border-color ;
41- transition-duration : 0.2s ;
42- transition-timing-function : ease-in-out ;
4340 box-sizing : border-box ;
4441 touch-action : manipulation ;
4542 -webkit-user-select : none ;
4643 -webkit-tap-highlight-color : rgba (0 , 0 , 0 , 0 );
4744 user-select : none ;
48- transition : transform $durationModerate2 $easingRegular ;
4945 cursor : default ;
5046
5147 & [href ] {
5248 cursor : pointer ;
5349 }
5450
55- & :active:not ([disabled ]) {
56- transform : scale (0.96 );
57- }
58-
5951 & :disabled {
6052 @media (forced-colors : active ) {
6153 color : GrayText ;
@@ -401,6 +393,7 @@ $largeButtonSize: componentSize(l);
401393 & --icon-only {
402394 padding : 0 ;
403395 width : $mediumButtonSize ;
396+ --pressScale : 0.92 ;
404397
405398 & .sg-button--s {
406399 width : $smallButtonSize ;
@@ -429,10 +422,6 @@ $largeButtonSize: componentSize(l);
429422 clip : rect (0 , 0 , 0 , 0 );
430423 border : none ;
431424 }
432-
433- & :active:not ([disabled ]) {
434- transform : scale (0.92 );
435- }
436425 }
437426
438427 @media (forced-colors : active ) {
0 commit comments