-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Navigation: Fix submenus not showing on click. #35660
Conversation
Size Change: -10 B (0%) Total Size: 1.07 MB
ℹ️ View Unchanged
|
I realized as I was working on this one, that we aren't very well handling nested submenus when the ancestor is set to open in click. It works, but the nested container of the submenu absorbs the click entirely, making its destination unreachable. This was an intentional trade-off for the top level item, but submenus probably need a different solution, such as always opening on hover/focus. I'll explore that separately. |
Closing this one in favor of #35716, which does the same and more, but better. |
Description
Fixes #35654. Maybe related to #35653.
Nested submenus did not show up when the navigation block was set to open on click. This was due to CSS that applied
overflow: hidden;
on submenus, "cropping off" the nested submenu. This PR fixes that:The visual style discrepancy in the above is unrelated to the issue, the theme in question styles the
a
, but not thebutton
.How has this been tested?
Create a menu with submenus and nested submenus. Ensure all pages added are published, not drafts. Set the menu to open on click:
![Screenshot 2021-10-15 at 09 28 04](https://user-images.githubusercontent.com/1204802/137449300-daeac68d-6360-4e15-a4ef-ea193a562498.png)
Here's some test content:
Please test that both in the editor and on the frontend, nested submenus open as intended, on click.
Hover should be unaffected, but for good measure, test that hover/focus to open nested submenus works as well.
Checklist:
*.native.js
files for terms that need renaming or removal).