-
Notifications
You must be signed in to change notification settings - Fork 19
Date picker field improvements #1540
Comments
Date Pickers and accessibility, classic topic. Current implementationThe current implementation is inaccessible:
Web accessibility expert Adrian Roselli has a great article on the whole topic (bordering UX, maybe relevant for @wuenschedesign), unfortuately there is something wrong with the embedded Codepen. In-depth articleTakeaways from the article:
So what to doA way out of this dilemma could be mentioned in the article's comments. My interpretation of it, and it is actually not that far away from the screenshot in this ticket:
If you are interested I could look into how big e-commerce/travel websites solve this (at least the ones that a known for good accessibility, like Expedia) |
Sounds like a plan. So it sounds like we might need to swap the date picker components. How about detecting screen reader scenarios and swapping the date picker with a simple text field ? Or can we make the date picker field invisible to screen reader and have another "visually hidden" field that is considered present for screen readers ? Is detecting screen readers and switching rendering mode an anti-pattern ? |
If you take this literaly – it is, at least ethically. But hiding a (sr-)broken experience from screen readers if we could supply an equivalent experience could work, but I have to do more research on that. One strategy could be (single date, no timespan selection here):
But to re-iterate: This would only deal with screen readers. We have have to take other things in consideration:
I don't properly suggest this strategy yet because it is a) an assumption and b) I haven't yet researched the side effects on other forms of assitive technology/accessibility. I would extend my research with that. |
So far I'd say the date picker is only here as a convenience. In general all we want is that the user inputs some date, but typing a date can be cumbersome due to the different formats. This is where I'm wondering whether such software should have a way to provide their own method for inputting dates. Not sure if it's their responsibility. Is there anything related to "input type='date'" for accessibility tools ? So far it sounds like more research is needed. Maybe as you suggested, have a look how some popular accessible websites are solving it. |
Like mentioned above, Edit: There is no technical way to detect voice control software. |
ResearchSolutions in the wild that are considered accessible by someExpediaHomepage, https://www.expedia.com/
Google CalendarCan be reached from every view, https://calendar.google.com/
Booking.comHomepage, https://www.booking.com
airbnb.comHomepage, https://airbnb.com
|
My recommendation would be right now to try to implement a solution inspired by booking.com's date picker. Provinding select input options prevent unclear date inputs (that could happen with a freetext input, even with a good placeholder example). Also, it would make validation easier since the system could offer only selectable dates. This would make a (select based) input a valid input (at least on the client side). But we have to make sure that the whole date picker widget for mouse, touch, voice input users is hidden for screen readers ( Same goes for the "visual" date picker. Only offering selectable dates (present or future) will lead to valid inputs (still - at least on the client side. But I guess a server side validation of these dates in already in place). Bear in mind that this recommendation is based on the research above but needs to be tested with real users and real assistive technology. |
I somehow got a notification email one hour ago as if this issue was created for the first time. Now I'm uncertain whether you need help/a statement; or if it's just connected to the transfer @pascalwengerter did. |
@marcus-herrmann connected to the transfer (GH treats this as a newly opened one), thanks for being reactive but nothing to be done here for now ;) |
add placeholder when empty
add date picker icon inside the field
how about accessibility ? @marcus-herrmann
The text was updated successfully, but these errors were encountered: