Skip to content

Commit d9445e1

Browse files
abbeyhrtjnm2377
andauthored
fix(components): add outline-offset to radio button focus styles (#10048)
* fix(react): add border between focus and radio button * chore(react): remove unnecessary comments Co-authored-by: Josefina Mancilla <32556167+jnm2377@users.noreply.github.com>
1 parent 963eb58 commit d9445e1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/components/src/components/radio-button/_radio-button.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@
134134
.#{$prefix}--radio-button:focus
135135
+ .#{$prefix}--radio-button__label
136136
.#{$prefix}--radio-button__appearance {
137-
box-shadow: 0 0 0 2px $focus;
138-
outline: 1px solid transparent;
137+
outline: 2px solid $focus;
138+
outline-offset: 1.5px;
139139
}
140140

141141
// Skeleton State

packages/styles/scss/components/radio-button/_radio-button.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ $radio-border-width: 1px !default;
144144
.#{$prefix}--radio-button:focus
145145
+ .#{$prefix}--radio-button__label
146146
.#{$prefix}--radio-button__appearance {
147-
box-shadow: 0 0 0 2px $focus;
148-
outline: 1px solid transparent;
147+
outline: 2px solid $focus;
148+
outline-offset: 1.5px;
149149
}
150150

151151
// Skeleton State

0 commit comments

Comments
 (0)