Make sure "add page" button label only appears once#71710
Make sure "add page" button label only appears once#71710tellthemachines merged 1 commit intotrunkfrom
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: +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)