-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Modal
: add __experimentalHideHeader
prop, wrap in forwardref
#36831
Conversation
Size Change: +29 B (0%) Total Size: 1.1 MB
ℹ️ View Unchanged
|
contentLabel, | ||
onKeyDown, | ||
isFullScreen = false, | ||
__experimentalHideHeader = false, |
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.
Oh, interesting! I'll keep this convention in mind for future additions.
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.
Code looks good, storybook stories too, and all tests are passing. I think this is good to go!
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.
Looks good and tests well 🚀
Co-authored-by: Marin Atanasov <[email protected]>
Co-authored-by: Marin Atanasov <[email protected]>
Thank you @fullofcaffeine and @tyxla for the quick reviews 🙇 |
Description
This PR contains a few changes to the
Modal
component that are required by #34153__experimentalHideHeader
prop, which hides the header part of the modal (title, icon, close button) and adjust styles accordinglyforwardRef
, to allow external component to get a ref of the Modal's container//@ts-nocheck
comment at the start of each file (these comments will be removed when the component gets refactored to TypeScript)(Reviewing commit-by-commit should be an easier task)
How has this been tested?
Modal
Storybook example has been updated to showcase the__experimentalHideHeader
prop in the "knobs" tabScreenshots
modal-hide-header.mp4
Types of changes
New feature
Checklist:
*.native.js
files for terms that need renaming or removal).