Skip to content

Commit

Permalink
fix: have list item handle color changes
Browse files Browse the repository at this point in the history
  • Loading branch information
specter-flq committed Jan 29, 2025
1 parent 6d83eac commit c428f95
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const MainNavListItem: FC<{ children: ReactNode; route?: string }> = ({ children

return (
<li
className={`h-10 px-2 mx-2 flex items-center ${isActiveRoute ? 'text-primary bg-neutral-light-4' : 'text-neutral-dark-0 dark:text-neutral-light-1'} cursor-pointer rounded`}>
className={`h-10 px-2 mx-2 flex items-center ${isActiveRoute ? 'text-primary bg-neutral-light-4' : 'text-neutral-dark-0 dark:text-neutral-light-1 hover:text-secondary dark:hover:text-secondary-variant-2 '} cursor-pointer rounded`}>
{children}
</li>
);
Expand All @@ -56,7 +56,7 @@ const MainNavItemAction: FC<{ onClick: () => void; children: ReactNode; isMenuEx
<div
role='button'
onClick={onClick}
className={`h-10 ${isMenuExpanded ? 'w-full' : 'w-auto'} absolute left-4 flex items-center gap-x-2 hover:text-secondary dark:hover:text-secondary-variant-2 hover:underline `}>
className={`h-10 ${isMenuExpanded ? 'w-full' : 'w-auto'} absolute left-4 flex items-center gap-x-2 hover:underline `}>
{children}
</div>
);
Expand All @@ -72,7 +72,7 @@ const MainNavItemLink: FC<{ route: string; children: ReactNode; isMenuExpanded:
// Note: The w-full terniary is to avoid the hover area to overflow out of the nav when its collapsed
<RouterLink
to={route as string}
className={`h-10 ${isMenuExpanded ? 'w-full' : 'w-auto'} absolute left-4 flex items-center gap-x-2 hover:text-secondary dark:hover:text-secondary-variant-2 hover:underline`}
className={`h-10 ${isMenuExpanded ? 'w-full' : 'w-auto'} absolute left-4 flex items-center gap-x-2 hover:underline`}
{...rest}>
{children}
</RouterLink>
Expand Down

0 comments on commit c428f95

Please sign in to comment.