Skip to content

Commit cc7da4a

Browse files
committed
checkbox and switch css fixes for high contrast mode
1 parent 7304444 commit cc7da4a

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

packages/components/src/components/checkbox/checkbox.css

+13
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,13 @@ scale-checkbox.indeterminate [part='checkbox'] {
147147
border: none;
148148
color: var(--color-icon-checked-active);
149149
}
150+
151+
@media screen and (forced-colors: active), (-ms-high-contrast: active) {
152+
scale-checkbox.indeterminate [part='checkbox'] {
153+
border: 1px solid;
154+
}
155+
}
156+
150157
scale-checkbox.indeterminate [part='icon'] {
151158
color: var(--color-icon-checked-active);
152159
}
@@ -256,6 +263,12 @@ scale-checkbox.error [part='checkbox'] {
256263
border: none;
257264
}
258265

266+
@media screen and (forced-colors: active), (-ms-high-contrast: active) {
267+
scale-checkbox.error [part='checkbox'] {
268+
border: 1px solid;
269+
}
270+
}
271+
259272
scale-checkbox.error
260273
[part='input']:focus
261274
~ [part='container']

packages/components/src/components/switch/switch.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ scale-switch scale-icon-action-success {
307307
.switch__toggle {
308308
border: 1px solid;
309309
}
310-
scale-icon-action-checkmark {
310+
scale-switch scale-icon-action-checkmark {
311311
visibility: hidden !important;
312312
}
313313
}

0 commit comments

Comments
 (0)