-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
Closed
Labels
package: styled-engineSpecific to @mui/styled-engineSpecific to @mui/styled-enginev5.x migrationwaiting for 👍Waiting for upvotes. Open for community feedback and needs more interest to be worked on.Waiting for upvotes. Open for community feedback and needs more interest to be worked on.
Description
I'm using the following pattern in my code, but it doesn't work anymore in v5 (tested with 5.0.0-alpha.20). My custom styles get overwritten by other styles (likely coming from the new styling mechanism):
const styles = theme => ({
title: {
[theme.breakpoints.down('sm')]: theme.typography.body1
}
})
function App({ classes }) {
return <Typography variant="h5" classes={{h5:classes.title}}>Hello</Typography>;
}
const StyledApp = withStyles(styles)(App);
matthlavacka, radicand, strangedev, ifndefdeadmau5, oliviertassinari and 14 moreahayes91, rodamaral, roveroniandrea, mbrevda, paullaros and 1 more
Metadata
Metadata
Assignees
Labels
package: styled-engineSpecific to @mui/styled-engineSpecific to @mui/styled-enginev5.x migrationwaiting for 👍Waiting for upvotes. Open for community feedback and needs more interest to be worked on.Waiting for upvotes. Open for community feedback and needs more interest to be worked on.