Skip to content

fix(fabric, a11y): implement accessibility role - #2293

Merged
Saad Najmi (Saadnajmi) merged 8 commits into
microsoft:mainfrom
Saadnajmi:fabric/a11y-role
Aug 20, 2025
Merged

fix(fabric, a11y): implement accessibility role #2293
Saad Najmi (Saadnajmi) merged 8 commits into
microsoft:mainfrom
Saadnajmi:fabric/a11y-role

Conversation

@Saadnajmi

Copy link
Copy Markdown
Collaborator

This is part of a series of PRs where we are cherry-picking fixes from #2117 to update our Fabric implementation on macOS.

TODO

Summary:

Pick a few changes related to implementing accessibility role

Test Plan:

CI should pass.

Comment threadpackages/react-native/React/Fabric/RCTConversions.h Outdated
Nick Lefeverand others added 4 commits August 12, 2025 11:15
Summary:
Paper was rendering text as AXStaticText. This diff updates the `RCTParagraphComponentView` to propagate the same role in Fabric for text.
This change will allow to select UI elements based on the text contents.
Test Plan:
Use the Accessibility Inspector in Zeratul with Fabric enabled. With the changes the text elements are presented in the a11y hierarchy with AXStaticText:
{F1162808272}
Reviewers: shawndempsey, chpurrer, #rn-desktop
Reviewed By: chpurrer
Differential Revision: https://phabricator.intern.facebook.com/D51736932
Tasks: T170938725
Tags: uikit-diff
Summary:
Paper was rendering text as AXStaticText. This diff updates the `RCTParagraphComponentView` to propagate the same role in Fabric for text.
This change will allow to select UI elements based on the text contents.
Test Plan:
Use the Accessibility Inspector in Zeratul with Fabric enabled. With the changes the text elements are presented in the a11y hierarchy with AXStaticText:
{F1162808272}
Reviewers: shawndempsey, chpurrer, #rn-desktop
Reviewed By: chpurrer
Differential Revision: https://phabricator.intern.facebook.com/D51736931
Tasks: T170938725
Summary:
Paper was rendering text as AXStaticText. This diff updates the `RCTParagraphComponentView` to propagate the same role in Fabric for text.
This change will allow to select UI elements based on the text contents.
Test Plan:
Use the Accessibility Inspector in Zeratul with Fabric enabled. With the changes the text elements are presented in the a11y hierarchy with AXStaticText:
{F1162808272}
Reviewers: shawndempsey, chpurrer, #rn-desktop
Reviewed By: chpurrer
Differential Revision: https://phabricator.intern.facebook.com/D51736933
Tasks: T170938725
@Saadnajmi
Saad Najmi (Saadnajmi)force-pushed the fabric/a11y-role branch 2 times, most recently from cb1f8ed to bbef9bbCompareAugust 13, 2025 21:03
@Saadnajmi
Saad Najmi (Saadnajmi) marked this pull request as ready for review August 19, 2025 18:10
@Saadnajmi
Saad Najmi (Saadnajmi) merged commit b4b142a into microsoft:mainAug 20, 2025
23 checks passed
@Saadnajmi
Saad Najmi (Saadnajmi) deleted the fabric/a11y-role branch September 4, 2025 21:28
Sign up for freeto 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.

3 participants

@Saadnajmi@amgleitman@JunielKatarn