Skip to content

Commit 0dead00

Browse files
fix(Checkbox): update focus styles (#7620)
* fix(Checkbox): update focus styles * fix(Checkbox): reduce outline offset Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent b62628f commit 0dead00

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

packages/components/src/components/checkbox/_checkbox.scss

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -153,16 +153,8 @@
153153
// Indeterminate
154154
.#{$prefix}--checkbox:indeterminate:focus + .#{$prefix}--checkbox-label::before,
155155
.#{$prefix}--checkbox-label[data-contained-checkbox-state='mixed'].#{$prefix}--checkbox-label__focus::before {
156-
// Must use box-shadow for appearance of multiple borders with rounded corners.
157-
box-shadow: 0 0 0 2px $inverse-01, 0 0 0 4px $focus;
158-
159-
// Windows, Firefox HCM Fix
160-
@media screen and (-ms-high-contrast: active),
161-
screen and (prefers-contrast) {
162-
// `highlightText` is a CSS2 system color to help improve colors in HCM
163-
outline: 1px solid highlightText;
164-
outline-offset: 2px;
165-
}
156+
outline: 2px solid $focus;
157+
outline-offset: 1px;
166158
}
167159

168160
//----------------------------------------------

0 commit comments

Comments
 (0)