Skip to content

fix(Chip): expose selected prop to screen readers via accessibilityState#4023

Closed
adids1221 wants to merge 4 commits into
masterfrom
fix/chip-selected-accessibility
Closed

fix(Chip): expose selected prop to screen readers via accessibilityState#4023
adids1221 wants to merge 4 commits into
masterfrom
fix/chip-selected-accessibility

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

adids1221 and others added 4 commits May 20, 2026 12:51
Adds a Claude Code skill for react-native-ui-lib users. Includes:
- Component lookup via node_modules api.json files (batched, fast)
- Layout-to-component mapping table
- Styling guide: modifiers, spacing, design tokens, typography, shadows
- Component intelligence: intent classification, discovery loop, props triage
- Getting started: install, peer deps, ThemeManager setup
- Theming guide: Colors, Typography, Spacings, ThemeManager overrides

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds install-skills.js at the package root — copies the uilib-codegen
skill into .claude/skills/ in the user's project.

Usage: node node_modules/react-native-ui-lib/install-skills.js

Also adds skills/ and install-skills.js to the package.json files field
so they are included in the npm publish.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
Copy link
Copy Markdown
Contributor Author

Closing in favor of #4024 which contains only the Chip accessibility fix, without the unrelated skills changes.

@adids1221 adids1221 closed this May 27, 2026
@adids1221 adids1221 removed the request for review from M-i-k-e-l May 27, 2026 19:15
@adids1221 adids1221 deleted the fix/chip-selected-accessibility branch May 27, 2026 19:15
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