-
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
Keep submenus open onselect in the editor. #29713
Conversation
Size Change: +2 B (0%) Total Size: 1.4 MB
ℹ️ View Unchanged
|
Looks like this one also fixes a small regression with submenus in trunk, so it would be good to land. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests well for me @jasmussen and feels much better ! If folks were in agreement with the behavior change this should be good to go.
wp-env is having some issues, causing CI to fail, so @jasmussen you may want to hold off on merging until that's fixed.
submenuopen.mp4
@jasmussen Would appreciate if you can test the navigation editor with a non FSE theme until #28874 is resolved. At the moment it's not possible for you to tell if the navigation editor is working as expected with that bug while using TT1-blocks. (but thank you for testing it 😄 ) |
c424eb1
to
db8fc3e
Compare
Awesome, thank you for re-testing 🙇♂️ |
Description
This PR refactors the navigation block CSS a little bit more, refines a width rule for submenus, and separates style vs. editor CSS slightly better, keeping the focus-within behavior on the frontend, but adding is-selected to the editor view.
The net result is a little less CSS, fewer rules, and easier editing in the editor.
Before, editor:
Before, frontend:
After, editor:
After, frontend:
This PR should not affect the separate editor. Before:
After:
How has this been tested?
Please test a navigation menu, frontend and editor, with menu items and submenu items.
Verify that menu items have an appropriate minimum width, and work well with tabbing and clicking in the editor. Notably you should now be able to click a submenu item, then click elsewhere to set focus there, and the submenu should remain open.
Checklist: