You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import CssBaseline from "@material-ui/core/CssBaseline";
and rendering the should
"inject" a style tag MuiCssBaseline in the head, which contains css rules
Just run and inspect DOM or look at the body margin and the red background color
You may also inspect the head for <style data-jss="" data-meta="MuiCssBaseline"> and look that it is empty
Context 🔦
downgrading to jss 10.0.0-alpha.7 or removing it, fixes the issue.
apparently, this removes all base css, including resetting body margin to zero.
I know this is an alpha package of the jss but I thought reporting the issue to help with the future stable release. Unfortunately, I do not have the time to find exactly what causes it other than my initial guess that it could be related to cssinjs/jss#934
Hi, @material-ui/core doesn't support the new version of jss. If you want to use it you will need to use @material-ui/styles. https://codesandbox.io/s/81zp96qy2j
Expected Behavior 🤔
import CssBaseline from "@material-ui/core/CssBaseline";
<style data-jss="" data-meta="MuiCssBaseline"> ...css rules </style>and rendering the should
"inject" a style tag MuiCssBaseline in the head, which contains css rules
Current Behavior 😯
The "injected" style tag MuiCssBaseline in the head is empty
<style data-jss="" data-meta="MuiCssBaseline"> </style>Steps to Reproduce 🕹
Link:
https://codesandbox.io/s/rm3r2vrmxn
Context 🔦
downgrading to jss 10.0.0-alpha.7 or removing it, fixes the issue.
apparently, this removes all base css, including resetting body margin to zero.
I know this is an alpha package of the jss but I thought reporting the issue to help with the future stable release. Unfortunately, I do not have the time to find exactly what causes it other than my initial guess that it could be related to cssinjs/jss#934
Your Environment 🌎
"@material-ui/core": "3.9.0",
"jss": "10.0.0-alpha.8",
"prop-types": "latest",
"react": "latest",
"react-dom": "latest",
"react-scripts": "latest"
The text was updated successfully, but these errors were encountered: