-
Notifications
You must be signed in to change notification settings - Fork 384
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
Identify areas where alt text is missing, currently, for images/video. #2983
Comments
There are 4 types of embedded elements allowed in a story currently: Inline images Background images
This can definitely be done better and easier - e.g. by repeating the alternative text input directly in the block editor. Inline and background videos The conventional accessibility approach on the web for videos is to include captions and/or transcripts for the video. This is supported by the An alternative approach is to add a fallback element which is displayed before the video loads (or if no compatible video source is found) where any regular HTML element can be used. However, this is not intended for accessibility purposes and the handling of this content by screen readers is poor at best. It would be quite simple to allow editors to upload a track/caption file in the block editor for a video element (either inline or background), and include it in the generated AMP Story, but it feels like a poor man's solution, that very few would be able to use, as it requires external software to generate a valid track file. It's not hard, but requires a lot of effort. A proper UX solution would be to allow the story editor to add captions to the video in some embedded tool directly in e.g. the media editor and generate a track file from this. This is however a fairly complex task. BBC has created a reasonably competent React module achieving this exact purpose (MIT licensed, 10 contributors, active development ATTOW), but it would probably require a thorough rewrite to fit in the WP-React structure. Recommendation
|
In #3006 the title of a video attachment is provided on the |
Ah, it's not mentioned explicitly in the documentation, but I guess support is implied on any element. And thanks for pointing me to this ticket! I do now see that background videos are added an Inline videos do not have an aria-label attribute, regardless of their title in the media editor. Updated recommendation
|
IMO these two things can be done in 1 ticket, as there is only 1 background media section where one can configure both video and image.
How relevant is this once we have good Also, let's keep in mind that the editor should allow anyone to easily create good, immersive stories without having to worry about such low-level things. Instead, we should consider providing such data automatically. Take YouTube's automatic captioning as an example. |
Seems like a good idea.
I think the accessible label is a good start and common practice around the web. Adding caption support is a pretty huge extra task, that is probably best saved for someone else. If people need it to provide accessibility, embedding youtube videos will be the best way to go about it for now. |
Relates to: Support “alt”-text / title (WIP) editor for images/video
The text was updated successfully, but these errors were encountered: