[IE11] Material-UI styles are not isolated between components
See original GitHub issueDescribe the bug
In Internet Explorer 11, when having multiple direflow components using material-ui components in the same page, styles are not isolated between components. It leads to a corrupted style.
I think CSS encapsulation in web components has some limitations, especially when using Internet Explorer. We should use a prefix or something to make any CSS class unique and avoid any style corruption.
I will submit a pull request very soon to fix this issue.
To reproduce
Steps to reproduce the behavior:
git clone https://github.com/alex-fournier/hello-direflow.git
cd hello-direflow
yarn install
yarn start
- Open
http://localhost:3000
in IE 11 - The
Select
mui component in Foo component is broken due to the styles added byButton
mui component in Bar component.
Expected behavior
Material-UI styles should be encapsulated in shadow dom and should not impact other components.
Package Manager:
To install Direflow, I used yarn
Expected
Actual result in IE11
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
react material-ui on IE 11 - Stack Overflow
I'm working on a react site that makes use of Material-ui components. I couldn't get ...
Read more >Supported platforms - Material UI - MUI
IE 11 · Some of the components have no support. For instance, the new components, the data grid, the date picker. · Some...
Read more >Isolating styles for Internet Explorer with Styled Components
Organising styles to isolate those for old browsers. Making CSS maintainable and of clear intention.
Read more >CHANGELOG.old.md - mui/material-ui - Sourcegraph
You can find the component in the lab. Simplify the theme overrides with TypeScript for the components in the lab (#21279) @CarsonF. In...
Read more >5 reasons or thoughts on Fluent UI Web - N8D
Fluent UI is not the new Office UI Fabric. It is the upcoming and continually evolving design system for Microsoft 365.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes sorry, kind of got carried away with stuff. I’ll make sure to approve it asap, so that it won’t be a blocker for you anymore
Thanks a lot 😃