Open alexlouden opened 5 years ago
Hey, I'd benefit for this changes to be incorporated into this project.
I'd recommend creating a pull request for this.
@0w3w I made some pretty major, quite opinionated changes so I'm not going to do a PR back to this repo, but you're welcome to use https://github.com/Bonobolabs/time-picker
Hey there, I forked this library and I've made a bunch of changes including some accessibility improvements. Thought I'd share so you could pull some changes back upstream if you liked! đ
https://github.com/Bonobolabs/time-picker
Here I'm using arrow keys to navigate:
(There are quite a lot of changes you won't want to include, but I tried to make changes as separate commits so you may be able to cherry pick)
Full list of the accessibility changes:
aria-checked
is used to indicate the currently selected elementaria-label
s with no leading zeros (so screenreader says "one" instead of "zero one"), and labels on radio groups (e.g. "Select AM or PM").aria-invalid
is used to indicate incorrectly formatted time (when entering time manually)