Skip to content

Commit 8437a2c

Browse files
committed
fixes ToggleSwitch border color for 'on' state in dark high contrast color mode
1 parent f5f7b19 commit 8437a2c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/react/src/ToggleSwitch/ToggleSwitch.module.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,7 @@
148148
.SwitchButton:where([data-checked='true']:not([data-disabled='true'])) {
149149
/* stylelint-disable-next-line primer/colors */
150150
background-color: var(--control-checked-bgColor-rest, var(--color-switch-track-checked-bg, #0969da));
151-
/* stylelint-disable-next-line primer/colors */
152-
border-color: var(--borderColor-control-checked, transparent);
151+
border-color: var(--control-checked-borderColor-rest, transparent);
153152
}
154153

155154
.SwitchButton:where([data-checked='true']:not([data-disabled='true']):hover),

0 commit comments

Comments
 (0)