@@ -12,10 +12,15 @@ governing permissions and limitations under the License.
12
12
13
13
/* THIS FILE IS MACHINE GENERATED. DO NOT EDIT */
14
14
: host {
15
+ - - spectrum- clear- butto n- height: var(--spectrum-component-height-100 );
16
+ - - spectrum- clear- butto n- width: var(- - spectrum- component- height-100);
17
+ - - spectrum- clear- butto n- padding: var(- - spectrum- in- field- butto n- edge-to - fill);
18
+ - - spectrum- clear- butto n- icon- color : var(- - spectrum- neutral- content- color - default);
19
+ - - spectrum- clear- butto n- icon- color - hover: var(- - spectrum- neutral- content- color - hover);
20
+ - - spectrum- clear- butto n- icon- color - down: var(- - spectrum- neutral- content- color - down);
21
+ - - spectrum- clear- butto n- icon- color - key- focus: var(- - spectrum- neutral- content- color - key- focus);
15
22
block- size: var(- - mod- clear- butto n- height, var (- - spectrum- clear- butto n- height));
16
23
inline-size: var(- - mod- clear- butto n- width, var (- - spectrum- clear- butto n- width));
17
- cursor : pointer;
18
- background- color : initial;
19
24
background- color : var(- - mod- clear- butto n- background- color , transparent );
20
25
padding: var(- - mod- clear- butto n- padding, var (- - spectrum- clear- butto n- padding));
21
26
color : var(- - mod- clear- butto n- icon- color , var (- - spectrum- clear- butto n- icon- color ));
@@ -24,47 +29,83 @@ governing permissions and limitations under the License.
24
29
margin: 0;
25
30
}
26
31
32
+ : host ([size= 's']) {
33
+ --spectrum-clear-button-height : var (--spectrum-component-height-75 );
34
+ --spectrum-clear-button-width : var (--spectrum-component-height-75 );
35
+ }
36
+
37
+ : host ([size = 'l' ]) {
38
+ --spectrum-clear-button-height : var (--spectrum-component-height-200 );
39
+ --spectrum-clear-button-width : var (--spectrum-component-height-200 );
40
+ }
41
+
42
+ : host ([size = 'xl' ]) {
43
+ --spectrum-clear-button-height : var (--spectrum-component-height-300 );
44
+ --spectrum-clear-button-width : var (--spectrum-component-height-300 );
45
+ }
46
+
47
+ : host ([quiet ]) {
48
+ --mod-clear-button-background-color : transparent;
49
+ --mod-clear-button-background-color-hover : transparent;
50
+ --mod-clear-button-background-color-down : transparent;
51
+ --mod-clear-button-background-color-key-focus : transparent;
52
+ }
53
+
54
+ : host ([static-color = 'white' ]) {
55
+ --mod-clear-button-icon-color : var (--spectrum-white );
56
+ --mod-clear-button-icon-color-hover : var (--spectrum-white );
57
+ --mod-clear-button-icon-color-down : var (--spectrum-white );
58
+ --mod-clear-button-icon-color-key-focus : var (--spectrum-white );
59
+ --mod-clear-button-icon-color-disabled : var (--spectrum-disabled-static-white-content-color );
60
+ --mod-clear-button-background-color : transparent;
61
+ }
62
+
63
+ : host ([disabled ]) {
64
+ --mod-clear-button-icon-color : var (--mod-clear-button-icon-color-disabled , var (--spectrum-disabled-content-color ));
65
+ --mod-clear-button-icon-color-hover : var (--spectrum-disabled-content-color );
66
+ --mod-clear-button-icon-color-down : var (--spectrum-disabled-content-color );
67
+ --mod-clear-button-background-color : var (--mod-clear-button-background-color-disabled , transparent);
68
+ }
69
+
70
+ : host : not (: disabled ) {
71
+ cursor : pointer;
72
+ }
73
+
27
74
.icon {
28
75
margin-block : 0 ;
29
76
margin-inline : auto;
30
77
}
31
78
32
79
@media (hover : hover) {
33
- : host (: hover ) {
80
+ : host (: hover ): not ( : disabled ) {
34
81
color : var (--highcontrast-clear-button-icon-color-hover , var (--mod-clear-button-icon-color-hover , var (--spectrum-clear-button-icon-color-hover )));
35
82
}
36
83
37
- : host (: hover ) .fill {
84
+ : host (: hover ): not ( : disabled ) .fill {
38
85
background-color : var (--mod-clear-button-background-color-hover , var (--spectrum-clear-button-background-color-hover ));
39
86
}
40
87
}
41
88
42
- : host (: is (: active , [active ])) {
89
+ : host (: is (: active , [active ])): not ( : disabled ) {
43
90
color : var (--mod-clear-button-icon-color-down , var (--spectrum-clear-button-icon-color-down ));
44
91
}
45
92
46
- : host (: is (: active , [active ])) .fill {
93
+ : host (: is (: active , [active ])): not ( : disabled ) .fill {
47
94
background-color : var (--mod-clear-button-background-color-down , var (--spectrum-clear-button-background-color-down ));
48
95
}
49
96
50
- : host ([focus-within ]) .js-focus-within ,
51
- : host (: focus-visible ),
52
- : host : focus- within,
53
- : host ([focus-within ]) .js-focus-within {
97
+ : host : not (: disabled ): focus-visible ,
98
+ : host : not (: disabled ): focus-within {
54
99
color : var (--mod-clear-button-icon-color-key-focus , var (--spectrum-clear-button-icon-color-key-focus ));
55
100
}
56
101
57
- : host ([focus-within ]) .js-focus-within .fill ,
58
- : host (: focus-visible ) .fill ,
59
- : host : focus- within .fill ,
60
- : host ([focus-within ]) .js-focus-within .fill {
102
+ : host : not (: disabled ): focus-visible .fill ,
103
+ : host : not (: disabled ): focus-within .fill {
61
104
background-color : var (--mod-clear-button-background-color-key-focus , var (--spectrum-clear-button-background-color-key-focus ));
62
105
}
63
106
64
- : host ([disabled ]),
65
- : host ([disabled ]) {
66
- --spectrum-clear-button-icon-color : var (--mod-clear-button-icon-color-disabled , var (--spectrum-disabled-content-color ));
67
- --spectrum-clear-button-background-color : var (--mod-clear-button-background-color-disabled , transparent);
107
+ .icon {
108
+ color : inherit;
68
109
}
69
110
70
111
.fill {
@@ -77,7 +118,8 @@ governing permissions and limitations under the License.
77
118
display : flex;
78
119
}
79
120
80
- : host ([variant = 'overBackground' ]: focus-visible ) {
121
+ : host ([variant = 'overBackground' ]: focus- vis ible),
122
+ : host ([static-color = 'white' ]: focus-visible ) {
81
123
outline : none;
82
124
}
83
125
0 commit comments