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

Add accessibility/keyboard #62

Open
rastapopougros opened this issue Feb 8, 2024 · 0 comments
Open

Add accessibility/keyboard #62

rastapopougros opened this issue Feb 8, 2024 · 0 comments

Comments

@rastapopougros
Copy link

rastapopougros commented Feb 8, 2024

More accessibility is always better. :)
Maybe some aria attributes would be relevant, but at first the component have to be used with keyboard (focus inside then arrow keys), not only mouse.

For example, this lib, which has waaay less options than yours (and not maintained), implement this behavior :
https://github.com/pehaa/beerslider

There is an input "range" with aria attributes, for accessibility and… that's all, I think there is 0 line of JS for keys because "range" HTML component is already focusable and usable by keyboard!
https://developer.mozilla.org/fr/docs/Web/HTML/Element/input/range
So I suppose that they only synchronize the bar&after with the percent value of the input "range".

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