Skip to content

Commit

Permalink
feat: hover on chevron
Browse files Browse the repository at this point in the history
  • Loading branch information
braianj committed Jul 11, 2024
1 parent b0fff9d commit 7d1d53b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/Navbar/MenuItem/MenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ export const MenuItem = (props: MenuItemProps) => {
onClick={(e: React.MouseEvent) => {
onToggleShowSubMenu(e, true, section)
}}
onMouseEnter={(e: React.MouseEvent) =>
!isMobile && onToggleShowSubMenu(e, true, section)
}
onMouseLeave={(e: React.MouseEvent) =>
!isMobile && onToggleShowSubMenu(e, false, section)
}
>
<ChevronIcon down={true} />
</div>
Expand Down

0 comments on commit 7d1d53b

Please sign in to comment.