-
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 supports: ensure tools panel dropdown are visible on mobile #62896
Block supports: ensure tools panel dropdown are visible on mobile #62896
Conversation
…that returns different popover props depending on the viewport width
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. |
Size Change: +92 B (+0.01%) Total Size: 1.76 MB
ℹ️ View Unchanged
|
Flaky tests detected in 27c2443. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9690027885
|
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.
Tests well for me and the changes make sense.
Should it be backported to 6.6?
Thanks for testing @talldan I guess it's worth a shot. I'll add the label. I imagine it's been in WordPress 6.4-6.5... or since, at the earliest, Dec 19, 2023, when the original Gutenberg PR was merged. |
…2896) * Remove the const `TOOLSPANEL_DROPDOWNMENU_PROPS` in favour of a hook that returns different popover props depending on the viewport width * Remove offset completely * Add to block support panels * Replace in block library. Co-authored-by: ramonjd <ramonopoly@git.wordpress.org> Co-authored-by: talldan <talldanwp@git.wordpress.org>
I just cherry-picked this PR to the wp/6.6 branch to get it included in the next release: 5640c95 |
What?
Ensures Tools Panel dropdowns in mobile view appear on-screen.
They're currently positioned to the left of the sidebar in desktop since #55785
Why?
Because of a large offset value, Tools Panel dropdowns in mobile view appear off-screen.
How?
Remove the const
TOOLSPANEL_DROPDOWNMENU_PROPS
in favour of a hook that returns different popover props depending on the viewport width.Testing Instructions
See #55785, which introduced the constant, to ensure there are no regressions.
This PR also updates the Image and Query blocks in the block library, check the Tools Panels for both these as well (please 😄 )
Screenshots or screencast
Desktop (no regressions)