Skip to content

fix(Chip): forward accessibilityState and aria-checked to interactive node - #5290

Open
EnesKartal wants to merge 1 commit into
callstack:mainfrom
EnesKartal:fix/chip-accessibility-state
Open

EnesKartal wants to merge 1 commit into
callstack:mainfrom
EnesKartal:fix/chip-accessibility-state

Conversation

@EnesKartal

Copy link
Copy Markdown
Contributor

Fixes #5146

Summary

  • Destructured aria-checked and accessibilityState in Chip so they are no longer spread onto the outer non-interactive Surface.
  • Forwarded accessibilityState and aria-checked={ariaChecked ?? accessibilityState?.checked} to the interactive TouchableRipple so checked state is exposed on both native and web.
  • Added unit tests in src/components/__tests__/Chip.test.tsx.

Test Plan

  • Verified locally with npx eslint src/components/Chip/Chip.tsx src/components/__tests__/Chip.test.tsx (0 errors) and npx jest src/components/__tests__/Chip.test.tsx (40/40 passed, 6/6 snapshots passed).

Copilot AI balanced review requested due to automatic review settings November 23, 2026 17:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@github-actions

Copy link
Copy Markdown

Found potential problems with the pull request:

  • Screenshot or video evidence is missing. Make sure to include one if it affects the UI.

@Doberjohn Doberjohn added this to the 6.1.0 milestone Nov 24, 2026
@Doberjohn

Copy link
Copy Markdown
Collaborator

Thanks! 6.0 now takes only regressions and major bugs, so this is on the 6.1.0 milestone and gets its review after 6.0.0. Could you add before and after screenshots or a short video in the meantime?

This branch has not been deployed

No deployments
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.

Chip: accessibilityState passed by caller is discarded; aria-checked is never forwarded to the real rendered node

3 participants