Skip to content

[date-picker] Open overlay on Enter in addition to Arrow Down #3260

Open
@web-padawan

Description

@web-padawan

Motivation

Follow up from #124 which has been closed but not fully addressed.

In order to be aligned with ARIA practices, we should make sure users can open date-picker dropdown on Enter:
https://www.w3.org/TR/wai-aria-practices-1.2/examples/dialog-modal/datepicker-dialog.html

Relevant guidance from the old Slack discussions (full text at #124 (comment)):

It's arguable that keyboard users will learn/have to learn that they can open these pickers using alt + down arrow or just down arrow / similar combinations. I would still suggest also opening it on Enter (the way that Firefox does), to cover most common bases.

In short, we'd recommend at the very least making sure the pickers open on Enter as well (and, as a result, it may need to handle this key event/prevent the form itself from submitting as a result).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions