Skip to content

Commit daf9c7d

Browse files
tw15eganemyarod
andauthored
fix(modal): ensure modal renders correctly on mobile safari (#5776)
* fix(modal): ensure modal renders correctly on mobile safari * fix(modal): set position fixed for all mobile devices * Update packages/components/src/components/modal/_modal.scss Co-Authored-By: emyarod <emyarod@users.noreply.github.com> Co-authored-by: emyarod <emyarod@users.noreply.github.com>
1 parent f295123 commit daf9c7d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/components/src/components/modal/_modal.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@
6767
}
6868

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

8687
@include carbon--breakpoint(md) {
88+
position: static;
8789
width: 84%;
8890
max-height: 90%;
8991
height: auto;

0 commit comments

Comments
 (0)