You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix overlay Play button being reachable with Tab while hidden from screen readers #374
The large Play button that sits over a video can be reached with the Tab key, even though it is hidden from screen readers. Keyboard users get two "Play" stops per video, and a screen reader says nothing on the first one.
Your environment
Framework v5.56.3, adapt-contrib-media v7.2.1
Chrome 155
macOS
Steps to reproduce
Open a page with a video media component.
Tab into the player.
Expected behaviour
One "Play" stop: the Play button in the control bar.
Actual behaviour
Focus lands on the large overlay Play button first, then on the control bar's Play button. cleanUpPlayer() sets aria-hidden="true" on .mejs__overlay-play (so the player is not announced with two Play buttons) but leaves the .mejs__overlay-button inside it at its default tab index. axe reports this as aria-hidden-focus (serious).
Suggested Fix
In cleanUpPlayer(), alongside the aria-hidden line, set tabindex="-1" on .mejs__overlay-button. Mouse and touch users can still click it.
Activity