Skip to content

Better link detection in inline text - #57853

Open
twasilczyk wants to merge 1 commit into
react:mainfrom
twasilczyk:export-D115058930
Open

Better link detection in inline text#57853
twasilczyk wants to merge 1 commit into
react:mainfrom
twasilczyk:export-D115058930

Conversation

@twasilczyk

Copy link
Copy Markdown
Contributor

Summary:
Improved link detection to make them appear in Gaze and TalkBack:

  • Adds support for button RN role in addition to link. These are both triggered by link elements, but the former happens when <a> tag is without a href - for example <a href="#" onclick="...">.
  • Don't ignore AX role when RN role is set. The latter gets inherited from ancestor, so axrole=link under a parent that's role=header was not considered a link.

Changelog: [Internal]

Differential Revision: D115058930

Summary:
Improved link detection to make them appear in Gaze and TalkBack:
- Adds support for button RN role in addition to link. These are both triggered by link elements, but the former happens when `<a>` tag is without a `href` - for example `<a href="#" onclick="...">`.
- Don't ignore AX role when RN role is set. The latter gets inherited from ancestor, so `axrole=link` under a parent that's `role=header` was not considered a link.

Changelog: [Internal]

Differential Revision: D115058930
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 6, 2026
@facebook-github-tools facebook-github-tools Bot added p: Facebook Partner: Facebook Partner labels Aug 6, 2026
@meta-codesync

meta-codesync Bot commented Aug 6, 2026

Copy link
Copy Markdown

@twasilczyk has exported this pull request. If you are a Meta employee, you can view the originating Diff in D115058930.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant