Skip to content
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

Gallery: Refactor "Settings" panel of Gallery block to use ToolsPanel instead of PanelBody #67904

Open
wants to merge 6 commits into
base: trunk
Choose a base branch
from

Conversation

yogeshbhutkar
Copy link
Contributor

@yogeshbhutkar yogeshbhutkar commented Dec 13, 2024

Fixes: #67893

What?

This PR introduces the usage of ToolsPanel instead of PanelBody inside the Settings panel of Gallery Block.

Why?

This PR is a part of #67813 which standardizes the usage of ToolsPanel inside Block Inspector Settings

How?

PanelBody is replaced with the corresponding ToolsPanel component.

Testing Instructions

  1. Insert a Gallery Block.
  2. Notice the presence of ToolsPanel component.
  3. Try to reset the updated values to test the reset functions.

Screencast

Screen.Recording.2024-12-13.at.1.04.16.PM.mov

@yogeshbhutkar yogeshbhutkar marked this pull request as ready for review December 13, 2024 08:55
Copy link

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 props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: yogeshbhutkar <[email protected]>
Co-authored-by: fabiankaegy <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@yogeshbhutkar
Copy link
Contributor Author

This PR is now ready to be reviewed.

CC: @fabiankaegy

@fabiankaegy fabiankaegy added [Type] Enhancement A suggestion for improvement. [Block] Gallery Affects the Gallery Block - used to display groups of images labels Dec 13, 2024
@yogeshbhutkar
Copy link
Contributor Author

Fixed failing unit tests for mobile.

Credits: #67957 (review)
CC: @fabiankaegy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Gallery Affects the Gallery Block - used to display groups of images [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor "Settings" panel of Gallery block to use ToolsPanel instead of PanelBody
2 participants