Skip to content

Commit 8620c14

Browse files
committed
fix: header link coloring
1 parent 86a69ad commit 8620c14

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

apps/portal/src/app/Header.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ export function Header() {
284284
}}
285285
>
286286
<NavLink href={link.href} name={link.name} />
287-
{pathname === link.href && (
287+
{pathname.includes(link.href) && (
288288
<div className="bg-violet-700 h-1 left-0.5 right-0.5 rounded-full absolute -bottom-0.5" />
289289
)}
290290
</li>
@@ -510,7 +510,9 @@ function NavLink(props: {
510510
<Link
511511
className={clsx(
512512
"font-medium text-base transition-colors hover:text-foreground xl:text-sm",
513-
pathname === props.href ? "text-foreground" : "text-muted-foreground ",
513+
pathname.includes(props.href)
514+
? "text-foreground"
515+
: "text-muted-foreground",
514516
props.icon ? "flex flex-row gap-3" : "",
515517
)}
516518
href={props.href}
@@ -519,7 +521,7 @@ function NavLink(props: {
519521
>
520522
{props.icon ? (
521523
<>
522-
<props.icon className="size-6 text-muted-foreground" />
524+
<props.icon className="size-6" />
523525
<span className="my-auto">{props.name}</span>
524526
</>
525527
) : (

0 commit comments

Comments
 (0)