-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 aria-label to describe action of featured image update button #10869
Conversation
After looking at some of the other label, I removed the prefix in 68ae546 so it's consistent with other labels. |
In case you didn't know about it and something we forget often (me included) is to add an entry in the CHANGELOG of the modified packages each time we do a change. This helps the person releasing the npm packages later. Thanks :) |
Nice improvement @ocean90 👍 See also the related #1520 / #10482 for further improvements. Rationale: in an editing context like an editor, users need to know which is the image actually set. This is different from the purpose the image has in the front-end. #10482 tries to add a reference to the image alt (if set) or the image file with a wording along the lines of |
@afercia Thanks for the feedback and the links to the issues! Just to get it right, the label should mention the alt/name of the current selected image? I have set the actual |
Yes because the aria-label on the wrapping button overrides the button content (which is the image alt)
If the image has an alt empty attribute (which is perfectly OK in most of the cases) I'd rather consider to inform users explicitly, using some wording similar to the one proposed in #10482. Maybe consider some coordination between the two PRs? |
I'm just worried that the button's primary action gets lost when the string is too long. |
What do we need to unblock this as it's state for 4.2. It's not technically API freeze, we can move for later but if It can be unblocked quickly, I'm fine keeping it. |
I think this can go in. Once #10960 is done I'm happy to improve the string if necessary. |
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 👍 Code wise
Description
Fixes #10867.
How has this been tested?
Activate screen reader text and verify that the label "Click to edit or update the image" is announced.
Currently unsure if "Click to" is necessary or "Edit or update the image" would be enough.