Skip to content

Commit eeb4c4c

Browse files
author
Dimitri POSTOLOV
authoredMar 6, 2024
[v3] enable outline: 'none' only for :focus-visible state, to fix double ring in Firefox (#2768)
enable `outline: 'none'` only for `:focus-visible` state, to fix double ring in Firefox
1 parent efec0a9 commit eeb4c4c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

‎.changeset/blue-suits-scream.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'nextra-theme-docs': patch
3+
---
4+
5+
enable `outline: 'none'` only for `:focus-visible` state, to fix double ring in Firefox

‎packages/nextra-theme-docs/css/styles.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ summary,
2727
button,
2828
input,
2929
[tabindex]:not([tabindex='-1']) {
30-
@apply _outline-none;
3130
&:focus-visible {
31+
@apply _outline-none;
3232
@apply _ring-2 _ring-primary-200 _ring-offset-1 _ring-offset-primary-300 dark:_ring-primary-800 dark:_ring-offset-primary-700;
3333
}
3434
}

0 commit comments

Comments
 (0)