-
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
Add hasBlockSelected check when collapsing center header area #56219
Conversation
On the site editor with top toolbar mode on, you could arrive at a state with no block toolbar and no cenntral area. We should only collapse the central area when there is also a block selected.
Size Change: +6 B (0%) Total Size: 1.72 MB
ℹ️ View Unchanged
|
I can confirm the PR fixes the issue above:
|
Flaky tests detected in 9c7ae35. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7105445003
|
The file no longer exists after the "great unification" and I think this issue was resolved via #65839. |
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 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. |
@jeryj, I'm going to close this PR. |
What?
On the site editor with top toolbar mode on, you could arrive at a state with no block toolbar and no central area. We should only collapse the central area when there is also a block selected.
Why?
The central area was hidden when it should be showing.
How?
Check for
hasBlockSelected
before collapsing this area.Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast