Skip to content

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

Backlog

Description

@faciledictu

Description

On iOS, role="searchbox" gets no accessibility trait, while accessibilityRole="search" gets Search Field. fromString has no searchbox; the old architecture maps it since #39314. This affects View, TextInput and Text. Android is not affected. I'll send a fix.

Steps to reproduce

  1. Run the reproducer from ReproducerApp: yarn install, pod install in ios, then yarn ios.
  2. Read the Traits of R1, R2 and R3 in Accessibility Inspector.

Expected: Search Field, as on the controls with accessibilityRole="search".

Actual: no Search Field.

React Native Version

0.88.0

Affected Platforms

Runtime - iOS

Output of npx @react-native-community/cli info

Same as in #59377.

Stacktrace or Logs

No crash or warning.

MANDATORY Reproducer

https://github.com/faciledictu/rn-a11y-searchbox-repro

Screenshots and Videos

The reproducer's README has the traits of each element.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions