-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add missing aria-haspopup attribute to the buttons to set and replace the featured image #63360
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: +21 B (0%) Total Size: 1.75 MB
ℹ️ View Unchanged
|
Flaky tests detected in 5cdfe43. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9876370743
|
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.
LGTM
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!
… the featured image (WordPress#63360) * Add aria-haspopup attribute to featured image buttons. * Improve featured image button labeling. Co-authored-by: afercia <afercia@git.wordpress.org> Co-authored-by: up1512001 <up1512001@git.wordpress.org> Co-authored-by: talldan <talldanwp@git.wordpress.org>
Fixes #63359
What?
The buttons to set and replace the featured image do open a dialog but miss to inform screen reader users about it.
Additionally, when the featured image is set, the button aria label only says:
Edit or replace the featured image
There is no mention anywhere this is the featured image. No heading, no other text.
Why?
it is important to inform users a toggle button will open a dialog.
It is important to calrify this is the post featured image.
How?
Add missing
aria-haspopup="dialog"
attribute.When a featured image is set, changes the button aria-label from
Edit or replace the image
toEdit or replace the featured image
.Testing Instructions
Edit or replace the featured image
.Testing Instructions for Keyboard
Screenshots or screencast
Before:
After: