feat: updated in-page side nav active link style

This commit is contained in:
bitroy
2024-06-06 09:48:36 +05:30
parent 821cbbdb07
commit 8c7769a40a

View File

@@ -42,10 +42,10 @@ const SideNavigation = ({ pathname }) => {
<Link
href={`#${heading.id}`}
onClick={() => setActiveId(heading.id)}
className={`font-normal text-slate-900 dark:text-white ${
className={`${
heading.id === activeId
? "rounded-r-md font-semibold text-blue-800 transition dark:text-amber-300"
: ""
? "font-semibold text-blue-800 dark:text-amber-300"
: "font-normal text-slate-900 dark:text-white"
}`}>
{heading.text}
</Link>