Skip to content

Commit bf04f96

Browse files
authoredOct 9, 2024
add ring-inset for navbar links (#3404)
1 parent 72c84eb commit bf04f96

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
 

‎.changeset/thirty-geckos-repair.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'nextra-theme-docs': patch
3+
---
4+
5+
add ring-inset for navbar links

‎packages/nextra-theme-docs/src/components/navbar.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function NavbarMenu({
5353
cn(
5454
classes.link,
5555
classes.inactive,
56-
'max-md:_hidden _items-center _whitespace-nowrap _rounded _flex _gap-1.5',
56+
'max-md:_hidden _items-center _whitespace-nowrap _flex _gap-1.5 _ring-inset',
5757
focus && 'nextra-focusable'
5858
)
5959
}
@@ -159,7 +159,7 @@ export function Navbar({ items }: NavBarProps): ReactElement {
159159
key={href}
160160
className={cn(
161161
classes.link,
162-
'max-md:_hidden _whitespace-nowrap',
162+
'max-md:_hidden _whitespace-nowrap _ring-inset',
163163
!isActive || page.newWindow
164164
? classes.inactive
165165
: classes.active

0 commit comments

Comments
 (0)