Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NavigationMenu orientation is ignored. #257

Open
dalechyn opened this issue Jan 3, 2024 · 0 comments
Open

NavigationMenu orientation is ignored. #257

dalechyn opened this issue Jan 3, 2024 · 0 comments

Comments

@dalechyn
Copy link

dalechyn commented Jan 3, 2024

const NavigationMenuList = React.forwardRef<
  React.ElementRef<typeof NavigationMenuPrimitive.List>,
  React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List>
>(({ className, ...props }, ref) => (
  <NavigationMenuPrimitive.List
    ref={ref}
    className={cn(
      'group flex flex-1 list-none items-center justify-center space-x-2',
      className,
    )}
    {...props}
  />
))

flex class being applied ignores the orientation property set on the NavigationMenu.

https://www.radix-ui.com/primitives/docs/components/navigation-menu#vertical

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant