-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: added aria-modal as alias for accessibilityViewIsModal(iOS) #34506
feat: added aria-modal as alias for accessibilityViewIsModal(iOS) #34506
Conversation
Base commit: 82e9c6a |
Hi @dakshbhardwaj, thanks for your PR. Could you please rebse this on |
@cipolleschi I have rebased it with |
Base commit: e8739e9 |
@necolas has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@necolas has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
…sibility-view-is-modal
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
…sibility-view-is-modal
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
…sibility-view-is-modal
restProps['aria-modal'] !== null | ||
? restProps['aria-modal'] | ||
: restProps.accessibilityViewIsModal, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
restProps['aria-modal'] !== null | |
? restProps['aria-modal'] | |
: restProps.accessibilityViewIsModal, | |
restProps['aria-modal'] ?? restProps.accessibilityViewIsModal, |
this.props['aria-modal'] !== null | ||
? this.props['aria-modal'] | ||
: this.props.accessibilityViewIsModal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.props['aria-modal'] !== null | |
? this.props['aria-modal'] | |
: this.props.accessibilityViewIsModal | |
this.props['aria-modal'] ?? this.props.accessibilityViewIsModal |
this.props['aria-modal'] !== null | ||
? this.props['aria-modal'] | ||
: this.props.accessibilityViewIsModal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.props['aria-modal'] !== null | |
? this.props['aria-modal'] | |
: this.props.accessibilityViewIsModal | |
this.props['aria-modal'] ?? this.props.accessibilityViewIsModal |
this.props['aria-modal'] !== null | ||
? this.props['aria-modal'] | ||
: this.props.accessibilityViewIsModal, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.props['aria-modal'] !== null | |
? this.props['aria-modal'] | |
: this.props.accessibilityViewIsModal, | |
this.props['aria-modal'] ?? this.props.accessibilityViewIsModal, |
this.props['aria-modal'] !== null | ||
? this.props['aria-modal'] | ||
: this.props.accessibilityViewIsModal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.props['aria-modal'] !== null | |
? this.props['aria-modal'] | |
: this.props.accessibilityViewIsModal | |
this.props['aria-modal'] ?? this.props.accessibilityViewIsModal |
@jacdebug i have pushed the changes |
@cipolleschi 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 @dakshbhardwaj in 095f19a. When will my fix make it into a release? | Upcoming Releases |
…cebook#34506) Summary: This adds the `aria-modal` prop to the components where it's used as requested on facebook#34424, mapping web [aria-modal](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-modal) to equivalent [accessibilityViewIsModal](iOS) ## Changelog [General] [Added] - Add aria-modal prop to basic component ## TestPlan Checked manually we are receiving the values by props. Pull Request resolved: facebook#34506 Reviewed By: jacdebug Differential Revision: D39060396 Pulled By: cipolleschi fbshipit-source-id: 80da100ff412b17ba29ddc6d811afb4b0207ac9f
Summary
This adds the
aria-modal
prop to the components where it's used as requested on #34424, mapping web aria-modal to equivalent accessibilityViewIsModalChangelog
[General] [Added] - Add aria-modal prop to basic component
TestPlan
Checked manually we are receiving the values by props.