Skip to content

Appbar.Content: a pressable title is two focus stops on Android #5252

Open

Description

@Doberjohn

Current behaviour

On Android, an Appbar.Content with onPress is two stops: the pressable (with the focus ring) and its inner Text, which is accessible on its own and shows Android's grey default highlight. TalkBack reads "Title" twice, and Shift+Tab with a hardware keyboard stops twice. iOS reads it once.

Expected behaviour

One stop.

How to reproduce?

  1. Render <Appbar.Content title="Title" onPress={() => {}} />.
  2. Use TalkBack, or Shift+Tab with a hardware keyboard.

Your Environment

software version
android 13 (API 33, emulator)
react-native 0.88.1 (New Architecture)
react-native-paper main (also seen with #5218 at de7801b)
expo sdk 58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions