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

Read More: Refactor settings panel to use ToolsPanel #67925

Merged

Conversation

SainathPoojary
Copy link
Contributor

@SainathPoojary SainathPoojary commented Dec 13, 2024

Issue: #67944
Part of #67813

What?

Update the Read More block to use the ToolsPanel and ToolsPanelItem components for settings management.

Screenshots or screencast

Before After
image image

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: SainathPoojary <[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 fabiankaegy added [Type] Enhancement A suggestion for improvement. [Block] Read More Affects the Read More Block labels Dec 13, 2024
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.

Thanks for the PR!

Almost everything is working correctly, but it would be a good idea to add the dropdownMenuProps to ensure that the drop-down menu is positioned on the left (Example).

@SainathPoojary SainathPoojary force-pushed the refactor-read-more-block-setting branch from 444e437 to c88d91b Compare January 15, 2025 08:14
@t-hamano
Copy link
Contributor

@SainathPoojary Could you rebase this PR? It should resolve the E2E test failure.

@SainathPoojary SainathPoojary force-pushed the refactor-read-more-block-setting branch from 14e29cc to e82af11 Compare January 17, 2025 09:06
@SainathPoojary
Copy link
Contributor Author

Hey @t-hamano, I’ve rebased the PR, and all checks are now passing. Please take a look whenever you have a moment.

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 for me and the code look good :) Thank you!

@fabiankaegy fabiankaegy merged commit ebab640 into WordPress:trunk Jan 17, 2025
63 checks passed
@github-actions github-actions bot added this to the Gutenberg 20.2 milestone Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Read More Affects the Read More Block [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor "Settings" panel of Read More block to use ToolsPanel instead of PanelBody
3 participants