-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Update synced pattern language from "Detach" to "Disconnect pattern" #73105
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
Changes the block toolbar option from "Detach" to "Disconnect pattern" for synced patterns to improve clarity for users. The term "detach" was technically accurate but lacked clarity for both sighted and visually impaired users. Updates: - Pattern manage button component - Reusable blocks manage button component - E2E test assertions Fixes #54625 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
|
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: +10 B (0%) Total Size: 2.47 MB
ℹ️ View Unchanged
|
| } | ||
| } } | ||
| > | ||
| { __( 'Detach' ) } |
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.
There are also some e2e tests that wil need to be updated. You can look for 'Detach there and update accordingly.
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.
Just updated! Can you re-review?
tyxla
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.
Thanks @annezazu, the new one makes more sense 🚀
| // Disconnect the paragraph from the header template part. | ||
| await editor.selectBlocks( templatePartWithParagraph ); | ||
| await editor.clickBlockOptionsMenuItem( 'Detach' ); | ||
| await editor.clickBlockOptionsMenuItem( 'Disconnect pattern' ); |
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.
Actually, this is an unrelated one, it's for converting template parts to blocks; we should revert that change
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.
Pushed a change for this in 3c00f6c
tyxla
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.
Good to go 🚀 Thanks!
|
Flaky tests detected in 3c00f6c. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/19197597513
|
|
Maybe it's just me but I don't really like the "disconnect" wording. Maybe it works in English but I prefer "detach" personally or "unlink" or something like that. |
Why?
The term "detach" was technically accurate but lacked clarity for both sighted and visually
impaired users. "Disconnect pattern" is more descriptive of the action being performed - breaking a pattern from the source. I think it's important to include "pattern" at the end here rather than just "Disconnect", especially when we already have a "Manage patterns" option. As is, it's not even clear what is being detached!
How?
Changed the label text in:
packages/patterns/src/components/patterns-manage-button.js)packages/reusable blocks/src/components/reusable-blocks-menu-items/reusable-blocks-manage-button.js)test/e2e/specs/editor/various/patterns.spec.jsTesting Instructions
Testing Instructions for Keyboard
Shift+Alt+Zor arrowkeys
Before:
After: