Skip to content

Conversation

@R1shabh-Gupta
Copy link
Contributor

@R1shabh-Gupta R1shabh-Gupta commented Aug 15, 2025

What?

Closes #71223

This PR refactors the Accordions and Accordion Item blocks to use the ToolsPanel component instead of the PanelBody component in their inspector controls.

Why?

This change aligns the Accordion block with the ongoing effort to standardize block inspector controls across Gutenberg using ToolsPanel. The ToolsPanel component provides a better user experience with reset capabilities, improved organization, and consistent UI patterns across all blocks.

Screenshots or screencast

Before

Accordions
Screenshot 2025-08-15 at 5 10 16 PM

Accordion List
Screenshot 2025-08-15 at 5 10 26 PM

After

After.mov

@R1shabh-Gupta R1shabh-Gupta changed the title refactor: replace PanelBody with ToolsPanel in Accordion blocks Accordion: Refactor settings panel to use ToolsPanel Aug 15, 2025
@R1shabh-Gupta R1shabh-Gupta marked this pull request as ready for review August 15, 2025 14:22
@github-actions
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: R1shabh-Gupta <[email protected]>
Co-authored-by: t-hamano <[email protected]>

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

@t-hamano t-hamano added [Type] Code Quality Issues or PRs that relate to code quality [Block] Accordion Affects the Accordion Block labels Aug 16, 2025
Copy link
Contributor

@t-hamano t-hamano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Everything is working as expected.

@R1shabh-Gupta
Copy link
Contributor Author

Hey @t-hamano,
I’ve made the requested changes. Whenever you get a chance, please take another look. Thanks!

@t-hamano t-hamano merged commit c307ce3 into WordPress:trunk Aug 16, 2025
67 checks passed
@github-actions github-actions bot added this to the Gutenberg 21.5 milestone Aug 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] Accordion Affects the Accordion Block [Type] Code Quality Issues or PRs that relate to code quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Accordions, Accoridon Item Block: use ToolsPanel instead of PanelBody

2 participants