Replies: 1 comment
-
|
I have a branch in my fork for this btw |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When making a group animation like
or
The hover is triggered from the entire list. The fix is to change the group name to something different (either change the NavigationMenuList group name or the NavigationMenuTrigger group). Either work but there is also a duplicate "group" class on the NavigationMenuTrigger that can be removed because the navigationMenuTriggerStyle function already has the "group" class.
or
function NavigationMenuList({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.List>) { return ( <NavigationMenuPrimitive.List data-slot="navigation-menu-list" className={cn( - "group flex flex-1 list-none items-center justify-center gap-1", + "group/menu-list flex flex-1 list-none items-center justify-center gap-1", className )} {...props} /> ); }I can make the PR too... Haven't made one on shadcn-ui yet but would love to make my first!
Beta Was this translation helpful? Give feedback.
All reactions