-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Columns block: Don't use ToolsPanelItem for Columns setting #70210
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
Conversation
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: +1 B (0%) Total Size: 1.85 MB
ℹ️ View Unchanged
|
Flaky tests detected in 022bece. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/15236120082
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense 👍
At this point, I wonder if we should just remove this control. Ref: #9009.
…s#70210) Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org> Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org> Co-authored-by: fabiankaegy <fabiankaegy@git.wordpress.org>
What?
ToolsPanel
instead ofPanelBody
#67918Why?
Because the "Columns" setting is not a block attribute but represents the actual number of columns, it is difficult to define what the default is. Furthermore, if we reset the Columns setting, we lose focus.
How?
There are several possible approaches, but I think it's better not to use
ToolsPanelItem
for this setting. This will prevent the reset, and there's no need to add a new API to theToolsPanelItem
component itself.Testing Instructions
Screenshots or screencast