https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33886

--- Comment #11 from David Nind <[email protected]> ---
I didn't ask about date pickers at the accessibility meeting on (my) Thursday,
as someone else beat me to it!

A quick summary:
- Use the form input types for date, time, and datetime-local - these are now
widely supported and highly recommended, see
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/date
- This is in preference to JavaScript-based date pickers, which can be very
problematic for accessibility
- Some reasons for this: 
  - adapts to different browsers nicely, as well as on phones 
  - one less external library to worry about updating
- If you are going to use a JavaScript date picker, then "normal" accessibility
testing things should be thoroughly tested
- This includes (but not limited to):
  - use the keyboard to successfully navigate the date picker
  - make it clear in your styling (and aria (?) roles) that elements are
interactive ("visual affordance") and that they can be "clicked" or selected
- ***The overwhelming comment was that you should be able to type in the date
rather than scroll*** (particularly the year selecter, such as for year of
birth)

Is there any reason we don't use the standard form input date types in Koha?
(Apart from it being a big change!) 

So the form should capture (or show) the date, or date time, and then save or
return it from the database - then Koha should do whatever is required with it.

I tried to navigate the existing date picker using just a keyboard, and failed!
So I think that is a failure from an accessibility point of view as a starting
point. (And I wonder why this hasn't (maybe it has) been brought to our
attention already!)

Summary:
- I fully support being able to enter dates manually, instead of having to use
a date picker
- We should look into using the form input types for dates and time: date,
datetime-local, and time
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/date
- If we do continue to use a JavaScript-based date picker it needs to "fully
accessible", then as a bare minimum it should be navigable by using the
keyboard - our current date picker fails on that score (or maybe it is just me
- particularly navigating to the month and year, I couldn't work out how to do
this without using the mouse)

PS: I remember the trials and tribulations when we changed last time, although
I wasn't directly involved in the testing!

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to