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

Improve initial accessibility focus behavior #286

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

bryankeller
Copy link
Contributor

Details

This change improves the initial element focus behavior. Since we started creating more accessibility elements than are visible to prevent the "heading not found" issue, we introduced a different issue - the first accessibility element is now off screen, and so focusing on that feels unnatural. This PR ensures that an item in the visible range of dates is focused when first entering the calendar via voice over.

Related Issue

N/A

Motivation and Context

Improves accessibility focus behavior.

How Has This Been Tested

Example app on device.

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

@bryankeller bryankeller added the bug Something isn't working label Dec 4, 2023
Copy link

@miguel-jimenez-0529 miguel-jimenez-0529 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@bryankeller bryankeller force-pushed the bk/improve-accessibility-initial-focus branch from 3a88e9a to 4f0a96d Compare December 4, 2023 23:34
@bryankeller bryankeller merged commit 66dd26d into master Dec 4, 2023
3 checks passed
@bryankeller bryankeller deleted the bk/improve-accessibility-initial-focus branch December 4, 2023 23:39
antonredkozubov added a commit to antonredkozubov/HorizonCalendar that referenced this pull request Dec 5, 2023
Improve initial accessibility focus behavior (airbnb#286)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants