-
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
Background image: remove toolspanel placeholder component #64242
Conversation
…tire background image component set. The dummy tools panel was originally there to allow feature toggling, which hides and shows non-default toolspanel controls. However, now that the background panel is in a popover, space is not so much of an issue. Furthermore for now, background images and their properties can be treated as a control group.
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: -39 B (0%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
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.
Good catch! This is testing well for me:
✅ Resetting site wide background images works as expected
✅ Resetting block-level-in-globals images works as expected
✅ Resetting individual block instance background images works as expected
LGTM! 🚀
Thank you @andrewserong !! |
What? How?
Part of:
This PR removes the dummy tools panel, and uses it to wrap the entire background image component set.
Context and more info: https://github.com/WordPress/gutenberg/pull/63216/files#r1701929926
Why?
The dummy tools panel was originally there to allow feature toggling, which hides and shows non-default
ToolsPanel
controls.However, now that the background panel is in a popover, space is not so much of an issue.
Furthermore for now, background images and their properties can be treated as a control group.
Props to @mirka for calling it out.
Testing Instructions
There should be no regressions.
You should be able to reset all background image values using the ToolsPanel ellipsis menu RESET item.
Please check:
2024-08-05.11.57.18.mp4