@@ -31,7 +31,6 @@ governing permissions and limitations under the License.
31
31
--spectrum-swatch-focus-ring-gap : var (--spectrum-focus-ring-gap );
32
32
33
33
--spectrum-swatch-border-color : var (--spectrum-swatch-border-color );
34
- /* --spectrum-swatch-border-color-selected: var(--spectrum-gray-900); */
35
34
--spectrum-swatch-inner-border-color-selected : var (--spectrum-gray-50 );
36
35
--spectrum-swatch-disabled-icon-border-color : var (--spectrum-swatch-disabled-icon-border-color );
37
36
--spectrum-swatch-disabled-icon-color : var (--spectrum-white );
@@ -72,12 +71,11 @@ governing permissions and limitations under the License.
72
71
}
73
72
.spectrum-Swatch {
74
73
--highcontrast-swatch-disabled-icon-color : grayText;
75
- --highcontrast-swatch-focus-ring-color : ButtonText ;
74
+ --highcontrast-swatch-focus-ring-color : Highlight ;
76
75
--highcontrast-swatch-border-color-selected : Highlight;
77
76
--highcontrast-swatch-border-color : ButtonText;
78
- --highcontrast-swatch-border-color-light : ButtonText;
79
- /* --highcontrast-swatch-fill-background-color-selected: ButtonFace; */
80
77
--highcontrast-swatch-fill-background-color : ButtonFace;
78
+ --highcontrast-swatch-fill-foreground-color : ButtonText;
81
79
& .is-disabled {
82
80
.spectrum-Swatch-fill {
83
81
forced-color-adjust : auto;
@@ -141,7 +139,7 @@ governing permissions and limitations under the License.
141
139
}
142
140
}
143
141
144
- /* Swatch fill with transparent background-color for images, gradients, and svgs */
142
+ /* Swatch fill: Image, Gradient, SVG */
145
143
& .is-image {
146
144
.spectrum-Swatch-fill {
147
145
& ::before {
@@ -161,18 +159,18 @@ governing permissions and limitations under the License.
161
159
}
162
160
}
163
161
162
+ /* Swatch fill: Not fill with Slash */
164
163
& .is-nothing {
165
164
.spectrum-Swatch-fill {
166
165
background-color : var (--highcontrast-swatch-fill-background-color , var (--mod-swatch-fill-background-color , var (--spectrum-swatch-fill-background-color )));
167
166
168
- /* Slash */
169
167
& : after {
170
168
height : var (--mod-swatch-slash-thickness , var (--spectrum-swatch-slash-thickness ));
171
169
content : '' ;
172
170
position : absolute;
173
171
transform : rotate (-45deg );
174
172
width : 200% ; /* just needs to be bigger than a swatch */
175
- background : var (--spectrum-swatch-slash-icon-color );
173
+ background : var (--highcontrast-swatch-fill-foreground-color , var ( --mod-swatch-slash-icon-color , var ( -- spectrum-swatch-slash-icon-color)) );
176
174
}
177
175
}
178
176
@@ -274,7 +272,7 @@ governing permissions and limitations under the License.
274
272
linear-gradient (-45deg , var (--spectrum-swatch-checkerboard-dark-color ) 25.5% , transparent 25.5% ),
275
273
linear-gradient (45deg , var (--spectrum-swatch-checkerboard-dark-color ) 25.5% , transparent 25.5% );
276
274
277
- /* Swatch fill - default */
275
+ /* Swatch fill: Default */
278
276
& : before {
279
277
content : '' ;
280
278
position : absolute;
@@ -294,7 +292,7 @@ governing permissions and limitations under the License.
294
292
.spectrum-Swatch--lightBorder {
295
293
.spectrum-Swatch-fill {
296
294
& : before {
297
- box-shadow : inset 0 0 0 var (--mod-swatch-border-thickness , var (--spectrum-swatch-border-thickness )) var (--highcontrast-swatch-border-color-light , var (--mod-swatch-border-color-light , var (--spectrum-swatch-border-color-light )));
295
+ box-shadow : inset 0 0 0 var (--mod-swatch-border-thickness , var (--spectrum-swatch-border-thickness )) var (--highcontrast-swatch-border-color , var (--mod-swatch-border-color-light , var (--spectrum-swatch-border-color-light )));
298
296
}
299
297
}
300
298
}
@@ -304,6 +302,7 @@ governing permissions and limitations under the License.
304
302
.spectrum-Swatch-fill {
305
303
& : before {
306
304
box-shadow : none;
305
+ background-color : var (--highcontrast-swatch-fill-foreground-color , inherit);
307
306
}
308
307
}
309
308
}
0 commit comments