Skip to content

Feature request: Add accessibility labels to views. #2621

@m-abs

Description

@m-abs

Please, provide the details below:

The App we're developing must be made accessible for our visually impaired users.
For that we'd like to have support for the relevant properties on Views on both iOS and Android.

For starters we need to be able to define the accessibilityLabel on a View, for iOS' VoiceOver and Android's TalkBack to read.

Tell us about the problem

{N}'s ui/core/view have the property automationText, which maps to:

As I see it the properties used on the two platforms doesn't provide the same functionality:

  • UIAccessibilityIdentification on iOS is as I understand it used for UI Automation script, not for VoiceOver
  • contentDescription on Android is used primarily for accessibility for views that doesn't have a textual representation, so TalkBack can tell the user what view is.

automationText is just mentioned with explanation in the API docs, so we wrongly guessed this was the property we could use, since it does what we need on Android. It doesn't on iOS.

So we suggest adding a property accessibilityLabel for the View-class, which would map:

We'd like to help implement support for accessibility in {N}, if you're interested in adding it upstream.

I know the labels are only part of what will be needed, but it'll be good place to start.
Things are like accessibility-events/notifications can come later.

Are you interested in us contributing this and do you have any suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions