Uh oh!
There was an error while loading. Please reload this page.
feat: set disabled accessibilityState when TouchableHighlight is disabled - #31135
feat: set disabled accessibilityState when TouchableHighlight is disabled#31135Naturalclar wants to merge 4 commits into
Conversation
Base commit: dbf5fa2 |
Base commit: dbf5fa2 |
kacieb
commented
Mar 16, 2021
This is great and those test cases are awesome! 😍 Thank you so much for working on this! @lunaleaps Do you think the component should also be disabled if accessibilityState.disabled=true, if the disabled prop is not set? Like in this PR: #31001 |
Yea! I think it'd be good to have this consistent across the components. @Naturalclar can you follow the logic in #31001 where |
Naturalclar
commented
Mar 18, 2021
@lunaleaps Sure thing! made the change in 4dc00ba |
facebook-github-bot
left a comment
There was a problem hiding this comment.
@kacieb has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
facebook-github-bot
commented
Mar 22, 2021
amarlette
commented
Mar 22, 2021
Thank you @Naturalclar for this contribution! I would like to give you a shout-out on Twitter and include you in our end-of-month issues update for your contribution. Do you have a Twitter we can tag? Is your twitter @ the same as your Github? |
Naturalclar
commented
Mar 22, 2021
@amarlette thank you! |
kacieb
commented
Mar 23, 2021
Thank you so much for this pull request!!! I made a few small changes to the test cases before landing, and wanted to let you know in case you write any future tests! Thanks so much for including the tests by the way, that will make sure this functionality doesn't break in the future. I changed the This is because Thanks again for helping improve React Native's accessibility! 🎉 |
#30950
Summary
automatically set
disabledto accessibilityState when TouchableHighlight is disabledChangelog
[General] [Changed] - Set disabled accessibilityState when TouchableHighlight is disabled
Test Plan
Tested on physical android device that pressing disabled TouchableHighlight announces "dim" when talkback is on