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

Table of Contents Block: Refactor settings panel to use ToolsPanel #67964

Conversation

Sukhendu2002
Copy link
Contributor

Part of: #67813

What?

Refactored Table of Contents Block code to include ToolsPanel instead of PanelBody.

Screenshots or screencast

Before After
image image

@Sukhendu2002 Sukhendu2002 marked this pull request as ready for review December 13, 2024 10:27
Copy link

github-actions bot commented Dec 13, 2024

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: Sukhendu2002 <[email protected]>
Co-authored-by: t-hamano <[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.

@fabiankaegy
Copy link
Member

@Sukhendu2002 can you resolve the conflict in this PR ? :)

@Sukhendu2002
Copy link
Contributor Author

Hi @fabiankaegy, I resolved the conflicts, Feel free to take a look whenever you have time. Thanks!

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! I left just one suggestion and it is working as expected 👍

packages/block-library/src/table-of-contents/edit.js Outdated Show resolved Hide resolved
@Sukhendu2002
Copy link
Contributor Author

@t-hamano thanks for the feedback, I have updated the PR accordingly.

@t-hamano t-hamano merged commit 1284a26 into WordPress:trunk Jan 13, 2025
62 checks passed
@github-actions github-actions bot added this to the Gutenberg 20.1 milestone Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Table of contents (experimental) Affects the Table of contents Block [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor "Settings" panel of Table of Contents block to use ToolsPanel instead of PanelBody
3 participants