Repository navigation
Navigation Menu: Show submenus only on select in the editor. - #29869
Conversation
|
Size Change: +48 B (0%) Total Size: 1.4 MB
ℹ️ View Unchanged
|
|
I have some worries about dictating the behavior of submenus while in the editor. With this PR we no long default to showing submenu's on hover in the editor, no matter the reality of how submenus actually work on the site's frontend. My expectation is that while editing the navigation block it should look and work just like it would on my actual site. And, I expect that at some point the navigation block will allow me to adjust the interactions myself. That is, I expect some day to have a setting like:
When that day comes there would be confusion if the editor overrides the interaction. Perhaps I'm worrying to much, too soon. But these are the things that keep me awake at night. -- I believe the discussion in #25012 is that the submenu should still appear when it's parent is hovered — but only if the Navigation block (or one of it's children) is selected. I still believe this to be the best option. -- I noticed that turning off the "show submenu indicators" now leads to a situation where it's impossible to notice what menu's have submenus without first clicking; Previous to this PR you could hover the item to see if it had a submenu. |
97ffca2 to
015ab39
Compare
Alright, I think I have that now: The CSS is a little more gnarly, but I've added a comment. I think this is ready to move on from draft state. |
89e9e89 to
522806d
Compare
draganescu
left a comment
There was a problem hiding this comment.
I have tested his and I think it works as best as possible with separating the interaction model between the block and the editor.

Description
This PR does two things.
For the 2nd item, I'm not entirely sure I understood correctly the intended behavior here, so I have marked this PR as draft until I can get a sanity check that I didn't misunderstand something.
GIFs:
Please, notably on the 2nd gif showing expanding of submenu items on the navigation screen, let me know whether this is the correct behavior, as it seems right to me.
How has this been tested?
Please test a navigation block with submenus. Submenus should only show up when you click the parent item first. Frontend should be the same, and show them on hover or focus.
Please test the navigation screen and verify that submenus behave as they should.
Checklist: