We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecda71a commit 27359e4Copy full SHA for 27359e4
packages/material-ui/src/styles/muiStyled.js
@@ -34,14 +34,14 @@ const getVariantStyles = (name, theme) => {
34
};
35
36
const variantsResolver = (props, styles, theme, name) => {
37
- const { state = {} } = props;
+ const { styleProps = {} } = props;
38
let variantsStyles = {};
39
const themeVariants = theme?.components?.[name]?.variants;
40
if (themeVariants) {
41
themeVariants.forEach((themeVariant) => {
42
let isMatch = true;
43
Object.keys(themeVariant.props).forEach((key) => {
44
- if (state[key] !== themeVariant.props[key]) {
+ if (styleProps[key] !== themeVariant.props[key]) {
45
isMatch = false;
46
}
47
});
0 commit comments