-
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 Block: prevent submenu items from merging #30164
Comments
Oh no, this one was implemented as a feature 😄 Implemented in #21743. |
The button block does the same thing, and I think the two are very comparable and should work similarly. I suggest we need design feedback on this, as it seems more like a general editor behavior that should be made consistent across blocks. |
Oh whoa interesting! I think if it were more reversible this would be less jarring :D |
You can hit enter to split into two blocks again, but the original link url will be lost from the deletion of the block. |
Yeah :) To me, that feels less reversible. Plus once you do that there's no indication that a link is missing. |
Looping back on old issues and returned to this one seeing the same behavior in 5.9 (just to get a current snapshot): delete.nav.movI'd be curious to get more design thoughts on this as, to me, this is a pretty surprising thing to have happen. I can see this was originally implemented as a way to allow for an easier time deleting links. However, you can't easily undo this anymore (unless you hit undo) like you could before by separating the menu items back out as shown above. In my mind, nothing should happen upon taking this action. |
Yeah, that seems bad, seems like a regression of #18208. |
Noting that this came up during the FSE Outreach program's usability testing with main menu items when deleting using 6.0 and Gutenberg 13.6: menu.items.merging.movThis felt like a broken experience to the participant. |
Noting that is still present when testing in WP6.3 |
Still present in 6.7 RC1. |
Confirmed. It would be good to get this one fixed. It will be related to Rich Text merging functionality. |
I would like to chime in to say I don't think this is a bug. It respects the flow within text blocks. Would it really be better if pressing backspace would have no effect? |
I think the problem is if you have the block selected vs if you have a cursor within the label's richtext. With the former backspace will delete the entire block. With the later backspace will delete a character (unless it's empty in which case it merges with previous). |
A good angle to think of it could be exactly what Dave described, deciding whether this is a writing flow feature where merging is desired, or whether navigation items should count as non-text blocks like an image, where it gets deleted when pressing backspace. It seems the latter works well for Button blocks inside of the Buttons container, any reason navigation items can't work the same? |
Description
If you add multiple sub menu items and then hit backspace at the beginning of the second item, it merges with the first.
Step-by-step reproduction instructions
Expected behaviour
I expect the items to stay separate.
Actual behaviour
They merged :)
Screenshots or screen recording (optional)
merging.mov
WordPress information
Device information
The text was updated successfully, but these errors were encountered: