Skip to content

Commit aac0b78

Browse files
author
zhongyangxun
committed
style: reset shadcn navigation-menu active bg accent and font bold
1 parent 22b9bae commit aac0b78

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/components/ui/navigation-menu.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,7 @@ function NavigationMenuLink({
129129
<NavigationMenuPrimitive.Link
130130
data-slot="navigation-menu-link"
131131
className={cn(
132-
"flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 data-[active=true]:bg-accent data-[active=true]:text-accent-foreground data-[active=true]:hover:bg-accent data-[active=true]:focus:bg-accent [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
133-
// csutom styles
134-
'data-[active=true]:font-bold',
132+
"flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground data-[active=true]:hover:bg-accent data-[active=true]:focus:bg-accent [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
135133
className,
136134
)}
137135
{...props}

0 commit comments

Comments
 (0)