Skip to content

Reuse TouchableHighlight accessibility state without ARIA overrides (#59807) - #59807

Merged
meta-codesync[bot] merged 1 commit into
react:mainfrom
javache:export-D129885143
Nov 13, 2026
Merged

meta-codesync[bot] merged 1 commit into
react:mainfrom
javache:export-D129885143

Conversation

@javache

@javache javache commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

Use the supplied accessibilityState as the default and only build a new state object when an ARIA state prop overrides it. This avoids reconstructing a sparse state object with extra undefined fields when no ARIA override is supplied. ARIA precedence and the explicit disabled override are unchanged.

Refresh the affected snapshots and assert that the button keeps its empty accessibility state.

Changelog: [Internal]

Differential Revision: D129885143

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 5, 2026
@facebook-github-tools facebook-github-tools Bot added p: Facebook Partner: Facebook Partner labels Nov 5, 2026
@meta-codesync

meta-codesync Bot commented Nov 5, 2026

Copy link
Copy Markdown

@javache has exported this pull request. If you are a Meta employee, you can view the originating Diff in D129885143.

@meta-codesync meta-codesync Bot changed the title Reuse TouchableHighlight accessibility state without ARIA overrides Reuse TouchableHighlight accessibility state without ARIA overrides (#59807) Nov 9, 2026
javache added a commit to javache/react-native that referenced this pull request Nov 9, 2026
…eact#59807)

Summary:

Use the supplied `accessibilityState` as the default and only build a new state object when an ARIA state prop overrides it. This avoids reconstructing a sparse state object with extra undefined fields when no ARIA override is supplied. ARIA precedence and the explicit `disabled` override are unchanged.

Refresh the affected snapshots and assert that the button keeps its empty accessibility state.

Changelog: [Internal]

Differential Revision: D129885143
@javache
javache enabled auto-merge (squash) November 10, 2026 16:17
@javache
javache disabled auto-merge November 10, 2026 16:18
@javache javache closed this Nov 10, 2026
@javache javache reopened this Nov 10, 2026
…eact#59807)

Summary:

Use the supplied `accessibilityState` as the default and only build a new state object when an ARIA state prop overrides it. This avoids reconstructing a sparse state object with extra undefined fields when no ARIA override is supplied. ARIA precedence and the explicit `disabled` override are unchanged.

Refresh the affected snapshots and assert that the button keeps its empty accessibility state.

Changelog: [Internal]

Differential Revision: D129885143
javache added a commit to javache/react-native that referenced this pull request Nov 11, 2026
…eact#59807)

Summary:

Use the supplied `accessibilityState` as the default and only build a new state object when an ARIA state prop overrides it. This avoids reconstructing a sparse state object with extra undefined fields when no ARIA override is supplied. ARIA precedence and the explicit `disabled` override are unchanged.

Refresh the affected snapshots and assert that the button keeps its empty accessibility state.

Changelog: [Internal]

Differential Revision: D129885143
@javache
javache force-pushed the export-D129885143 branch 2 times, most recently from 2a3d836 to 1839a14 Compare November 11, 2026 16:47
@meta-codesync
meta-codesync Bot merged commit 649c105 into react:main Nov 13, 2026
86 of 87 checks passed
@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @javache in 649c105

When will my fix make it into a release? | How to file a pick request?

@react-native-bot react-native-bot added the Merged This PR has been merged. label Nov 13, 2026
@javache
javache deleted the export-D129885143 branch November 13, 2026 17:01
usama-liaqat pushed a commit to usama-liaqat/react-native that referenced this pull request Nov 14, 2026
…eact#59807)

Summary:

Use the supplied `accessibilityState` as the default and only build a new state object when an ARIA state prop overrides it. This avoids reconstructing a sparse state object with extra undefined fields when no ARIA override is supplied. ARIA precedence and the explicit `disabled` override are unchanged.

Refresh the affected snapshots and assert that the button keeps its empty accessibility state.

Changelog: [Internal]

Differential Revision: D129885143

Pull Request resolved: react#59807
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants