react-native-paper icon indicating copy to clipboard operation
react-native-paper copied to clipboard

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

Open ericdiviney opened this issue 1 year ago • 0 comments

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 to enable TalkBack, 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.

ericdiviney avatar Mar 15 '24 15:03 ericdiviney