Skip to content
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

Merged
merged 3 commits into from
Jul 27, 2019
Merged

Simplify modal structure #413

merged 3 commits into from
Jul 27, 2019

Conversation

algomaster99
Copy link
Member

Fixes #405

I have tried to remove redundancy as much as possible.

@algomaster99

This comment has been minimized.

@algomaster99 algomaster99 changed the title Simplify modal structure [WIP] Simplify modal structure Jul 27, 2019
@algomaster99 algomaster99 changed the title [WIP] Simplify modal structure Simplify modal structure Jul 27, 2019
<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">
Copy link
Member

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?

Copy link
Member Author

@algomaster99 algomaster99 Jul 27, 2019

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?

Copy link
Member

Choose a reason for hiding this comment

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

Yep, doesn't work.

@domoritz domoritz self-requested a review July 27, 2019 19:39
@domoritz domoritz merged commit c969f3f into master Jul 27, 2019
@domoritz domoritz deleted the simplify-modal-code branch July 27, 2019 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simplify modal code
2 participants