-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix(modal): ensure modal renders correctly on mobile safari #5776
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this resolves the issue (tested on mobile safari with a local build)
looks like the original position: relative
is just carried over from 4dcd149. just wondering, instead of adding a specific media query could we make position: fixed; top: 0
the default behavior change the position
back to its initial value at larger breakpoints?
@emyarod Yeah let's just do that instead |
Deploy preview for carbon-elements ready! Built with commit 6c2e01c |
Deploy preview for carbon-components-react ready! Built with commit 6c2e01c https://deploy-preview-5776--carbon-components-react.netlify.com |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 - I think the change would affect some demonstration sites where modal is demonstrated in a non-<iframe>
, non-full-window container, but I guess they have to override the style to make it work. Thanks @tw15egan!
Closes #5755
Fixes a bug in regards to mobile Safari and the way they render the bottom menu bar (see link for more info). Uses browser-specific media query to fix the issue (MDN)
Changelog
New
Testing / Reviewing
Test out
Modal
on an iPhone, or use the simulator via Xcode