Closed stubar closed 5 years ago
This is working in @material-ui/core@3.1.0
when using it like this:
import { createStyles, Theme } from "@material-ui/core/styles";
const styles = (myTheme: Theme) => createStyles({
root: {
marginLeft: myTheme.spacing.unit,
marginRight: myTheme.spacing.unit,
minWidth: 250,
maxWidth: 350,
flex: 1,
margin: "8px 0",
"& > *": {
width: "100%"
}
}
});
@oliviertassinari I guess this can be closed. This should even work in ^1.2.0
I guess this can be closed. This should even work in ^1.2.0
@eps1lon It's good to know.
React.CSSProperties now relies csstype as of the 8th of May (see https://www.npmjs.com/package/@types/react). So now my following code doesn't work...
since it is using "& > *" which isn't regular css. Are https://github.com/cssinjs/jss-nested nested style selectors no longer supported? (Or maybe they never were?)
I'm also getting "Type 'PaletteColor' is not assignable to type 'string'." for the following code...
not sure if related but it's started occurring at the same time.
Expected Behavior
above code to work after upgrading "@types/react"
Current Behavior
build fails due to typescript error
Steps to Reproduce (for bugs)
Context
Your Environment