Skip to content

Commit f781f7f

Browse files
authored
Only show focus outline for Radio if focus-visible (#6603)
1 parent 0c21301 commit f781f7f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.changeset/soft-islands-warn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/react": patch
3+
---
4+
5+
Only show focus outline for `Radio` if `focus-visible`

packages/react/src/Radio/Radio.module.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
}
2323
}
2424

25-
&:focus,
26-
&:focus-within {
25+
&:focus-visible {
2726
@mixin focusOutline 2px;
2827
}
2928

0 commit comments

Comments
 (0)