Feat/accessibility state alias#34524
Conversation
|
Hi @necolas, I will be adding other components to this PR. |
|
Please take a look at the failing tests. thanks |
|
Yes, looking into it. |
Base commit: 62f83a9 |
Base commit: 62f83a9 |
|
@jacdebug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
Hi @necolas, I've added alias for core components. Just wanted clarification regarding failing test cases for undefined values. |
|
If in review a member of RN wants to do things differently for undefined values, they can bring that up. But you should update the snapshots so tests pass. |
|
@necolas updated all snapshots. |
|
@jacdebug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@jacdebug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
This pull request was successfully merged by @ankit-tailor in 98d84e5. When will my fix make it into a release? | Upcoming Releases |
Summary: `aria-checked` prop should accept `mixed` as value as given [here](https://www.w3.org/WAI/GL/wiki/Using_WAI-ARIA_aria-checked%3Dmixed) and also [accessibilityState.checked](https://reactnative.dev/docs/accessibility#accessibilitystate) accepts mixed to represent checkboxes. This change refers to issue #34424 and PR #34524 ## Changelog [General] [Added] - Added `mixed` value for `aria-checked`. Pull Request resolved: #34633 Test Plan: ```js <TouchableOpacity accessibilityRole="checkbox" aria-checked="mixed" accessibilityHint="click me to change state"> <Text>Checkbox example</Text> </TouchableOpacity> ``` Reviewed By: lunaleaps Differential Revision: D39382158 Pulled By: necolas fbshipit-source-id: fa026274111305cc0bcbb42ed974ca1be7d779a5
Summary
This adds aliasing for accessibility state, it's used as requested on #34424.
Changelog
[General] [Added] - Add aria-disabled, aria-busy, aria-checked, aria-expanded and aria-selected prop to core components
Test Plan