-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed
Labels
docsImprovements or additions to the documentation.Improvements or additions to the documentation.ready to takeHelp wanted. Guidance available. There is a high chance the change will be acceptedHelp wanted. Guidance available. There is a high chance the change will be acceptedscope: systemThe system, the design tokens / styling foundations used across components. eg. @mui/system with MUIThe system, the design tokens / styling foundations used across components. eg. @mui/system with MUI
Milestone
Description
When using createMuiTheme, along with overrides, we lose the context of the theme we customizing.
Here's a quick codesandbox which demonstrates the issue and also the desired (optional) solution:
https://codesandbox.io/s/jolly-aryabhata-8q37p
const theme = createMuiTheme({
shape: {
borderRadius: 4
},
overrides: {
MuiChip: {
root: {
borderRadius: 4
}
}
}
// this is what I would want
// overrides: (theme) => ({
// MuiChip: {
// root: {
// borderRadius: theme.shape.borderRadius
// }
// }
// })
});- The issue is present in the latest release.
- I have searched the issues of this repository and believe that this is not a duplicate.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
docsImprovements or additions to the documentation.Improvements or additions to the documentation.ready to takeHelp wanted. Guidance available. There is a high chance the change will be acceptedHelp wanted. Guidance available. There is a high chance the change will be acceptedscope: systemThe system, the design tokens / styling foundations used across components. eg. @mui/system with MUIThe system, the design tokens / styling foundations used across components. eg. @mui/system with MUI