Skip to content

showYearDropdown and showMonthYearDropdown are not accessible via keyboard #5609

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Lizzy-Gallagher opened this issue May 6, 2025 · 0 comments

Comments

@Lizzy-Gallagher
Copy link

Describe the bug
Year (showYearDropdown=true) and month-year (showMonthYearDropdown=true) dropdowns are not accessible via keyboard

To Reproduce
Steps to reproduce the behavior:

You will not be able to tab into the year or month dropdowns

Expected behavior
You can tab to the year/month-year dropdown as well as the calendar days, previous month, next month.

Additional context
This was found during an a11y audit, here's the text of their finding:

Issue: The dropdowns for selecting Month/Year within the datepicker are not keyboard accessible. When focused on the screen reader using the arrow keys, they are announced without a role.
Why it matters: Proper implementation of a combobox ensures that screen reader users and those relying on keyboard navigation can perceive and operate its functionality effectively. This enables all users to select options smoothly.
How to fix it: Consider implementing the control as a single-selection combobox. Use the WAI-ARIA examples and patterns as a reference for proper implementation.

This is a rereport of #4127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant