Skip to content

feat: added aria-modal as alias for accessibilityViewIsModal(iOS) - #34506

Closed
dakshbhardwaj wants to merge 11 commits into
react:mainfrom
dakshbhardwaj:feat/add-aria-modal-alias-for-accessibility-view-is-modal
Closed

feat: added aria-modal as alias for accessibilityViewIsModal(iOS)#34506
dakshbhardwaj wants to merge 11 commits into
react:mainfrom
dakshbhardwaj:feat/add-aria-modal-alias-for-accessibility-view-is-modal

Conversation

@dakshbhardwaj

@dakshbhardwajdakshbhardwaj commented Aug 26, 2022

Copy link
Copy Markdown
Contributor

Summary

This adds the aria-modal prop to the components where it's used as requested on #34424, mapping web aria-modal to equivalent accessibilityViewIsModal

Changelog

[General] [Added] - Add aria-modal prop to basic component

TestPlan

Checked manually we are receiving the values by props.

@facebook-github-botfacebook-github-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 Aug 26, 2022
@github-actions

github-actionsBot commented Aug 26, 2022

Copy link
Copy Markdown
Warnings
⚠️📋 Missing Test Plan - Can you add a Test Plan? To do so, add a "## Test Plan" section to your PR description. A Test Plan lets us know how these changes were tested.

Generated by 🚫 dangerJS against ad116e0

@facebook-github-botfacebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Aug 26, 2022
@react-native-botreact-native-bot added the Type: Enhancement A new feature or enhancement of an existing feature. label Aug 26, 2022
@analysis-bot

analysis-bot commented Aug 26, 2022

Copy link
Copy Markdown
PlatformEngineArchSize (bytes)Diff
androidhermesarm64-v8a7,641,629+467
androidhermesarmeabi-v7a7,053,984+461
androidhermesx867,943,406+475
androidhermesx86_647,915,311+462
androidjscarm64-v8a9,514,777+390
androidjscarmeabi-v7a8,290,381+382
androidjscx869,454,094+379
androidjscx86_6410,045,174+390

Base commit: 82e9c6a
Branch: main

@cipolleschi

Copy link
Copy Markdown
Contributor

Hi @dakshbhardwaj, thanks for your PR. Could you please rebse this on main?

@dakshbhardwaj

dakshbhardwaj commented Aug 26, 2022

Copy link
Copy Markdown
ContributorAuthor

Hi @dakshbhardwaj, thanks for your PR. Could you please rebse this on main?

@cipolleschi I have rebased it with main

@analysis-bot

analysis-bot commented Aug 26, 2022

Copy link
Copy Markdown
PlatformEngineArchSize (bytes)Diff
ios-universaln/a--

Base commit: e8739e9
Branch: main

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@necolas has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Comment threadLibraries/Components/Pressable/Pressable.js Outdated
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@necolas has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Comment on lines +252 to +254
restProps['aria-modal'] !== null
? restProps['aria-modal']
: restProps.accessibilityViewIsModal,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
restProps['aria-modal']!==null
? restProps['aria-modal']
: restProps.accessibilityViewIsModal,
restProps['aria-modal']??restProps.accessibilityViewIsModal,

Comment on lines +168 to +170
this.props['aria-modal'] !== null
? this.props['aria-modal']
: this.props.accessibilityViewIsModal

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
this.props['aria-modal']!==null
? this.props['aria-modal']
: this.props.accessibilityViewIsModal
this.props['aria-modal']??this.props.accessibilityViewIsModal

Comment on lines +314 to +316
this.props['aria-modal'] !== null
? this.props['aria-modal']
: this.props.accessibilityViewIsModal

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
this.props['aria-modal']!==null
? this.props['aria-modal']
: this.props.accessibilityViewIsModal
this.props['aria-modal']??this.props.accessibilityViewIsModal

Comment on lines +305 to +307
this.props['aria-modal'] !== null
? this.props['aria-modal']
: this.props.accessibilityViewIsModal,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
this.props['aria-modal']!==null
? this.props['aria-modal']
: this.props.accessibilityViewIsModal,
this.props['aria-modal']??this.props.accessibilityViewIsModal,

Comment on lines +260 to +262
this.props['aria-modal'] !== null
? this.props['aria-modal']
: this.props.accessibilityViewIsModal

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
this.props['aria-modal']!==null
? this.props['aria-modal']
: this.props.accessibilityViewIsModal
this.props['aria-modal']??this.props.accessibilityViewIsModal

@dakshbhardwaj

Copy link
Copy Markdown
ContributorAuthor

@jacdebug i have pushed the changes

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @dakshbhardwaj in 095f19a.

When will my fix make it into a release? | Upcoming Releases

@react-native-botreact-native-bot added the Merged This PR has been merged. label Sep 12, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.MergedThis PR has been merged.Shared with MetaApplied via automation to indicate that an Issue or Pull Request has been shared with the team.Type: EnhancementA new feature or enhancement of an existing feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@dakshbhardwaj@analysis-bot@cipolleschi@facebook-github-bot@react-native-bot@necolas@jacdebug