react-native-segmented-control / segmented-control

React Native SegmentedControl library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve Accessibility Reading on Android

und3f1n3d opened this issue · comments

commented

Bug report

Summary

  1. When button is selected, the button is not read as 'Selected' and as a 'Button'.
  2. It doesn't read the total of items, nor current index, something like '1 out of 2', or '2 out of 2'. Example, Google Play Store => Top Charts => the list of "Top Free", "Top Grossing", "Trending"... that kind of idea.

Environment info

Library version: 2.1.0

Steps to reproduce

  1. Turn on Talkback
  2. selectedIndex = 0
  3. Swipe to the first element, reading: 'Photo, Double Tap to activate.'
  4. Swipe to the second element, reading: 'Settings, Double Tap to activate.'

Describe what you expected to happen:

  1. Turn on Talkback
  2. selectedIndex = 0
  3. Swipe to the first element, expected reading: 'Selected. Photo Button. 1 out of 2. Double Tap to activate.'
  4. Swipe to the second element, expected reading: 'Settings Button. 2 out of 2. Double Tap to activate.'

Reproducible sample code

    <SegmentedControl
      selectedIndex={0}
      values={['Photos', 'Settings']}
    />

Partial fix: #219