Skip to content
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 #144

Open
aferreira-deo opened this issue Aug 26, 2022 · 0 comments
Open

Keyboard Accessibility #144

aferreira-deo opened this issue Aug 26, 2022 · 0 comments

Comments

@aferreira-deo
Copy link

The carousel next and previous buttons should be usable with a keyboard only in order to match the WCAG accessibility standards, more precisely WCAG 2.1.1 https://www.w3.org/WAI/WCAG21/Understanding/keyboard.html.

In order to do this you could code the next/previous buttons as buttons instead of divs. Alternatively if you still want to keep them as divs then you can add a tabindex=0, click and keyboard handlers for the enter/space keys, and focus styling for when the keyboard focuses the buttons.

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant