You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently NavigationMenu.Viewport does not expose the position or the width of the active trigger, which makes it difficult to position the submenu if the subemenu is smaller than the navigation bar. Currently it is possible hack your way around this by using the NavigationMenu.Indicator like i have done here however this does lead to other issues like setting min-width and text appearing on wrong places when mounting.
Feature request
Overview
Currently
NavigationMenu.Viewport
does not expose the position or the width of the active trigger, which makes it difficult to position the submenu if the subemenu is smaller than the navigation bar. Currently it is possible hack your way around this by using theNavigationMenu.Indicator
like i have done here however this does lead to other issues like settingmin-width
and text appearing on wrong places when mounting.Examples in other libraries
I guess this library already has the logic for it. packages/react/navigation-menu/src/NavigationMenu.tsx
Who does this impact? Who is this for?
This is for people who need to integrate submenu navigation which are smaller than the navbar.
Additional context
You can see what I mean on regels.overheid.nl
The text was updated successfully, but these errors were encountered: