Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Fix accessibility in BottomSheet #468

Merged
merged 2 commits into from
Jul 6, 2020
Merged

Conversation

henrytao-me
Copy link
Contributor

@henrytao-me henrytao-me commented Jul 6, 2020

This PR fixes (hopefully all) accessibility issues related to BottomSheet and content underneath.

To prevent content underneath being read, we need to use accessibilityElementsHidden (for iOS) or importantForAccessibility (for Android) when BottomSheet is expanded. Ref https://reactnative.dev/docs/accessibility#accessibilityelementshidden-ios

Resolves #432

@henrytao-me henrytao-me requested a review from a team as a code owner July 6, 2020 21:44
@henrytao-me henrytao-me changed the title Fix accessibility in BottomSheet [WIP] Fix accessibility in BottomSheet Jul 6, 2020
Copy link
Member

@timarney timarney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a huge improvement :)

@timarney timarney self-requested a review July 6, 2020 22:31
@henrytao-me henrytao-me force-pushed the issue/432/accessiblity branch from bb3b74a to c4180d9 Compare July 6, 2020 22:58
@henrytao-me henrytao-me changed the title [WIP] Fix accessibility in BottomSheet Fix accessibility in BottomSheet Jul 6, 2020
@henrytao-me
Copy link
Contributor Author

Tested on both Android and iOS. I merge this for now. We can do follow up / revert PR if needed.

@henrytao-me henrytao-me merged commit afd2bdd into master Jul 6, 2020
@henrytao-me henrytao-me deleted the issue/432/accessiblity branch July 6, 2020 23:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants