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

fix(Modal): limit height of modal, and allow for vertical scroll #250

Merged
merged 1 commit into from
Oct 19, 2021

Conversation

agreatscott
Copy link
Contributor

close #249

An ugly diff because of the initial prettier run, but the important changes are to the Modal code itself and the addition of the ScrollableModal story.

Not yet quite what design communicated to us verbally as their dream state, but this is an easy stopgap to put us in the realm of what's acceptable and usable.

Comment on lines +14 to +15
overflow: scroll;
max-height: 80vh;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These two lines should be all that's new in this file.

Copy link
Collaborator

@akdetrick akdetrick left a comment

Choose a reason for hiding this comment

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

Looking good - I will file a follow up to change some styling so that the header (or at least the close button) stays in view while scrolling

@agreatscott agreatscott merged commit eb37832 into master Oct 19, 2021
akdetrick pushed a commit that referenced this pull request Oct 19, 2021
### [1.2.1](v1.2.0...v1.2.1) (2021-10-19)

### Bug Fixes

* **Modal:** limit height of modal, and allow for vertical scroll ([#250](#250)) ([eb37832](eb37832))
@akdetrick
Copy link
Collaborator

🎉 This PR is included in version 1.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

[Modal] Modals with either large content or on small screens will overflow, and not scroll
2 participants