Skip to content

Commit

Permalink
[v3] enable outline: 'none' only for :focus-visible state, to fix…
Browse files Browse the repository at this point in the history
… double ring in Firefox (#2768)

enable `outline: 'none'` only for `:focus-visible` state, to fix double ring in Firefox
  • Loading branch information
dimaMachina committed Mar 6, 2024
1 parent efec0a9 commit eeb4c4c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/blue-suits-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'nextra-theme-docs': patch
---

enable `outline: 'none'` only for `:focus-visible` state, to fix double ring in Firefox
2 changes: 1 addition & 1 deletion packages/nextra-theme-docs/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ summary,
button,
input,
[tabindex]:not([tabindex='-1']) {
@apply _outline-none;
&:focus-visible {
@apply _outline-none;
@apply _ring-2 _ring-primary-200 _ring-offset-1 _ring-offset-primary-300 dark:_ring-primary-800 dark:_ring-offset-primary-700;
}
}
Expand Down

0 comments on commit eeb4c4c

Please sign in to comment.