-
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 overflow on IE11 #8176
Fix modal overflow on IE11 #8176
Conversation
Deploy preview for carbon-elements ready! Built with commit 75acfa4 |
Deploy preview for carbon-components-react ready! Built without sensitive environment variables with commit 75acfa4 https://deploy-preview-8176--carbon-components-react.netlify.app |
Hi @tw15egan, I'm trying to use the Netlify deployed version https://deploy-preview-8176--carbon-components-react.netlify.app/ on IE11 unsuccessfully. Is there any known issue with this? It seems to happen in all recent Carbon versions (not in the old ones, e.g. I tried one in July) Is this a known issue? If so, can you please advise on how to test this? Thanks in advance |
@carlosparreno I will pull it down locally and verify. I believe some of the theme storybook additions (which are only in the prod deploy) may not be IE11 compatible |
Great!! Thanks, @tw15egan ! |
@carlosparreno upon taking a look, I'm seeing this is adding IE-specific media queries. In your application, when you compile the styles, these IE media queries should be added automatically when using something like autoprefixer. Can you confirm that you are using an |
What is weird, though, is that You can see on the left that it is getting them for flex though. @tay1orjones any ideas? |
Hi @tw15egan, thanks for your reply: We are not using autoprefixer. As per my understanding, all the css in carbon is ready to consume as you import As you say, the Modal does not seem to be picking up grid-specific media queries for IE. This is reproducible here if you extend the content text until it overflows the footer section: https://the-carbon-components.netlify.app/?nav=modal Could you please advise on how to compile this in my application or otherwise where to look at it in Carbon and fix it myself? Thanks TJ! |
Hi @tw15egan, Just wondering if you had a chance to look at my comment above ⬆️ . Thanks a lot in advance 🤗 |
@carlosparreno I just added #8215 that updates our browser matrix to include the ie11 grid options for autoprefixer to our compiled css. In terms of enabling autoprefixer as part of your build process, you can take a look at their docs here: https://github.com/postcss/autoprefixer The PR I mentioned updates our |
@carlosparreno Could you confirm #8215 @tw15egan created fixes the issue for you? It has been released in v10.32.0. I think we can close this one in favor of that fix. |
Hi @tay1orjones , I did a quick test in the vanilla version https://the-carbon-components.netlify.app/?nav=modal and I still see the issue. See image: The modal buttons are hidden when the content is too large and the CSS IE11 specific is not present. Maybe the link above isn't still updated with the latest Carbon version ? Also, @tw15egan mentioned to me that I needed to use the autoprefixer in my app. I'm a little bit confused by that. As per my understanding, the components are working in IE11 out of the box. Also, I didn't see any step in the install documentation regarding autoprefixer either https://www.carbondesignsystem.com/developing/react-tutorial/step-1/. Therefore, my guess is that autoprefixer adds the CSS browser-specific in Carbon as part of the build process and the output is shipped supporting IE11. Am I understanding this right? Thanks a lot in advance. |
@carlosparreno Yes, if you import and use the compiled css. Search/find there for This codesandbox uses the css directly and so should show it with the prefixes in IE11. |
Cool, I get it. And it's working now as you could also show in your All good now, I'm closing this. Thank you all! |
DCO Assistant Lite bot All contributors have signed the DCO. |
I have read the DCO document and I hereby sign the DCO. |
@carlosparreno Awesome! Glad we could help you get that sorted out, and thanks for pointing out that issue 👍🏻 |
Closes #6919
display: grid
,grid-template-columns
andgrid-template-rows
are not supported in IE11. Instead we need to use their correspondent IE11 values:-ms-grid
,-ms-grid-row
and-ms-grid-column
Changelog
Changed
Testing / Reviewing
{{ Add descriptions, steps or a checklist for how reviewers can verify this PR works or not }}