Chicago / design-cds-bootstrap

The Chicago Design System as a Bootstrap 4 theme
https://chicago.github.io/design-cds-bootstrap/
MIT License
8 stars 2 forks source link

Accessible date picker for CDS #15

Closed abby-lammers closed 4 years ago

abby-lammers commented 4 years ago

For entering or selecting a date, USWDS provides a three-box system:

image

For most date selection cases, the USWDS date picker component is sufficient. This is the most accessible option for entering a date. Calendar date pickers tend to be difficult, sometimes impossible, for keyboard-only users to navigate.

A calendar date picker may be needed in situations where restricting dates by availability is important. If a calendar date picker is needed, be sure to follow accessibility guidelines. Axesslab provides multiple good resources for learning about date picker accessibility.

jdkunesh commented 4 years ago

@alaeder16 @mario-duran @chrisjcalderon how does this look to folks? Seems to have a good WCAG2 AA pedigree and works with Bootstrap 4:

https://github.com/eureka2/ab-datepicker

alaeder16 commented 4 years ago

You mean like no icon at all? image

jdkunesh commented 4 years ago

No, let's go with the direction we chose yesterday. We can use this kind of visualization (and eventually component):

http://eureka2.github.io/ab-datepicker/

as an accessible Bootstrap component (https://github.com/eureka2/ab-datepicker) instead of the USWDS [mm] [dd] [yyyy] format we have today.

Screen Shot 2019-11-20 at 3 01 46 PM
alaeder16 commented 4 years ago

ok, great. I added it to Figma in components

jdkunesh commented 4 years ago

Will integrate this item as a submodule.

mario-duran commented 4 years ago

Added a quick example on the main kitchen sink home page and added a full set of examples in the Components Page