Skip to content

[BITV/A11Y] Datetime picker UX needs to be improved. #1666

@marcoambrosini

Description

@marcoambrosini

Feature request

Setting date and time with our current picker is very expensive and creates a lot of friction.
I think we need to go back to the drawing board and come up with something better!

To do

Replacing the current datepicker with a native obehavourne

Native date picker limitations

  • Most important one: all browsers provide there own implementation of native datetime picker. That means, that there could be some odd behavior in some browsers / versions and they are very different. I've tested it mostly in current Chrome and Firefox.
    But: the tendency is that browser implementations will be better with a time. E.g. look into last implementation on Safari and compare it with an older versions.

  • Bug for type="week".

Chrome: it is possible to pick a week, but mostly not possible to change the week from a keyboard.

Peek 2022-08-26 10-17

Firefox: almost unusable. Neither keyboard nor picker (mouse)

Peek 2022-08-26 10-18

  • Bug for readonly attribute. (tested on type="date")

Chrome: doesn't work at all.

Firefox: works only for keyboard input.

Peek 2022-08-26 10-29

  • Focus goes too fast away.

Firefox: It is not possible to use a piker via keyboard at all.
Peek 2022-08-26 10-36

  • It is not possible to exit a picker (via Esc) without closing an action menu.

Firefox: focus doesn't work at all.

Chrome: I don't know how could it be possible to listen a "close" event from native picker on ActionMenu. First Esc goes to previous date. Second Esc closes action menu completely. See more https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement#events.

Peek 2022-08-26 10-42

  • I had no success with step attribute for minutes. I haven't seen any difference. Firefox + Chrome.

Firefox 103.0.1 (64-bit) desktop

Tested on Linux using https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local

Missing picker for time

Picking date Picking time
Bildschirmfoto vom 2022-08-17 12-15-29 Bildschirmfoto vom 2022-08-17 12-15-44

UC Browser several versions

Buggy + seems too old.
image

Safari iOS older versions

Buggy. Can't open picker + can't put a date via input. Not usable.
image

Safari iOS v12

Partly usable. User is not able to choose year + month.

Safari iOS v13

Partly usable. User is not able to choose year + month.

image

Safari Desktop v12 + Safari Desktop v13.1

Buggy. Can't open picker + can't put a date via input. Not usable.
image

Chrome Version 104.0.5112.101 (Official Build) (64-bit) desktop

Colors of disabled dates have too low contrast

Chrome Desktop: Colors of disabled dates have too low contrast (some days in month are disabled and input field shows it in this way). Icon on the right side have too low contrast too.

image

Metadata

Metadata

Labels

3. to reviewWaiting for reviewscomponentComponent discussion and/or suggestionenhancementNew feature or requestfeature: datepickerRelated to the date/time picker component

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions