-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Keyboard accessibility for Preview #878
Comments
The Pressing Enter or Space does now play the video, but the Because the Space Bar also causes the screen to scroll for easy navigation, this means pressing Space also causes the visible window to scroll down past the video, and in either case you'll need to tab back to the video to control it with the keyboard again after the preview disappears and the video starts. |
@cookpete Looks like the issue @bweisberger described is still present - any information on this? Right now the player is not keyboard accessible. |
I can't even tab back to video player. Big accessibility issue |
Currently the
Preview
component only attaches anonClick
handler and does not have atabindex="0"
attribute. This means that the video can only be played through a mouseclick event, and it is completely inaccessible from the keyboard when thelight
prop is enabled.I've resorted to the following hacky workaround that manually calls the
handleClickPreview
method, but it would be nice to either include a keypress event by default or at the very least allow one to be passed into thePreview
component's props.Here's a codesandbox demonstrating the issue https://codesandbox.io/s/romantic-platform-hsger - you'll notice that you can't tab into the first player, but the second is accessible by keyboard.
The text was updated successfully, but these errors were encountered: