Skip to content

DateRangePicker calendar cannot be opened by keyboard #3118

@bennydtown

Description

@bennydtown

🐛 Bug Report

The calendar button in the DateRangePicker has tabindex="-1", so you cannot navigate to it using the keyboard and there is no way to open the calendar control.

🤔 Expected Behavior

Tabbing past the date field inputs should focus the calendar button. The user could then activate the button to open the calendar. Once open, the calendar itself seems to work correctly with the keyboard.

😯 Current Behavior

Pressing tab from the last date input field bypasses the button and focuses on the next navigable item on the page.

date-picker-tab-nav_AdobeCreativeCloudExpress

💁 Possible Solution

Removing the tabindex property from the button should be all that is required.

🔦 Context

Without this feature, keyboard users must type in start and end dates longhand.

This is particularly burdensome if the component has minValue and/or maxValue defined, because those limits are only displayed inside the calendar. If the value violates those limits, the entire date range is marked as invalid. There is no indication which limit is violated or what the valid range is.

🧢 Your Company/Team

Adobe/Admin Console

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