digdir / designsystemet

Designsystemet
https://designsystemet.no
MIT License
68 stars 34 forks source link

New component: Datepicker #79

Open mrosvik opened 1 year ago

mrosvik commented 1 year ago

Existing datepickers in other design systems

Research:

Altinn 3 needs


### Tasks
- [ ] Datepicker: Research and Specification (Collect in this Epic)
- [ ] https://github.com/digdir/designsystem/issues/28
- [ ] https://github.com/digdir/designsystem/issues/1112
- [ ] https://github.com/digdir/designsystem/issues/1113
- [ ] Datepicker: WCAG-test
RonnyB71 commented 7 months ago

Requirements asked for by application developers:

Barsnes commented 7 months ago

Aksel and Shadcn uses react day picker for their date pickers.

fredrikstorheil commented 7 months ago

Summary of: What makes an accessible date picker? Is it even possible? - Inclusive Design 24

I recommend going through the presentation yourselves. You'll need to navigate downwards on some pages, this is indicated with the four arrows in the bottom right corner. I also recommend watching the YouTube video.

The presentation covers:

Start with asking these questions. Is a date picker the best solution:

Date pickers can be suitable for some situations, such as choosing dates for a holiday. Date pickers can be less than ideal in other situations, such as a ‘Date of birth’ component.

The presenter uses these three date pickers as examples in the test:

All three datepickers have their strengths and weaknesses.