react / react/react-native

Android Talkback - Checkbox accessibility state stuck with announcing "mixed" once the mixed state is introduced

Offen
#44,960 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Issue: Author Provided Repro Needs: Attention Platform: Android
Vorherrschende Sprache
C++
Sterne
127k
Forks
25.3k
Ø Merge
1 T. 23 Std.
Gemergte PRs (30 T.)
4

Beschreibung

Description

When supplying an accessibility state for a checkbox it behaves as intended until you introduce a mixed state. Once the mixed state is introduced "mixed" will be announced every time the check box is interacted with again.

For instance initially a check box that isn't checked will be announced as Not checked checkbox and one that is would be announced as checked checkbox. The mixed state will correctly announced checkbox mixed, but if you change the checkbox to a checked or not checked state from here then it will announced Not checked/checked checkbox mixed. Which isn't correct and should match the original non confusing state.

Steps to reproduce
  1. install an application with yarn android
  2. make sure talkback is on
  3. click on a select all checkbox and notice the announced state
  4. select or deselect that checkbox and notice the changed announced state
  5. remove or add a selection as needed to get the "select all" checkbox into a mixed state
  6. Notice that the announced state is correct for the mixed state
  7. Reselect or deselect all the items in the list to get the checkbox to a checked or not checked state instead of mixed and notice that the announced state is now incorrect
React Native Version

0.73.8

Affected Platforms

Runtime - Android

Output of npx react-native info
System:
  OS: macOS 14.5
  CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Memory: 378.02 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 21.6.1
    path: /usr/local/bin/node
  Yarn:
    version: 3.6.4
    path: /usr/local/bin/yarn
  npm:
    version: 10.2.4
    path: /usr/local/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.15.2
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.5
      - iOS 17.5
      - macOS 14.5
      - tvOS 17.5
      - visionOS 1.2
      - watchOS 10.5
  Android SDK: Not Found
IDEs:
  Android Studio: 2023.1 AI-231.9392.1.2311.11076708
  Xcode:
    version: 15.4/15F31d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 18.0.2.1
    path: /usr/bin/javac
  Ruby:
    version: 2.7.8
    path: /usr/local/opt/ruby@2.7/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.8
    wanted: 0.73.8
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: false
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false
Stacktrace or Logs
N/A
Reproducer

https://github.com/department-of-veterans-affairs/va-mobile-app

Screenshots and Videos

https://github.com/facebook/react-native/assets/87150991/c2e368e0-daf7-4cf4-816c-557b3b286142

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne mit dem verlinkten Reproducer der VA mobile app und führe die aufgeführten Schritte yarn android und TalkBack auf Android aus. Überprüfe, dass die Checkbox-Zustände von nicht aktiviert oder aktiviert zu gemischt und zurück wechseln; die Aufgabe ist erledigt, wenn TalkBack nach jeder Interaktion nur den aktuellen aktivierten, nicht aktivierten oder gemischten Zustand ansagt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
android, react-native
Bereich
accessibility, mobile
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.