Skip to content

Commit 569bd2e

Browse files
Melissa Thompsonpfulton
authored andcommitted
fix(swatch): icons use display instead of visibility
1 parent 78f5129 commit 569bd2e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/swatch/index.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ governing permissions and limitations under the License.
173173

174174
.spectrum-Swatch-mixedValueIcon {
175175
color: var(--spectrum-swatch-dash-icon-color);
176-
visibility: visible;
176+
display: block;
177177
}
178178
}
179179

@@ -215,7 +215,7 @@ governing permissions and limitations under the License.
215215
&[disabled],
216216
&.is-disabled {
217217
.spectrum-Swatch-disabledIcon {
218-
visibility: visible;
218+
display: block;
219219
}
220220
}
221221

@@ -303,7 +303,7 @@ governing permissions and limitations under the License.
303303
}
304304

305305
.spectrum-Swatch-mixedValueIcon {
306-
visibility: hidden;
306+
display: none;
307307
pointer-events: none;
308308
/* Undefined variable allows custom stylesheet or JS to pass the value to this element */
309309
color: var(--spectrum-picked-color, transparent);
@@ -313,7 +313,7 @@ governing permissions and limitations under the License.
313313
position: relative;
314314
z-index: 2;
315315

316-
visibility: hidden;
316+
display: none;
317317
pointer-events: none;
318318

319319
color: var(--highcontrast-swatch-disabled-icon-color, var(--mod-swatch-disabled-icon-color, var(--spectrum-swatch-disabled-icon-color)));

0 commit comments

Comments
 (0)