Skip to content

feat (navigationMenu): allow dynamic positioning of viewport #555

@KamehamehaNudel

Description

@KamehamehaNudel

Is your feature request related to a problem? Please describe.
If you use the NavigationMenu component, currently the Viewport component is always positioned in the middle. I think is a common usecase for collapsed Navbar style navigation.

Image

Describe the solution you'd like
I would like if there was some optional prop on the NavigationMenu components, which allows for the viewport to orient itself/move along the current active trigger.

Describe alternatives you've considered
I considered the MenuBar component as an alternative solution. However there are Theo issues preventing it from working properly for this case:

  • no proper support for vertical orientation, meaning keyboard navigation is incorrect
  • the first menu has to be triggered via click

Additional context
Solving the issue on menubar would probably be equally useful. Not sure which is the more fitting component for this pattern.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions