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

Fix #4420: Update home key and end key navigation in Calendar component #10

Merged
merged 4 commits into from
Jan 16, 2024

Conversation

balajis-qb
Copy link
Collaborator

Closes Hacker0x01#4420

Description

This PR addresses the navigation behavior in the calendar component to enhance accessibility based on W3C WAI-ARIA principles. Previously, the home and end key handers navigated one year before and after the selected (which is the handlers for shift+PageUp and shift+PageDown), which could be confusing for users. The update modifies the behavior to move to the first and last day of the week, providing a more intuitive and accessible experience.

Reference Link

Changes Made

  • Updated home and end key handlers in the calendar component.
  • Navigation now focuses on the first and last day of the week, improving usability.
  • Updated the corresponding test cases.

Related issues

Closes Hacker0x01#4420

I'll create a separate PR to fix the shift+pageUp and shift+pageDown issue, currently, it's working like PageUp and PageDown

Balaji Sridharan added 4 commits January 2, 2024 11:49
Adjust home and end handlers to align with W3C WAI-ARIA principles.  Previously navigation moves to the first and last day of the week instead of one year before and after the calendar.  After this change, it's moving to [the first and last day of the week](https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/examples/datepicker-dialog/)

Closes Hacker0x01#4420
@balajis-qb balajis-qb merged commit d18a24b into main Jan 16, 2024
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

Successfully merging this pull request may close these issues.

Keyboard accessibility not aligned with ARIA authoring practices guide
1 participant