callstack / callstack/react-native-paper

Should Radio Buttons disable "Double tap to activate" when already activated? (Screenreaders only)

オープン
#4,344 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
question
主要言語
TypeScript
スター
14.5k
フォーク
2.2k
平均マージ
5日 23時間
マージ済み PR(30日)
12

説明

Hi there, I am assisting with the development of a mobile application and we are using react-native-paper as our underlying component library. We've noticed something very particular that was reported by our Accessibility compliance software - and wanted to make the library authors aware of it (as there's no way to change/alter this behavior as far as I can tell through the current component API).

Here are the conditions for the problem to arise:
- You are using Android OS and the [Accessibility Suite](https://play.google.com/store/apps/details?id=com.google.android.marvin.talkback&hl=en_US&gl=US) to enable [TalkBack](https://support.google.com/accessibility/android/answer/6007100?hl=en), which is a very common piece of software used by humans with visual disabilities.

Unfortunately, the expo snacks on expo.dev do not come with the accessibility suite installed, so to reproduce this might be a bit of work. I am attaching a video file (recorded from my personal iPhone) showing the current behavior. I also did create an expo snack just for the sake of you being able to see the code I was running in my demo (in the video I've attached). That expo snack is here:
- https://snack.expo.dev/@ediviney/react-native-paper---radio-button-screenreader-example

And here is the video of the behavior:

https://github.com/callstack/react-native-paper/assets/5143860/a6f117b4-1bea-43c7-a57b-c115a004fec0

Note specifically, the problem I am inquiring about is the screen-reader announcing "Double tap to activate" for ***already-selected radio buttons.

## My question:

Is it possible, or an accessiblity requirement to disable the screen-reader saying "Double tap to activate" on already-activated (selected) radio buttons? I imagine this would also apply to things like checkboxes.

I have done some research my own, and found a few stack overflow links that may or may not help shed some light on the situation, but I am almost inclined to say this is a native behavior that we cannot alter, and Android adds this label to anything that is clickable/pressable like buttons, checkboxes, radio buttons, etc.
- [Replace the whole announcemnt for "double tap to activate when talkback enabled](https://stackoverflow.com/questions/44037291/replace-the-whole-announcemnt-for-double-tap-to-activate-when-talkback-enabled)
- [How to change Android talkback instructions for double tap and long press](https://stackoverflow.com/questions/39455917/how-to-change-android-talkback-instructions-for-double-tap-and-long-press)
- [How do it disable message "double on tap" in view using talkback accessibility android?](https://stackoverflow.com/questions/40336288/how-do-it-disable-message-double-on-tap-in-view-using-talkback-accessibility-a/64475769#64475769)

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。