y0c / react-datepicker

📅 React DatePicker Library (Flexible, Reusable)
https://y0c.github.io/react-datepicker
MIT License
168 stars 32 forks source link

Keyboard accessibility #32

Open freaksauce opened 5 years ago

freaksauce commented 5 years ago

Describe the bug The datepicker appears to be impossible to use with keyboard which makes it totally inaccessible.

To Reproduce Steps to reproduce the behavior:

  1. Try to tab into the component
  2. Click on a date and attempt to navigate to another day or control with tabs and arrow keys

Expected behavior In order for people who can only use keyboard or assisted devices to use the component it must not be reliant on mouse events only.

Desktop (please complete the following information):

y0c commented 5 years ago

Thank you for your feedback. i 'll update this feature in next release :)

Aams1000 commented 5 years ago

I second this. For example, say one wants to change a date in the RangeDatePicker from 2018-01-01 to 2019-01-01. The user should be able to edit the text field and press enter, triggering the appropriate calendar onChange functions. Right now the enter key does nothing--one must navigate all twelve months by mouse.

I really like this library, but the lack of such functionality makes me question whether I should keep using it--such navigation by mouse is quite a pain.

Thanks!

y0c commented 5 years ago

@Aams1000 Thank for your interest, i haven't been able to proceed because I've been busy lately, but I'm going to go ahead with it again.