Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

feat: underline on hover nav link #53

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/HeaderLink.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ const isActive = href === pathname || href === "/" + subpath?.[0]
href={href}
class:list={[
className,
"hover:underline underline-offset-8",
{
"text-neutral-900 font-semibold hover:text-gray-600 underline underline-offset-8": isActive,
"text-neutral-900 font-semibold underline": isActive,
},
]}
{...props}
Expand Down