-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Add Boundary Mode to visualize block boundaries #69388
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
base: trunk
Are you sure you want to change the base?
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @orionp13. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Thanks for contributing, @Sukhendu2002! For issues like #66576, I recommend seeking feedback before moving on with the development. |
this mode need to be by default when editing like on elementor |
This is great. I strongly believe a toggle on/off outline or boundary is needed for complex page layouts. In older WP this was done with lots of psuedo elements to add borders around blocks and the UX was much better. However the downside was the extra markup and psuedo elements often conflicted with blocks that were using pseudo elements for some aspect of styling. Just today I'm fixing a content issue on multiple posts because a user didn't realize they nested a reusable block inside multiple group blocks and broke the layout due to styles attached to the group block. In the Editor it is nearly impossible for the typical user to understand what was wrong with the block structure because so many blocks are effectively invisible and they can't see them. Only someone experienced knows to look at the rendered HTML structure on the frontend or look at the block outline to decipher what was happening structurally. |
@@ -1582,6 +1582,10 @@ _Related_ | |||
|
|||
- toggleBlockMode in core/block-editor store. | |||
|
|||
### toggleBoundaryMode |
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.
I'd be supportive of this preference, but I think it should be called "showBlockBoundaries"
What?
Closes: #66576
This PR adds a new "Boundary Mode" that helps users visualise block boundaries during editing.
Testing Instructions
Screenshots or screencast
Screen.Recording.2025-03-03.at.3.57.34.PM.mov