Repository navigation
feat(renderer): add aria-modal prop - #877
Open
patrickkabwe wants to merge 1 commit into
Open
patrickkabwe wants to merge 1 commit into
patrickkabwe wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
patrickkabwe
force-pushed
the
feat/a11y-modal
branch
from
December 2, 2026 13:34
1455cd3 to
1325fbf
Compare
patrickkabwe
marked this pull request as ready for review
December 2, 2026 13:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #838 (step 8). Stacked on #874.
Views take
aria-modal, so screen readers ignore the view's siblings while it's shown, such as the screen behind a custom alert.accessibilityViewIsModal.IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, and their previous values are restored when the prop is cleared or the view detaches. Props are set before React adds the view to its parent, so hiding waits for the attach. The view's label also becomes its pane title, which TalkBack announces. Siblings added while the view is shown stay visible. The attach listener is only created for views that use the prop.BottomSheetDialogwindow, so nothing changes there.Tested on the iOS simulator and the Android emulator: with a sheet open, the accessibility tree only contains the sheet. On Android, the compressed uiautomator tree drops the items behind the overlay while it's shown and brings them back after "Cancel". On iOS, the external accessibility query used for testing doesn't apply VoiceOver's
accessibilityViewIsModalfiltering, so iOS was only checked as far as the prop reaching the view. The Android pane title wasn't checked separately. TalkBack and VoiceOver themselves were not run.Re-tested after the move to ARIA names and the rebase onto main: with the
aria-modaloverlay open, the compressed Android tree only holds the overlay, and the list comes back after "Cancel".