airbnb / HorizonCalendar

A declarative, performant, iOS calendar UI component that supports use cases ranging from simple date pickers all the way up to fully-featured calendar apps.
Apache License 2.0
2.8k stars 234 forks source link

Improve initial accessibility focus behavior #286

Closed bryankeller closed 10 months ago

bryankeller commented 10 months ago

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

Checklist