React Native accessibility work one year after the GAAD Pledge
One year after Facebook took the GAAD Pledge to make React Native accessible, the React Native blog has published an update on the project and announced that the work will continue throughout 2021. Following a gap analysis of accessibility issues last year, the project began with 90 outstanding issues.
Progress since March 2021
Since the project launched on GitHub in March 2021:
- Issues closed by the community: 11
- Issues evaluated and closed by the React Native team: 19
- Pull requests merged: 9
- Pull requests merged into the React Native docs: 1
Fixes
The merged pull requests fixed two types of issues across several components and added one new API capability.
Disabled state. Seven components now announce their disabled state or disable click functionality:
- Announce when disabled:
Button(#31001), Images andImageBackground(#31252) - Disable click functionality with a disabled prop:
Button(#31001),TextandPressable(React Native Team commits),TouchableHighlight(#31135),TouchableOpacity(#31108),TouchableNativeFeedback(#31224),TouchableWithoutFeedback(#31297)
Selected state. Button (#31001) and TextInput (#31144) now announce selection when in focus and the AccessibilityState is set to selected, or when the component changes to selected.
Accessibility timeout setting. On Android, there was previously no way to query the accessibility timeout setting. A new addition makes it possible to query AccessibilityManager.getRecommendedTimeoutMillis(), which returns the "Time to take action" before UI elements auto-dismiss or auto-progress. The documentation was updated to cover getRecommendedTimeoutMillis() on AccessibilityInfo.
Contributors
The post credits @huzaifaaak, @natural_clar, fabriziobertoglio1987, @kyamashiro73, @grgr-dkrk, @crloscuesta and @chakrihacker for merged pull requests, and thanks Simek, saurabhkacholiya, meehawk, intergalacticspacehighway, chrisglein, jychiao and Waltari10 for other contributions such as reviews and comments.
Remaining work
Facebook's React Native team has committed to supporting contributors working on gap analysis issues, responding to comments and triaging pull requests. The team is also working on some of the harder issues, including correct translation of accessibilityRoles into other languages and specifying error text for specific components.
Open issues remain on the Improved React Native Accessibility project board. Issues involving Checked/Unchecked State, Entrance/exit from Collection, and Position in Collection are highlighted as opportunities for current and new contributors.
Links
Source: reactnative.dev