Skip to content

Commit

Permalink
fix(notification): follow notification palette theme
Browse files Browse the repository at this point in the history
  • Loading branch information
JinParc committed Dec 19, 2022
1 parent fb65c51 commit 6e8251c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ra-ui-materialui/src/layout/Notification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@ const StyledSnackbar = styled(Snackbar, {
},

[`& .${NotificationClasses.error}`]: {
backgroundColor: theme.palette.error.dark,
backgroundColor: theme.palette.error.main,
color: theme.palette.error.contrastText,
},

[`& .${NotificationClasses.warning}`]: {
backgroundColor: theme.palette.error.light,
backgroundColor: theme.palette.warning.main,
color: theme.palette.error.contrastText,
},

Expand Down

0 comments on commit 6e8251c

Please sign in to comment.