Problem/Motivation
In reviewing #3076773-32: Edit Media button within WYSIWYG should include media label for screen readers, @rainbreaw had this to say:
I'm a little confused because I saw code in the patch referring to alt text, and was expecting to hear the alt text when it exists, but this will also work as far as resolving a blocker is concerned. It may be that I would have heard the alt text with a different screenreader configuration (e.g., NVDA on Firefox?).
This is a legitimate question, but poses a few technical concerns since not all media items can even have alt text. In that comment, Rain suggested opening a follow-up issue to discuss further, rather than blocking that issue on this concern, since the solution it implements is close enough, as they say, for jazz.
Proposed resolution
Decide if and how we want the Edit button in embedded media items to display alt text instead of the media item's label, and how to fall back for media items that do not have alt text (such as documents or remote videos).
Remaining tasks
Figure out a solution, then write a patch with tests and commit.
User interface changes
No visible changes, but the the Edit button might be clearer to users on screen readers or other assistive tech.
API changes
Likely none.
Data model changes
None anticipated.
Release notes snippet
TBD
Comments
Comment #3
xjmPromoting to major as per #2834729: [META] Roadmap to stabilize Media Library.
Comment #12
kentr commentedDoes this need accessibility review to determine the desired behavior?