-
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
fix: improved accessibility for time display #8182
Conversation
This change is to remove the aria-live attribute from time display elements. The aria-live attribute is no longer needed since the presentation role was added. Both attributes being present can lead to unexpected screen reader behavior. Fixes issue videojs#8143
💖 Thanks for opening this pull request! 💖 Things that will help get your PR across the finish line:
We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can. |
Codecov Report
@@ Coverage Diff @@
## main #8182 +/- ##
=======================================
Coverage 82.11% 82.11%
=======================================
Files 112 112
Lines 7402 7402
Branches 1785 1785
=======================================
Hits 6078 6078
Misses 1324 1324
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
Makes sense to me. @OwenEdwards did you have anything to add on this?
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.
This checks out, thanks for submitting a PR!
Congrats on merging your first pull request! 🎉🎉🎉 |
This change is to remove the aria-live attribute from time display elements. The aria-live attribute is no longer needed since the presentation role was added. Both attributes being present can lead to unexpected screen reader behavior. Fixes issue videojs#8143
This change is to remove the aria-live attribute from time display elements. The aria-live attribute is no longer needed since the presentation role was added. Both attributes being present can lead to unexpected screen reader behavior. Fixes issue #8143
Description
This PR fixes the accessibility bug described in #8143
Specific Changes proposed
Remove aira-live attribute from time display elements in the player. This attribute was originally added to prevent screen readers from announcing every time change, but later, role="presentation" was added. The presentation role will hide the element from the screen reader all together, so aria-live is no longer needed.
Requirements Checklist