-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Video.js aria labelledby and ids contain spaces #4688
Comments
I've not seen this as an issue on OSX with voice over. Is any particular screen reader having issues with that extra space? But yes, we should definitely fix it if it's causing issues. I can see in the code we're trying to set the |
I also noticed some issues with this while doing some accessibility checks for the university where i work. I think I have a quick and easy fix I can submit to alleviate this issue. It looks like the
However, there's no I've added this to my local fork, but I can't get the tests or build to actually complete at the moment to submit a PR on this. |
Disregard my comment about not being able to run the tests or the build. It turns out I just needed to pull the updates from upstream. I should have PR for this in a bit. Feel free to let me know if I totally botched something up. |
The aria-labelledby attribute on the fontPercent, edgeStyle, and fontFamily select options inlcudes an extra space since there is no ledgendId variable being set on the createElFont_() method. This fix adds a check to see if the legendId value is set or not inside the createElSelect_() method. This should keep the extra space from appearing on the select tags created by the createElFont_() method. Fixes videojs#4688
Thanks @knilob. Hopefully, that's enough to fix this. I hope to have a release out this week. |
actually, going to re-open this issue based on the discussion in #4708 so that we don't forget to fix that. issue comment
issue comment
|
Also, see #4884 for a description of the id having a space in it when it shouldn't have. |
…ttings Dialog (fixes videojs#4688 and videojs#4884)
This seems to be an issue still. |
Description
There's seems to be odd spaces between aria labels in the video-js outputted markup inside the vjs track setting components.
Steps to reproduce
I've created a codepen in which demonstrates this issue
https://codepen.io/HannahG/pen/xXovgx
Annoyingly it's in an iframe but if you do a search for "captions-font-size-video_component_373" in dev tools you can see the issue. You get the below:
aria-labelledby=" captions-font-size-video_component_373"
This is an issue with the current build 6.2.8 and fails accessibility on the aria-labels.
Is there anything we can do to fix this?
Additional Information
We are using this for a government digital service and need AAA Accessibility if possible.
versions
videojs
6.2.8
browsers
Chrome Version 61.0.3163.100 (Official Build) (64-bit)
OSes
Windows
plugins
none
The text was updated successfully, but these errors were encountered: