-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[Fabric] Fix for Text and TextInput focus issue with screen readers #15088
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
[Fabric] Fix for Text and TextInput focus issue with screen readers #15088
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes accessibility issues with Text and TextInput components in React Native Windows Fabric architecture, specifically addressing focus problems when using screen readers. The changes implement proper UI Automation (UIA) text pattern provider methods that were previously stubbed out as no-ops.
Key changes:
- Implements proper
Clone
andCompare
methods for TextRangeProvider to support screen reader navigation - Fixes return value handling in
GetAttributeValue
method for text styling attributes - Adds null pointer validation across multiple methods
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
CompositionTextRangeProvider.cpp | Implements UIA TextRangeProvider methods for screen reader compatibility and fixes attribute value return handling |
change/react-native-windows-4046d3e2-cc00-459e-b62d-4489b3ef14d1.json | Adds changelog entry for the accessibility fix |
vnext/Microsoft.ReactNative/Fabric/Composition/CompositionTextRangeProvider.cpp
Show resolved
Hide resolved
vnext/Microsoft.ReactNative/Fabric/Composition/CompositionTextRangeProvider.cpp
Show resolved
Hide resolved
vnext/Microsoft.ReactNative/Fabric/Composition/CompositionTextRangeProvider.cpp
Show resolved
Hide resolved
…15088) * Few more implementation of TextRange Provider * Yarn change * Update Change file
…#15105) * [Fabric] Implement announceForAccessibility in AccessibilityInfo Module (#14995) * Implementation of announce for accessibility for fabric * Build fix * Removed Debug Message * Yarn Change * Copilot Suggestions * Review Changes * Storing the weak_ref island in property to avoid circular ref * Adding deleted Change Files * [Fabric] Raising UIA Event if Toggle State Changes in Switch Component (#15023) * Update Toggle State to Narrator * Yarn Change * Review Changes * Review Changes 2.0 * [Fabric] Fix for Text and TextInput focus issue with screen readers (#15088) * Few more implementation of TextRange Provider * Yarn change * Update Change file
…icrosoft#15088) * Few more implementation of TextRange Provider * Yarn change * Update Change file
…icrosoft#15088) * Few more implementation of TextRange Provider * Yarn change * Update Change file
Description
Fix for Text and TextInput focus issue with screen readers
Type of Change
Why
What is the motivation for this change? Add a few sentences describing the context and overall goals of the pull request's commits.
This changes will make screen readers to access Text and Text Input Component.
Resolves [#14499 ,#15045,microsoft/react-native-gallery/issues/589]
What
What changes were made to the codebase to solve the bug, add the functionality, etc. that you specified above.
Implemented to methods for TextRangeProvider and some bug fix.
Screenshots
Before:
UnableToMove.mp4
After:
GotFoxus.mp4
Testing
Tested in Playground
Changelog
Should this change be included in the release notes: yes
Add a brief summary of the change to use in the release notes for the next release.
Fix for Text and TextInput focus issue with screen readers in Fabric
Microsoft Reviewers: Open in CodeFlow