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 min-width issue in IE11 #1174

Merged
merged 3 commits into from
Sep 7, 2018
Merged

Fix modal min-width issue in IE11 #1174

merged 3 commits into from
Sep 7, 2018

Conversation

snide
Copy link
Contributor

@snide snide commented Sep 7, 2018

Summary

IE has trouble with min-widths and flex boxes if not used as as a pixel value. This PR makes the min-width use our max-form width (400px) as the min-width we'd accept on a modal. I picked that value because it's good for short notices, and our modals tend to hold input values of some kind. I updated our default modal to not use style tags for width so this would be a better default for IE11.

image

Checklist

  • This works well on mobile
  • This was checked in IE11
  • This was checked in dark mode
  • Any props added have proper autodocs
  • Proper documentation examples were added
  • A changelog entry exists and is marked appropriately
  • This was checked for breaking changes or labeled appropriately
  • Jest tests were added to match the most common scenarios
  • This was checked against keyboard-only and screenreader scenarios

@snide snide requested review from cchaos and ryankeairns September 7, 2018 20:55
@snide
Copy link
Contributor Author

snide commented Sep 7, 2018

cc @LeeDr

*/

.euiModal {
border: $euiBorderThin;
@include euiBottomShadowLarge($adjustBorders: true);
display: flex; /* 1 */

position: relative;
position: relatie;
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like a misspell here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh. Good catch. My vim fingers must have slipped!

@snide snide merged commit 37fc705 into elastic:master Sep 7, 2018
@snide snide deleted the ie/modal branch September 7, 2018 21:23
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