Skip to content

feat(renderer): add aria-hidden prop - #866

Open
patrickkabwe wants to merge 1 commit into
feat/a11y-statefrom
feat/a11y-hidden
Open

patrickkabwe wants to merge 1 commit into
feat/a11y-statefrom
feat/a11y-hidden

Conversation

@patrickkabwe

@patrickkabwe patrickkabwe commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #838 (step 5). Stacked on #865.

Views take aria-hidden, which hides a view and its children from screen readers.

<View accessible aria-label="Rain, 12 degrees">
  <Image image={rainIcon} layout={{ width: 24, height: 24 }} aria-hidden />
  <Text>12°</Text>
</View>
  • iOS: maps to accessibilityElementsHidden. A grouped container already skips hidden children when it builds its label from step 1.
  • Android: maps to IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS. accessible sets the same property, so both setters now compute it together: hidden wins, then accessible gives YES, otherwise AUTO.
  • The Native List example hides each row's filler "Additional content line" texts, so a grouped row reads only its title and index.

Tested on the iOS simulator: rows read "List item 2, Index 1 · Blue context" without the filler lines. On the Android emulator, the filler lines are gone from the compressed uiautomator tree and each row keeps its title and index. The debug first-row bind warning measured 18.2 ms with the prop and 31.2 ms without on warm launches, so there's no visible cost. TalkBack itself was not run.

Re-tested after the move to ARIA names and the rebase onto main: aria-hidden still drops the filler lines from grouped rows on both platforms.

@vercel

vercel Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
nitro-ui-docs Ready Ready Preview Dec 2, 2026 1:34pm UTC

Request Review

@patrickkabwe patrickkabwe changed the title feat(renderer): add accessibilityHidden prop feat(renderer): add aria-hidden prop Dec 2, 2026
@patrickkabwe
patrickkabwe added this pull request to stack #951 December 2, 2026 13:39
@patrickkabwe
patrickkabwe marked this pull request as ready for review December 2, 2026 13:39
@patrickkabwe
patrickkabwe requested a review from hannojg December 2, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant