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 Bug in Accessible/Focusable Behavior #9840

Merged
merged 13 commits into from
Apr 21, 2022

Conversation

chiaramooney
Copy link
Contributor

@chiaramooney chiaramooney commented Apr 15, 2022

Description

Type of Change

Erase all that don't apply.

  • Bug fix (non-breaking change which fixes an issue)

Why

According to UIA and Narrator team, on Windows, keyboard focus and accessibility focus should always point to the same element. Currently in RNW, when a focusable element is passed accessible=false, the element is removed from the UIA tree but remains keyboard focusable. Thus the user, when tabbing to an element with accessible=false with a screen reader enabled, can see keyboard focus move to the element and accessibility focus jump to the app window. Then, the screen reader announces window creating a poor/disorienting screen reader experience.

Resolves #9826

What

Modify native handling of accessible and focusable prop for view based and control based components such that both accessible and focusable must be true for an element to be focusable and accessible. If one is set to false, the component will behave as if both have been set to false.

Testing

Tested in playground and playground win32 by setting accessible and focusable to all configurations on a range of components and running narrator.

Microsoft Reviewers: Open in CodeFlow

@chiaramooney chiaramooney requested review from a team as code owners April 15, 2022 18:48
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 Focus and Accessibility Focus should be the same
3 participants