Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add failing test
  • Loading branch information
ZeeshanTamboli committed Feb 5, 2024
commit be2d0822712cb2f6b2f6348c415b50418fddcd5a
18 changes: 18 additions & 0 deletions packages/mui-material/src/styles/createTheme.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,24 @@ const theme = createTheme();
});
}

// props callback in variants
{
createTheme({
components: {
MuiButton: {
variants: [
{
props: (props) => props.color !== 'secondary',
style: ({ theme: { palette } }) => ({
backgroundColor: palette.grey[500],
}),
},
],
},
},
});
}

{
createTheme({
shape: {
Expand Down