@@ -40,15 +40,19 @@ governing permissions and limitations under the License.
40
40
/* Adjacent buttons should be aligned correctly */
41
41
vertical- align: to p;
42
42
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;
47
48
48
49
text- decor ation: none;
49
- font- family: var(- - mod- sans- font- family- stack, var(- - spectrum- sans- font- family- stack));
50
50
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)));
52
56
53
57
user- select: none;
54
58
- webkit- user- select: none;
@@ -92,19 +96,20 @@ governing permissions and limitations under the License.
92
96
inset-block-end : 0 ;
93
97
inset-inline-start : 0 ;
94
98
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;
98
104
}
99
105
100
106
& : focus-visible {
101
107
& ::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 );
103
109
}
104
110
}
105
111
}
106
112
107
-
108
113
%spectrum- AnchorButto n {
109
114
/* Remove appearance for clickable types in iOS and Safari. */
110
115
- webkit- appearance: none;
@@ -119,9 +124,6 @@ governing permissions and limitations under the License.
119
124
/* Fixes horizontal alignment of text in anchor buttons */
120
125
text- align: center;
121
126
122
- /* @safari10 Workaround for https://bugs.webkit.org/show_bug.cgi?id=169700 */
123
- /*inline-size: 100%;*/
124
-
125
127
& : empty {
126
128
display : none;
127
129
}
0 commit comments