Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: role="searchbox" should assing "SearchField" trait on iOS (#39314)
Summary: Experimenting with Accessibility Inspector on iOS I've discovered that while when assigning `accessibilityRole="searchbox"` to a text input results in "Traits" reporting "Search Field" trait. However, when using ARIA-compatible `role="search"` such trait is not assigned, and text input will have an empty trait. Afaiu this is incorrect as using `role="search"` and `accessibilityRole="searchbox"` should equivalent effect. ## Changelog: <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> IOS FIXED - `role="searchbox"` now assigns "Search Field" accessibility trait to a view Pull Request resolved: #39314 Test Plan: No UI changes, it affects only accessibility. Reviewed By: NickGerleman Differential Revision: D49014039 Pulled By: dmytrorykun fbshipit-source-id: 5fb194e67fbf2ac339d9a746e3ce6aaed2d32558
- Loading branch information