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

Site Title Block: Refactor settings panel to use ToolsPanel #67898

Conversation

Sukhendu2002
Copy link
Contributor

Part of: #67813

What?

Refactored Site Title Block code to include ToolsPanel instead of PanelBody.

Screenshots or screencast

Before After
image image

@fabiankaegy fabiankaegy added [Type] Enhancement A suggestion for improvement. [Block] Site Title Affects the Site Title Block labels Dec 12, 2024
@fabiankaegy
Copy link
Member

@Sukhendu2002 there is a Unit Test that needs to be updated here

@Sukhendu2002 Sukhendu2002 reopened this Dec 13, 2024
@Sukhendu2002 Sukhendu2002 marked this pull request as ready for review December 13, 2024 12:01
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: Sukhendu2002 <[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.

@Sukhendu2002
Copy link
Contributor Author

@fabiankaegy I believe the issue was with a GitHub Action. I reran the tests, and they all passed.

Copy link
Member

@fabiankaegy fabiankaegy left a comment

Choose a reason for hiding this comment

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

This works as expected 👍 :)

CleanShot.2024-12-13.at.15.29.15.mp4

@fabiankaegy fabiankaegy merged commit c8cdff3 into WordPress:trunk Dec 13, 2024
133 of 134 checks passed
@github-actions github-actions bot added this to the Gutenberg 20.0 milestone Dec 13, 2024
yogeshbhutkar pushed a commit to yogeshbhutkar/gutenberg that referenced this pull request Dec 18, 2024
…ad of PanelBody (WordPress#67898)

Co-authored-by: Sukhendu2002 <[email protected]>
Co-authored-by: fabiankaegy <[email protected]>
yogeshbhutkar pushed a commit to yogeshbhutkar/gutenberg that referenced this pull request Dec 18, 2024
…ad of PanelBody (WordPress#67898)

Co-authored-by: Sukhendu2002 <[email protected]>
Co-authored-by: fabiankaegy <[email protected]>
} }
>
<ToolsPanelItem
hasValue={ () => isLink !== false }
Copy link
Contributor

Choose a reason for hiding this comment

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

The default value for isLink is true, so having a value means that the value is false.

Therefore, the boolean value here should be reversed, or this setting won't reset properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Site Title Affects the Site Title Block [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor "Settings" panel of Site Title block to use ToolsPanel instead of PanelBody
3 participants