-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Make sure "add page" button label only appears once #71710
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. |
ramonjd
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.
|
Size Change: +29 B (0%) Total Size: 1.94 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in 3ccec97. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/17787042522
|
|
Thanks @tellthemachines for continuing to test thoroughly in the text only version of the interface 👏 |
No worries, I do it for purely selfish reasons 😄 (it's my preferred mode) |


What?
Fixes Add page button introduced in #71192 when button text labels are enabled.
The addition of "title" to
ToolbarButtonadds it as an aria-label to the underlying button, and aria-labels are output when text labels are enabled. Given the button has text, it doesn't need an aria-label.This PR removes the aria-label, and also makes a small adjustment to text label styles so they don't take effect when the button has both icon and text.
Testing Instructions
"contentRole": trueto the Nav block supports (or follow the testing steps in Add Navigation Add Page Button #71192)