-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[styles] Rendering in shadow dom after upgrade to v5 #24204
Comments
Fab and other button components lose their style with 5.0.0-alpha.21 (#12032). Downgrading to alpha.20 resolves the problem for now. |
Related to rendering the components in a different mounting point, e.g. #24097 (comment). |
Similarly to how you have a code for injecting the JSS styles in different mounting point, you need to do the same with emotion. Here is a working example: https://codesandbox.io/s/material-demo-forked-uypm3?file=/index.tsx |
Duplicate of #24109 |
For people with a similar issue, I solved it by removing package lock files and the old |
Some components will lose part of styles after the version was updated to v5.
Current Behavior 😯
version 5 -> the blue label will lose the font style on v5.
Expected Behavior 🤔
The expected result is that the component has the font style as the same as the below picture from version 4.
Steps to Reproduce 🕹
Sandbox showing the font style included in with @material-ui/core 4.11.2: https://codesandbox.io/s/material-demo-forked-5lveb?file=/arrival-label.tsx
Sandbox showing the font style lost with @material-ui/core 5.0.0-alpha-21: https://codesandbox.io/s/material-demo-forked-bioll?file=/TemporaryDrawerLoseFocus.tsx
Context 🔦
The issue comes out after the material-ui updated to v5.
Your Environment 🌎
`npx @material-ui/envinfo`
The text was updated successfully, but these errors were encountered: