Skip to content

Chip - expose selected prop to screen readers via accessibilityState#4024

Open
adids1221 wants to merge 1 commit into
masterfrom
fix/chip-selected-accessibility-clean
Open

Chip - expose selected prop to screen readers via accessibilityState#4024
adids1221 wants to merge 1 commit into
masterfrom
fix/chip-selected-accessibility-clean

Conversation

@adids1221
Copy link
Copy Markdown
Contributor

@adids1221 adids1221 commented May 27, 2026

Description

The Chip component had no way to communicate selection state to screen readers.
Passing accessibilityState via spread worked as a workaround but was undocumented and fragile.

Added selected as a first-class optional prop — when provided, it maps directly to accessibilityState={{selected}} on the container.
When omitted, behavior is identical to today.

Changelog

Chip - Added selected prop that exposes selection state to screen readers via accessibilityState

Additional info

N/A

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 27, 2026

✅ PR Description Validation Passed

All required sections are properly filled out:

  • Description
  • Changelog
  • Additional info

Your PR is good for review! 🚀


This validation ensures all sections from the PR template are properly filled.

@adids1221 adids1221 requested a review from M-i-k-e-l May 27, 2026 19:15
@adids1221 adids1221 changed the title fix(Chip): expose selected prop to screen readers via accessibilityState Chip - expose selected prop to screen readers via accessibilityState May 27, 2026
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.

2 participants