Skip to content

Commit 95e2b8c

Browse files
marissahuysentruytcastastrophe
authored andcommitted
fix(switch): add missing highcontrast variables
1 parent b922abb commit 95e2b8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/switch/src/switch.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ while still activating/pressing the switch. Read-only switches should not have t
3434

3535
/* Ensure read-only switches don't show interaction styles */
3636
:host([readonly]) #input + #switch:before {
37-
border-color: var(--mod-switch-handle-border-color-default, var(--spectrum-switch-handle-border-color-default)) !important;
37+
border-color: var(--highcontrast-switch-handle-border-color-default, var(--mod-switch-handle-border-color-default, var(--spectrum-switch-handle-border-color-default))) !important;
3838
}
3939

4040
:host([readonly][checked]) #input + #switch:before {
41-
border-color: var(--mod-switch-handle-border-color-selected-default, var(--spectrum-switch-handle-border-color-selected-default)) !important;
41+
border-color: var(--highcontrast-switch-handle-border-color-selected-default, var(--mod-switch-handle-border-color-selected-default, var(--spectrum-switch-handle-border-color-selected-default))) !important;
4242
}

0 commit comments

Comments
 (0)