Skip to content

Commit 47d81b8

Browse files
committed
style: refine header navigation styles for improved clarity
- Updated active link styling in the header to enhance visibility. - Adjusted the background color for active links and removed the underline indicator for a cleaner look. - Ensured the active state does not apply to the '/docs' route for better navigation experience.
1 parent 63cee1d commit 47d81b8

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

packages/docs/components/header.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,19 @@ export function Header() {
3737
{/* Desktop Navigation */}
3838
<nav className="hidden md:flex items-center space-x-1 text-sm font-medium">
3939
{navigation.map((item) => {
40-
const isActive = pathname?.startsWith(item.href);
40+
const isActive = pathname?.startsWith(item.href) && item.href !== '/docs';
4141
return (
4242
<Link
4343
key={item.href}
4444
href={item.href}
4545
className={cn(
4646
'relative px-4 py-2 rounded-lg transition-all duration-200',
4747
isActive
48-
? 'text-foreground bg-muted/50'
48+
? 'text-foreground bg-muted'
4949
: 'text-muted-foreground hover:text-foreground hover:bg-muted/30'
5050
)}
5151
>
5252
{item.name}
53-
{isActive && (
54-
<div className="absolute bottom-0 left-1/2 -translate-x-1/2 w-1 h-1 rounded-full bg-primary" />
55-
)}
5653
</Link>
5754
);
5855
})}

0 commit comments

Comments
 (0)