question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IE11 :: Any Modal component :: content overflows

See original GitHub issue

Detailed description

Describe in detail the issue you’re having.

Only in IE11 if you have enough components (or text) rendered inside modal body so that scroll bar should appear, then somehow it doesn’t appear and content overflows.

Is this issue related to a specific component?

Modal, ModalWrapper, ComposedModal

What browser are you working in?

IE11

What version of the Carbon Design System are you using?

v9

Steps to reproduce the issue

  1. Go to http://react.carbondesignsystem.com/
  2. Go to 1st ModalWrapper example transactional/passive modal
  3. Launch modal

Additional information

screenshot 2019-02-18 at 16 27 21

p.s. I didn’t check is it carbon-components-react or carbon-components issue

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
st004547commented, Jul 16, 2020

Can be reproduced on https://react.carbondesignsystem.com/?path=/story/modal--default and turning on scrolling content via knobs.

I believe it’s the display: grid; in the css that is not fully supported by IE.

UPDATE: Based on https://create-react-app.dev/docs/post-processing-css/ adding /* autoprefixer grid: autoplace */ to the beginning of your css will allow autoprefixer to do it’s thing for the grid.

For Sass, /*! autoprefixer grid: autoplace */ seems to work.

And for completeness, there’s an env var option in here: https://stackoverflow.com/questions/54505882/autoprefixer-doesnt-work-in-create-react-app-while-using-sass

0reactions
elizabethsjuddcommented, Jun 7, 2019

We did extensive testing with this and unfortunately could not find a consistent way to achieve the desired behavior with CSS only but we have a fix that only gets triggered in IE11 in our JS that will set the height explicitly if needed: function that applies the height for IE11 and Remove the height on close

Read more comments on GitHub >

github_iconTop Results From Across the Web

IE11 :: Any Modal component :: content overflows · Issue #2532
Describe in detail the issue you're having. Only in IE11 if you have enough components (or text) rendered inside modal body so that...
Read more >
Flexbox overflowing container height in IE11 - css
I have a simple modal window which contains 3 flexible components in a column, header, footer and main. The plan is that the...
Read more >
Modal - UIkit
Modal. Create modal dialogs with different styles and transitions. Usage. The Modal component consists of an overlay, a dialog and an optional close...
Read more >
4 reasons your z-index isn't working (and how to fix it)
Solution: Move the modal outside of the content parent, and into the main stacking context of the page. ... Now, the modal element...
Read more >
bootstrap-ie11 | Internet Explorer 11 compatibility solution for ...
Internet Explorer 11 does not support vertical alignment of flex items when the flex container has a min-height . · The ie11CustomProperties polyfill...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found