callstack / callstack/react-native-paper

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

未关闭
#4,344 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
question
主要语言
TypeScript
星标
14.5k
派生
2.2k
平均合并
5 天 23 小时
30 天内合并 PR
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)

贡献指南

打开贡献指南

调研方向

首先,在启用 TalkBack 的 Android 上复现链接的 Expo Snack 中的行为,并以所附视频作为参考。检查 React Native Paper 单选按钮的无障碍行为,并确定平台是否支持所请求的播报变更。只有在就预期行为达成一致,并验证已选中单选按钮的结果后,才算完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
android, react-native
领域
accessibility, mobile
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。