Skip to content
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

Date picker component limited keyboard support #501

Open
jeffreychen-eightfold opened this issue Jan 11, 2023 · 2 comments
Open

Date picker component limited keyboard support #501

jeffreychen-eightfold opened this issue Jan 11, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request ticketed-internal Issue has an active ticket

Comments

@jeffreychen-eightfold
Copy link

The date picker components do not have keyboard support for the next month and next year arrow buttons at the top of the component or other buttons like the Today button. This is desired for accessibility.

Screen Shot 2023-01-11 at 10 18 30 AM

Related links
JIRA https://eightfoldai.atlassian.net/browse/ENG-38676
Guidelines https://www.w3.org/WAI/ARIA/apg/example-index/dialog-modal/datepicker-dialog

@jeffreychen-eightfold jeffreychen-eightfold added the enhancement New feature or request label Jan 11, 2023
@dkilgore-eightfold dkilgore-eightfold added the ticketed-internal Issue has an active ticket label Jan 24, 2023
@dkilgore-eightfold dkilgore-eightfold self-assigned this Jan 24, 2023
@dkilgore-eightfold
Copy link
Contributor

Tracking with ENG-41361

@dkilgore-eightfold
Copy link
Contributor

dkilgore-eightfold commented Jan 27, 2023

@jeffreychen-eightfold Here are the keyboard shortcuts:

Tab - Places focus on the calendar in the dropdown

Date mode:
Arrow left - Previous day
Arrow right - Next day
Arrow down - Next week
Arrow up - Previous week
Page down - Next month
Page up - previous month
CTRL + Arrow left - Previous year
CTRL + Arrow right - Next year

Week mode:
Arrow left - N/A
Arrow right - N/A
Arrow down - Next week
Arrow up - Previous week
Page down - Next month
Page up - previous month
CTRL + Arrow left - Previous year
CTRL + Arrow right - Next year

Month mode:
Arrow left - Previous month
Arrow right - Next month
Arrow down - Next month row
Arrow up - Previous month row
CTRL + Arrow left - Previous year
CTRL + Arrow right - Next year
Page down - N/A
Page up - N/A

Year mode:
Missing selected style, should map to the same pattern as Decade mode.

Decade mode:
Arrow left - Previous decade
Arrow right - Next decade
Arrow down - Next decade row
Arrow up - Previous decade row
CTRL + Arrow left - Previous century
CTRL + Arrow right - Next century
Page down - N/A
Page up - N/A

So there is a bug in Year mode where the selected style is missing, it should map to the same pattern used by Decade. Will fix this and consider focus on the buttons as well to provide additional A11y functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ticketed-internal Issue has an active ticket
Projects
None yet
Development

No branches or pull requests

2 participants