@@ -40,15 +40,19 @@ governing permissions and limitations under the License.
4040 /* Adjacent buttons should be aligned correctly */
4141 vertical- align: to p;
4242
43- transition: background var(- - mod- animation- duration-100, var(- - spectrum- animation- duration-100)) ease- out,
44- bor der- color var(- - mod- animation- duration-100, var(- - spectrum- animation- duration-100)) ease- out,
45- color var(- - mod- animation- duration-100, var(- - spectrum- animation- duration-100)) ease- out,
46- box- shadow var(- - mod- animation- duration-100, var(- - spectrum- animation- duration-100)) ease- out;
43+ /* @deprecation --mod-animation-duration-100 has been renamed and will be removed in a future version. */
44+ transition: background var(- - mod- butto n- animation- duration, var(- - mod- animation- duration-100, var(- - spectrum- animation- duration-100))) ease- out,
45+ bor der- color var(- - mod- butto n- animation- duration, var(- - mod- animation- duration-100, var(- - spectrum- animation- duration-100))) ease- out,
46+ color var(- - mod- butto n- animation- duration, var(- - mod- animation- duration-100, var(- - spectrum- animation- duration-100))) ease- out,
47+ box- shadow var(- - mod- butto n- animation- duration, var(- - mod- animation- duration-100, var(- - spectrum- animation- duration-100))) ease- out;
4748
4849 text- decor ation: none;
49- font- family: var(- - mod- sans- font- family- stack, var(- - spectrum- sans- font- family- stack));
5050
51- line-height: var(- - mod- line-height-100, var(- - spectrum- line-height-100));
51+ /* @deprecation --mod-sans-font-family-stack has been renamed and will be removed in a future version. */
52+ font- family: var(- - mod- butto n- font- family, var(- - mod- sans- font- family- stack, var(- - spectrum- sans- font- family- stack)));
53+
54+ /* @deprecation --mod-line-height-100 has been renamed and will be removed in a future version. */
55+ line-height: var(- - mod- butto n- line-height, var(- - mod- line-height-100, var(- - spectrum- line-height-100)));
5256
5357 user- select: none;
5458 - webkit- user- select: none;
@@ -92,19 +96,20 @@ governing permissions and limitations under the License.
9296 inset-block-end : 0 ;
9397 inset-inline-start : 0 ;
9498 inset-inline-end : 0 ;
95- margin : calc (var (--mod-focus-indicator-gap , var (--spectrum-focus-indicator-gap )) * -1 );
96- transition : opacity var (--mod-animation-duration-100 , var (--spectrum-animation-duration-100 )) ease-out,
97- margin var (--mod-animation-duration-100 , var (--spectrum-animation-duration-100 )) ease-out;
99+ /* @deprecation --mod-focus-indicator-gap has been renamed and will be removed in a future version. */
100+ margin : calc (var (--mod-button-focus-indicator-gap , var (--mod-focus-indicator-gap , var (--spectrum-focus-indicator-gap ))) * -1 );
101+ /* @deprecation --mod-animation-duration-100 has been renamed and will be removed in a future version. */
102+ transition : opacity var (--mod-button-animation-duration , var (--mod-animation-duration-100 , var (--spectrum-animation-duration-100 ))) ease-out,
103+ margin var (--mod-button-animation-duration , var (--mod-animation-duration-100 , var (--spectrum-animation-duration-100 ))) ease-out;
98104 }
99105
100106 & : focus-visible {
101107 & ::after {
102- margin : calc (var (--mod-focus-indicator-gap , var (--spectrum-focus-indicator-gap )) * -2 );
108+ margin : calc (var (--mod-button- focus-indicator-gap , var (--mod-focus-indicator-gap , var ( -- spectrum-focus-indicator-gap) )) * -2 );
103109 }
104110 }
105111}
106112
107-
108113%spectrum- AnchorButto n {
109114 /* Remove appearance for clickable types in iOS and Safari. */
110115 - webkit- appearance: none;
@@ -119,9 +124,6 @@ governing permissions and limitations under the License.
119124 /* Fixes horizontal alignment of text in anchor buttons */
120125 text- align: center;
121126
122- /* @safari10 Workaround for https://bugs.webkit.org/show_bug.cgi?id=169700 */
123- /*inline-size: 100%;*/
124-
125127 & : empty {
126128 display : none;
127129 }
0 commit comments