-
Notifications
You must be signed in to change notification settings - Fork 89
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
Simplify modal structure #413
Conversation
a7f42ce
to
1229b23
Compare
This comment has been minimized.
This comment has been minimized.
<div className="modal modal-top" onClick={e => e.stopPropagation()}> | ||
<div className="modal-header"> | ||
<div className="modal" onClick={e => e.stopPropagation()}> | ||
<div> | ||
<button className="close-button" onClick={closePortal}> | ||
<X /> | ||
</button> | ||
</div> | ||
<div className="modal-body"> |
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.
Can we get rid of the modal body div?
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.
@domoritz I tried but it is messing up with the examples modal and the close button is also getting misaligned. Can you try for yourself once again?
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.
Yep, doesn't work.
Fixes #405
I have tried to remove redundancy as much as possible.