Skip to content

Map role="searchbox" to the Search Field trait on iOS - #60597

Open
faciledictu wants to merge 1 commit into
react:mainfrom
faciledictu:fix/ios-role-searchbox-trait
Open

faciledictu wants to merge 1 commit into
react:mainfrom
faciledictu:fix/ios-role-searchbox-trait

Conversation

@faciledictu

@faciledictu faciledictu commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

Fixes #60595.

On iOS role="searchbox" got no accessibility trait, while accessibilityRole="search" gets Search Field. It now gets Search Field too, as in the old architecture (#39314) and as slider got Adjustable in #59463.

Changelog:

[IOS] [FIXED] - role="searchbox" gets the Search Field accessibility trait

Test Plan:

Added a test to AccessibilityPropsTest; it fails without this change. Checked with https://github.com/faciledictu/rn-a11y-searchbox-repro: VoiceOver reads "search field" on View, TextInput and Text with role="searchbox".

@github-actions github-actions Bot added the Meta Review Required This PR is considered risky and requires Meta to import it to do more testing before merging. label Dec 5, 2026

This branch has not been deployed

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

Labels

Meta Review Required This PR is considered risky and requires Meta to import it to do more testing before merging.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iOS: role="searchbox" gets no Search Field trait

1 participant