Skip to content

Commit

Permalink
refactor Navbar component styles for active state; simplify class names
Browse files Browse the repository at this point in the history
  • Loading branch information
Precious-Macaulay committed Nov 13, 2024
1 parent ad14e3f commit f755a74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const NavLink: React.FC<NavLinkProps> = ({ to, label, Icon, active }) => (
to={to}
className={cn(
'w-fit custom-lg:w-full flex items-center justify-center custom-lg:justify-start px-2 custom-lg:px-3 py-2 rounded-full text-sm font-medium transition-all duration-300 ease-in-out',
active ? 'shadow-sm bg-orange-500 bg-clip-padding backdrop-filter backdrop-blur-sm bg-opacity-10 border border-orange-300 text-orange-900' : 'text-gray-700 hover:bg-gray-100 hover:text-black'
active ? 'bg-orange-500 bg-clip-padding backdrop-filter backdrop-blur-sm bg-opacity-10 border text-orange-900' : 'text-gray-700 hover:bg-gray-100 hover:text-black'
)}
>
<Icon className="h-5 w-5 transition-transform duration-200 hover:scale-110" strokeWidth={2.5} />
Expand Down

0 comments on commit f755a74

Please sign in to comment.