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): ensure modal renders correctly on mobile safari #5776

Merged
merged 10 commits into from
Apr 3, 2020
4 changes: 3 additions & 1 deletion packages/components/src/components/modal/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
}

.#{$prefix}--modal-container {
position: relative;
position: fixed;
top: 0;
display: grid;
grid-template-rows: auto 1fr auto;
grid-template-columns: auto;
Expand All @@ -84,6 +85,7 @@
transition: transform $duration--moderate-02 motion(exit, expressive);

@include carbon--breakpoint(md) {
position: static;
width: 84%;
max-height: 90%;
height: auto;
Expand Down