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 9a88575 commit 65622f2Copy full SHA for 65622f2
packages/mui-system/src/createStyled/createStyled.js
@@ -66,7 +66,7 @@ function processStyleArg(callableStyle, { ownerState, ...props }) {
66
variants.forEach((variant) => {
67
let isMatch = true;
68
if (typeof variant.props === 'function') {
69
- isMatch = variant.props({ ownerState, ...props, ...ownerState });
+ isMatch = variant.props({ ...props, ...ownerState, ownerState });
70
} else {
71
Object.keys(variant.props).forEach((key) => {
72
if (ownerState?.[key] !== variant.props[key] && props[key] !== variant.props[key]) {
0 commit comments