@@ -82,10 +82,19 @@ governing permissions and limitations under the License.
82
82
}
83
83
84
84
: host {
85
+ - - spectrum- closebutto n- icon- color - default: var(- - spectrum- neutral- content- color - default);
86
+ - - spectrum- closebutto n- icon- color - hover: var(- - spectrum- neutral- content- color - hover);
87
+ - - spectrum- closebutto n- icon- color - down: var(- - spectrum- neutral- content- color - down);
88
+ - - spectrum- closebutto n- icon- color - focus: var(- - spectrum- neutral- content- color - key- focus);
89
+ - - spectrum- closebutto n- icon- color - dis abled: var(- - spectrum- dis abled- content- color );
90
+ - - spectrum- closebutto n- focus- indicato r- thickness: var(- - spectrum- focus- indicato r- thickness);
91
+ - - spectrum- closebutto n- focus- indicato r- gap: var(- - spectrum- focus- indicato r- gap);
92
+ - - spectrum- closebutto n- focus- indicato r- color : var(- - spectrum- focus- indicato r- color );
93
+ - - spectrum- closebutto n- animation- duration: var(- - spectrum- animation- duration-100);
85
94
block- size: var(- - mod- closebutto n- height, var(- - spectrum- closebutto n- size));
86
- inline-size: var(- - mod- closebutto n- width, var(- - spectrum- closebutto n- size));
95
+ inline-size: var(- - mod- closebutto n- width, var(- - mod - closebut to n - height , var( - - spectrum- closebutto n- size) ));
87
96
color : inherit;
88
- bor der- radius: var(- - mod- closebutto n- bor der- radius, var(- - spectrum- closebutto n- size ));
97
+ bor der- radius: var(- - mod- closebutto n- bor der- radius, var(- - spectrum- closebutto n- b or der - radius ));
89
98
transition: bor der- color var(- - mod- closebutto n- animation- duration, var(- - spectrum- closebutto n- animation- duration)) ease- in- out;
90
99
margin- inline: var(- - mod- closebutto n- margin- inline);
91
100
justify- content: center;
@@ -100,6 +109,41 @@ governing permissions and limitations under the License.
100
109
position: relative;
101
110
}
102
111
112
+ : host ([size = 's' ]) {
113
+ --spectrum-closebutton-size : var (--spectrum-component-height-75 );
114
+ --spectrum-closebutton-border-radius : var (--spectrum-component-height-75 );
115
+ }
116
+
117
+ : host ,
118
+ : host {
119
+ - - spectrum- closebutto n- size: var(--spectrum-component-height-100 );
120
+ - - spectrum- closebutto n- bor der- radius: var(- - spectrum- component- height-100);
121
+ }
122
+
123
+ : host ([size = 'l' ]) {
124
+ --spectrum-closebutton-size : var (--spectrum-component-height-200 );
125
+ --spectrum-closebutton-border-radius : var (--spectrum-component-height-200 );
126
+ }
127
+
128
+ : host ([size = 'xl' ]) {
129
+ --spectrum-closebutton-size : var (--spectrum-component-height-300 );
130
+ --spectrum-closebutton-border-radius : var (--spectrum-component-height-300 );
131
+ }
132
+
133
+ : host ([static-color = 'white' ]) {
134
+ --spectrum-closebutton-static-background-color-default : transparent;
135
+ --spectrum-closebutton-icon-color-default : var (--spectrum-white );
136
+ --spectrum-closebutton-icon-color-disabled : var (--spectrum-disabled-static-white-content-color );
137
+ --spectrum-closebutton-focus-indicator-color : var (--spectrum-static-white-focus-indicator-color );
138
+ }
139
+
140
+ : host ([static-color = 'black' ]) {
141
+ --spectrum-closebutton-static-background-color-default : transparent;
142
+ --spectrum-closebutton-icon-color-default : var (--spectrum-black );
143
+ --spectrum-closebutton-icon-color-disabled : var (--spectrum-disabled-static-black-content-color );
144
+ --spectrum-closebutton-focus-indicator-color : var (--spectrum-static-black-focus-indicator-color );
145
+ }
146
+
103
147
: host : after {
104
148
pointer- events: none;
105
149
content: '';
@@ -175,7 +219,7 @@ governing permissions and limitations under the License.
175
219
176
220
: host ([static-color = 'black' ]: not ([disabled ]): hover),
177
221
: host ([static-color = 'white' ]: not ([disabled ]): hover ) {
178
- background-color : var (--highcontrast-closebutton-static-background-color-hover , var ( -- mod-closebutton-static-background-color-hover, var (--spectrum-closebutton-static-background-color-hover ) ));
222
+ background-color : var (--mod-closebutton-static-background-color-hover , var (--spectrum-closebutton-static-background-color-hover ));
179
223
}
180
224
181
225
: host ([static-color = 'black' ]: not ([disabled ]): hover) .icon ,
@@ -186,7 +230,7 @@ governing permissions and limitations under the License.
186
230
187
231
: host ([static-color = 'black' ]: not ([disabled ]): is (: active, [active ])),
188
232
: host ([static-color = 'white' ]: not ([disabled ]): is (: active , [active ])) {
189
- background-color : var (--highcontrast-closebutton-static-background-color-down , var ( -- mod-closebutton-static-background-color-down, var (--spectrum-closebutton-static-background-color-down ) ));
233
+ background-color : var (--mod-closebutton-static-background-color-down , var (--spectrum-closebutton-static-background-color-down ));
190
234
}
191
235
192
236
: host ([static-color = 'black' ]: not ([disabled ]): is (: active, [active ])) .icon ,
@@ -198,7 +242,7 @@ governing permissions and limitations under the License.
198
242
: host ([static-color = 'black' ]: not ([disabled ]): focus- vis ible),
199
243
: host ([static-color = 'white' ][focused ]: not ([disabled ])),
200
244
: host ([static-color = 'white' ]: not ([disabled ]): focus-visible ) {
201
- background-color : var (--highcontrast-closebutton-static-background-color-focus , var ( -- mod-closebutton-static-background-color-focus, var (--spectrum-closebutton-static-background-color-focus ) ));
245
+ background-color : var (--mod-closebutton-static-background-color-focus , var (--spectrum-closebutton-static-background-color-focus ));
202
246
}
203
247
204
248
: host ([static-color = 'black' ][focused ]: not ([disabled ])) .icon ,
@@ -219,7 +263,7 @@ governing permissions and limitations under the License.
219
263
220
264
: host ([static-color = 'black' ][disabled ]) .icon ,
221
265
: host ([static-color = 'white' ][disabled ]) .icon {
222
- color : var (--highcontrast-closebutton-icon-disabled , var ( -- mod-closebutton-icon-color-disabled, var (--spectrum-closebutton-icon-color-disabled ) ));
266
+ color : var (--mod-closebutton-icon-color-disabled , var (--spectrum-closebutton-icon-color-disabled ));
223
267
}
224
268
225
269
.icon {
0 commit comments