Skip to content

Conversation

@TatianaKapos
Copy link
Contributor

@TatianaKapos TatianaKapos commented Jul 19, 2022

Description

Backporting #9898 to resolve #9977. Tested with an example app to confirm fix.

Type of Change

Erase all that don't apply.

  • New feature (non-breaking change which adds functionality)

Why

Implement importantForAccessibility="no-hide-accessibility". When specified on a view-based component should remove accessibility for the element itself and its descendants.

Resolves #5113

What

Recursively apply accessible={false} prop to children of view-based component.

Attempted implementation used by Garrison team but it was not sufficient for Desktop, as focusable elements were still focusable even after being removed from the UIA tree.

Testing

Tested in playground with multiple configurations of nested components.

Optional: Describe the tests that you ran locally to verify your changes.

Microsoft Reviewers: Open in CodeFlow
Microsoft Reviewers: Open in CodeFlow

@TatianaKapos TatianaKapos requested a review from a team as a code owner July 19, 2022 18:39
@ghost ghost added the Area: Accessibility label Jul 19, 2022
@TatianaKapos TatianaKapos changed the title [0.67] Backporting #9898 into 0.67 [0.67] Implement importantForAccessibility="no-hide-accessibility" Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants