Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp authored Jul 3, 2022
1 parent 237f6e6 commit 41debd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const SnackbarContentRoot = styled(Paper, {
return {
...theme.typography.body2,
color: theme.vars
? theme.vars.palette.SnackbarContent.text
? theme.vars.palette.SnackbarContent.color
: theme.palette.getContrastText(backgroundColor),
backgroundColor: theme.vars ? theme.vars.palette.SnackbarContent.bg : backgroundColor,
display: 'flex',
Expand Down
4 changes: 2 additions & 2 deletions packages/mui-material/src/styles/experimental_extendTheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export default function extendTheme(options = {}, ...args) {
setColor(palette.SnackbarContent, 'bg', snackbarContentBackground);
setColor(
palette.SnackbarContent,
'text',
'color',
lightPalette.getContrastText(snackbarContentBackground),
);
setColor(palette.SpeedDialAction, 'fabHoverBg', emphasize(palette.background.paper, 0.15));
Expand Down Expand Up @@ -221,7 +221,7 @@ export default function extendTheme(options = {}, ...args) {
setColor(palette.SnackbarContent, 'bg', snackbarContentBackground);
setColor(
palette.SnackbarContent,
'text',
'color',
darkPalette.getContrastText(snackbarContentBackground),
);
setColor(palette.SpeedDialAction, 'fabHoverBg', emphasize(palette.background.paper, 0.15));
Expand Down

0 comments on commit 41debd7

Please sign in to comment.