Skip to content

Commit

Permalink
fix applyDarkStyles
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Jan 18, 2024
1 parent 88b6c5e commit 310b21f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/mui-joy/src/styles/defaultTheme.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('defaultTheme', () => {
'unstable_sx',
'shouldSkipGeneratingVar',
'generateCssVars',
'applyDarkStyles',
'applyStyles',
]).to.includes(field);
});
});
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/Avatar/Avatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const AvatarRoot = styled('div', {
}
: {
backgroundColor: theme.palette.grey[400],
...theme.applyDarkStyles({ backgroundColor: theme.palette.grey[600] }),
...theme.applyStyles('dark', { backgroundColor: theme.palette.grey[600] }),
}),
},
},
Expand Down

0 comments on commit 310b21f

Please sign in to comment.