-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
feat: Add aria-hidden prop to Pressable, View and Touchables components #34552
feat: Add aria-hidden prop to Pressable, View and Touchables components #34552
Conversation
Base commit: a50e6fb |
Base commit: a50e6fb |
@jacdebug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
We should also add this to |
Hi @necolas, my bad I forgot to update the other components, I've just pushed a commit adding |
Summary: While working on #34552 I noticed that a couple of words inside the Accessibility example files were misspelled. ## Changelog [Internal] [Fixed] - Fix accessibility example typos Pull Request resolved: #34559 Test Plan: Shouldn't require much testing as this is just fixing some typos inside Accessibility example Reviewed By: cipolleschi Differential Revision: D39252742 Pulled By: jacdebug fbshipit-source-id: 0d3860f438c55d58d0816b9ae65e52925864c8d3
@jacdebug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
f34f955
to
30d7aa2
Compare
30d7aa2
to
a2121a2
Compare
@jacdebug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
This pull request was successfully merged by @gabrieldonadel in ebdb23c. When will my fix make it into a release? | Upcoming Releases |
…ts (facebook#34552) Summary: This adds the ` aria-hidden` prop to `Pressable`, `TouchableBounce`, `TouchableHighlight`, `TouchableNativeFeedback`, `TouchableOpacity`, `TouchableWithoutFeedback` and `View` components as requested on facebook#34424, being an alias `importantforAccessibility='no-hide-descendants'` on Android and an alias for `accessibilityElementsHidden` on iOS. This PR also updates RNTester AccessibilityExample in order to facilitate the manual QA. ## Changelog [General] [Added] - Add aria-hidden prop to Pressable, View and Touchables components Pull Request resolved: facebook#34552 Test Plan: 1. Open the RNTester app and navigate to the Accessibility page 2. Test the `aria-hidden` prop through the `View with hidden children from accessibility tree` section, this can be tested either by enabling Voice Over if you're using a real device or through the Accessibility Inspector if you're using a simulator https://user-images.githubusercontent.com/11707729/187814455-6937e33e-7edd-434e-b7d3-ee6c03f635ca.mov Reviewed By: NickGerleman Differential Revision: D39206245 Pulled By: jacdebug fbshipit-source-id: 551dc671fbcedc824f253e22b8d7753c466838c7
Summary
This adds the
aria-hidden
prop toPressable
,TouchableBounce
,TouchableHighlight
,TouchableNativeFeedback
,TouchableOpacity
,TouchableWithoutFeedback
andView
components as requested on #34424, being an aliasimportantforAccessibility='no-hide-descendants'
on Android and an alias foraccessibilityElementsHidden
on iOS. This PR also updates RNTester AccessibilityExample in order to facilitate the manual QA.Changelog
[General] [Added] - Add aria-hidden prop to Pressable, View and Touchables components
Test Plan
aria-hidden
prop through theView with hidden children from accessibility tree
section, this can be tested either by enabling Voice Over if you're using a real device or through the Accessibility Inspector if you're using a simulatorScreen.Recording.2022-08-31.at.22.43.30.mov