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

Modal responsive refactor #512

Merged
merged 2 commits into from
Mar 15, 2018
Merged

Modal responsive refactor #512

merged 2 commits into from
Mar 15, 2018

Conversation

snide
Copy link
Contributor

@snide snide commented Mar 14, 2018

Demonstration gif

Fixes #48

Makes the following changes:

  1. EuiModal now has a max-height on desktop. EuiBody will overflow as needed if the content gets too long. This fixes a possible bug they had.
  2. EuiModal now flips into a fixed position mode when on mobile screens. This treats it more like a takeover overflow.
  3. Both of these concepts are similar to how we're handling EuiFlyout.
  4. Adds an always there close button in the header.

@snide snide added the bug label Mar 14, 2018
Copy link
Contributor

@pugnascotia pugnascotia left a comment

Choose a reason for hiding this comment

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

I love it!

@snide snide merged commit cac5c78 into elastic:master Mar 15, 2018
@snide snide deleted the mobile/modals branch March 15, 2018 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Responsive modals
2 participants