-
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
Bundle the block selection clearer hook into the BlockCanvas component #54209
Conversation
Size Change: -44 B (0%) Total Size: 1.52 MB
ℹ️ View Unchanged
|
Flaky tests detected in ff56869. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6096684538
|
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.
The changes look good 👍
7e0a523
to
ff56869
Compare
Related #53874
What and why?
Gutenberg can be used as a platform/framework to build block editors. Mainly thanks to the @wordpress/block-editor package. That said, the experience today is not as straightforward as it can be. There can be a lot of small gotchas and hacks you need to do in order to achieve the desired result. One of these small things is that clicking the block canvas outside any block should clear the block selection.
This PR updates the BlockCanvas component to enable this behavior by default.
Testing Instructions
1- Check on the side of the selected block (or before the post title) to clear the block selection.