-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Remove pattern override dropdown from block toolbar icon #73053
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
base: trunk
Are you sure you want to change the base?
Conversation
This message feels unhelpful and confusing. At one point it may have been more helpful. I can edit the field by interacting with it, so the message is confusing to me.
|
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. |
|
|
||
| const isDefaultEditingMode = | ||
| getBlockEditingMode( clientIds[ 0 ] ) === 'default'; | ||
| const _hideTransformsForSections = |
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.
Removed the _ as this is only used when we have a const naming conflict. These aren't exposed from the selector, so we can use the default naming.
| ( hasBlockStyles || canRemove ) && | ||
| ! hasTemplateLock; | ||
|
|
||
| const _showPatternOverrides = hasPatternOverrides && hasParentPattern; |
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.
We don't need this check anymore, as it came after the showBlockSwitcher check anyways
| const showBlockSwitcher = | ||
| ! hideTransformsForSections && |
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.
Same as above, no need for the _ prefix.
| const { getActiveBlockVariation } = select( blocksStore ); | ||
|
|
||
| const _isSingleBlock = clientIds.length === 1; | ||
| const isSingleBlock = clientIds.length === 1; |
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.
Remove _
| const blockType = getBlockType( blockName ); | ||
|
|
||
| if ( _isSingleBlock ) { | ||
| if ( isSingleBlock ) { |
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.
Remove _
|
Size Change: -396 B (-0.02%) Total Size: 2.45 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in 48ab96f. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/19139946619
|
I'm curious about this. Can you explain a little more about why it's not helpful? Is it not accurate? Is there a need for some UX explaining what's happening? |
mikachan
left a comment
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.
This works as described, but a +1 to @getdave's comment: should we improve the message rather than remove it?
|
For updating the message vs removing the message, can we discuss on #73054? |
What?
Closes #73054
The Block Toolbar Icon message for synced pattern overrides is not helpful. This PR removes the message.
Why?
UX quality
How?
Removes the component, file, and related tests.
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast