-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clickable property requires "button" to be set as accessibilityRole #31033
Comments
From a technical perspective on the Android side, the onPress prop should set |
There's still some ambiguity here. I'm not sure what the right solution would be based on what you've said here. Can you do some background research and turn this into a more concrete proposal? |
Claiming this for now so I can update the issue with more research. |
Thanks a lot. I start investigating the issue, this are my notes.
the react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAccessibilityDelegate.java Lines 396 to 397 in 36f3bf2
adding react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.java Lines 56 to 58 in 57aa70c
react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.java Lines 229 to 257 in 57aa70c
|
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
This issue was closed because it has been stalled for 7 days with no activity. |
Description
When a component has an
onPress
property, it should be clickable by TalkBack even if it is not set to be a button. This was discovered here.This may require native changes on Android. It may also require an API change. From this comment, it is common on iOS for anything clickable to be called a "button" according to accessibility. This is not true on Android, when only things that look and feel like buttons should be labeled a button.
React Native version:
0.63
Steps To Reproduce
NOTE: More triage is needed to verify what happens on Android/iOS with these two cases.
Expected Results
Desired behavior on Android - Text node is clickable even if accessibilityRole is not "button"
Desired behavior on iOS - ?
The text was updated successfully, but these errors were encountered: