Skip to content

Commit 4ba9a62

Browse files
committed
refactor: improve header navigation styles and remove unnecessary elements
1 parent a28e187 commit 4ba9a62

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

components/navigation/header-nav.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ export function HeaderNav({ items }: HeaderNavProps) {
4141
key={item.href}
4242
href={item.href}
4343
aria-current={isActive ? "page" : undefined}
44-
className={`group relative inline-flex h-10 items-center gap-2 px-1 text-sm font-medium transition ${
44+
className={`group inline-flex h-10 items-center gap-2 px-1 text-sm transition ${
4545
isActive
46-
? "text-foreground"
47-
: "text-(--muted) hover:text-foreground"
46+
? "font-bold text-foreground"
47+
: "font-medium text-(--muted) hover:font-semibold hover:text-foreground"
4848
}`}
4949
>
5050
<Icon
@@ -56,12 +56,6 @@ export function HeaderNav({ items }: HeaderNavProps) {
5656
}`}
5757
/>
5858
<span>{item.label}</span>
59-
<span
60-
aria-hidden
61-
className={`absolute inset-x-1 -bottom-1 h-0.5 rounded-full bg-[#ff0084] transition-opacity ${
62-
isActive ? "opacity-100" : "opacity-0 group-hover:opacity-70"
63-
}`}
64-
/>
6559
</Link>
6660
);
6761
})}

0 commit comments

Comments
 (0)