Make display_video_thumbnail partial more accessible - #51688
Conversation
removed extra white space
davidsbailey
left a comment
There was a problem hiding this comment.
LGTM regardless of the answer to my question below, as you're making things better than they were before :-)
| %div{style: "float:right"} | ||
| %a{href: download_path} | ||
| %img{width: 34, height: 34, style: "margin-top: 10px;", src: "/images/download_cropped.png"} | ||
| %img{width: 34, height: 34, style: "margin-top: 10px;", src: "/images/download_cropped.png", alt: "Download video"} |
There was a problem hiding this comment.
better to be accessible in english-only than for no one at all, but I'm wondering if alt text like this is supposed to be translated too?
There was a problem hiding this comment.
I think ideally it should be, but making it so is probably out of scope for this task since nothing else in these partials appears to be translated. I have a ticket to reevaluate if this is the right pattern to use for videos in general and will make a note there!
There was a problem hiding this comment.
haha, yes, if the page is not translated then this is definitely enough for today 👍
Agreed with this assessment after looking at the examples you posted of each! Thanks for taking this on. This PR looks great 👍 |
Improve accessibility on the
display_video_thumbnailpartial:buttonwrapper around the play button image element to make it tab navigableExamples of these partials in use are on the following pages:
🚨 Caveat: I don't think having the videos show up in a lightbox is the best UX in general, for accessibility, or mobile — it adds extra steps and bloat to the page and is difficult to use w/ a screen reader. We should consider removing this pattern and having the videos play inline with the
video_with_fallbackpartial as seen here: https://code.org/educate/it, but these fixes are good for now. Added a ticket to readdress this: ACQ-583Related comment: #51191 (comment)
Jira ticket: ACQ-548
Before
Before.mov
AI_Vids_Before.mov
After
After.mov
AI_Vids_After.mov