-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Block Editor: Improve the Select/Navigation mode and keep it persistent #65055
Conversation
…nt after making changes
Size Change: -25 B (0%) Total Size: 1.78 MB
ℹ️ View Unchanged
|
That feels like a contradiction to me. So I would like to clarify what you mean. For me when you say nested groups shouldn't be selectable, it means "no drill down" and just top level selectable with leafs editable (like synced pattern with overrides). But what happens for things like "Media & Text" block, it's also a container block but I'm guessing you would want to be able to select it to change position of the image or the image itself... Btw, how do I reproduce the last screenshot you shared above? Is it a synced pattern? Something else? |
Add |
The thing I like about the approach in this PR is that you can still insert inner blocks for things like Buttons and Lists. In principle, I also see the argument for reusing the existing "Select" mode and not adding any more "modes" to the editor. If we're aiming for a simplified editing experience however, I would not want to have to see all the Group blocks. It's too overwhelming even with the "click through". I feel the I also don't like the custom toolbar of the existing It's good that we're exploring alternative UX approaches in all these PRs. For me, it's critical that we devise the right experience before we get "bogged down" in implementation details. |
I'd like this as an alternative to #65027 if clicking on a content block (Paragraph, Image, etc.) selected that block immediately instead of requiring you to drill down and if the List View appeared flattened. Maybe it doesn't even need to be a separate mode, just enabled on all patterns. |
I'd still expect to be able to edit content, not any layout elements. For example, for Cover both Media & Text I'd expect the "Replace" button in the toolbar, for replacing media, and to be able to select the contents of them. |
I'm going to close this. Happy if this sparked some discussion and thoughts about the most viable approach. Let's see where you folks take this next. |
Related to #64866.
Alternative to #65027
Still pretty exploratory as well.
This PR takes an alternative approach to #65027. Instead of introducing a new mode that mixes multiple things (content only...), it starts from the premise that the existing "Select mode" can already be a good mode to a design tool. By making small tweaks to how it behaves we can improve the situation a lot and even consider this mode as the default in some situations later (site editor...)
So what this PR focuses on is the following:
Downside:
Personally, I feel this is already an improvement over trunk for the "select" mode so I'm going to keep this PR small to try to get some feedback on this part only.
That said, if this is a direction we want to pursue, there's a lot of things we can improve here and consider as follow-ups:
Testing instructions