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

A modal dialog experiment #1171

Merged
merged 3 commits into from
Oct 28, 2020
Merged

A modal dialog experiment #1171

merged 3 commits into from
Oct 28, 2020

Conversation

jameskerr
Copy link
Member

Here is an experiment for a new way to structure our modals. The goal is to give them more flexibility, while making it easy to still look consistent.

As part of the experiment, I re-did the "Debug Query" modal to use this new "ModalDialog" component. It has an enter and exit animation using CSSTransition, it pops down below the tab bar, it has a "Scrollable" container for content that can get very long, it has a footer component for the row of buttons, and it locks the rest of the screen using "pointer-events: none" on the body element when it's opened.

@jameskerr
Copy link
Member Author

I don't think this error is related to the changes.

@jameskerr jameskerr marked this pull request as ready for review October 28, 2020 22:22
Copy link
Contributor

@mason-fish mason-fish left a comment

Choose a reason for hiding this comment

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

Love it!


return ReactDOM.createPortal(
<Overlay>
<CSSTransition
Copy link
Contributor

Choose a reason for hiding this comment

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

Awesome, excited to get away from the anime lib and use this one more

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.

2 participants