-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Disabled TouchableOpacity buttons are not narrator-focusable #8781
Comments
@kim-allison what component are you using for your button? |
I'm using 'BasicButton'. |
I don't think |
Ah, my bad. |
@kim-allison one other bit is that Touchable has some internal logic which only defaults the view to be focusable if an onPress handler is present. Is one set on the button where you are seeing the issue? |
@NickGerleman Yes, I can confirm that the button has an onPress handler. |
Item should show up to Narrator in some way, but not be tabbable (disabled items shouldn't get keyboard focusable). @AgneLukoseviciute to check on the expected behavior here. |
I think that when an element is not visible, trying to retrieve it's automation peer will return null. My best guess is that Narrator focus requires an automation peer for focus and this might be the expected behavior. I'll check with some a11y folks offline to confirm. Also if the white box signifies keyboard focus is that the behavior we want? @rectified95 -- should a disabled Touchable receive keyboard focus? |
AFAIK disabled controls don't typically receive keyboard focus, not sure if they should. I don't know how that relates to Narrator, though |
I think narrator focus is behaving as expected here and it's actually the keyboard focus that isn't. Filed a separate issue to address that. |
Problem Description
Disabled buttons are focusable using UWP navigation controls but are not focusable using the narrator. Users should still be able to access disabled buttons with the narrator (ex. the narrator should read the button as 'disabled [button label] button').
Steps To Reproduce
Expected Results
Disabled 'Button 1' only has a white box around it (missing blue box) := no narrator focus.
'Button 2' has both boxes. Disabled 'Button 1' is expected to follow similar patterns.
CLI version
5.0.1
Environment
Target Platform Version
No response
Target Device(s)
Desktop
Visual Studio Version
Visual Studio 2019
Build Configuration
Debug
Snack, code example, screenshot, or link to a repository
No response
The text was updated successfully, but these errors were encountered: