-
Notifications
You must be signed in to change notification settings - Fork 30
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
Peter/feat modal component #319
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Running Lighthouse audit... |
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.
Hi Peter - overall looks really good :) nice solution. A few comments, let me know if you want to talk anything through.
Hello @tomjeatt. Thanks for the thorough review :) I handled your comments, so feel free to re-review 👍 |
…eat-modal-component
e430faa
to
cd7d36b
Compare
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.
Look great :) thanks Peter
Adds the Modal component to the component library:
open
prop passed to it istrue
modal opens, when set tofalse
modal closesonClose
callback is called when there is click outside the modal, close button is clicked orEscape
key is pressedThis PR also adds Portal component and custom hook to delay unmounting of the component in order to animate the closing of the modal.