Skip to content

Commit 6e8251c

Browse files
committed
fix(notification): follow notification palette theme
1 parent fb65c51 commit 6e8251c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/ra-ui-materialui/src/layout/Notification.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,12 @@ const StyledSnackbar = styled(Snackbar, {
139139
},
140140

141141
[`& .${NotificationClasses.error}`]: {
142-
backgroundColor: theme.palette.error.dark,
142+
backgroundColor: theme.palette.error.main,
143143
color: theme.palette.error.contrastText,
144144
},
145145

146146
[`& .${NotificationClasses.warning}`]: {
147-
backgroundColor: theme.palette.error.light,
147+
backgroundColor: theme.palette.warning.main,
148148
color: theme.palette.error.contrastText,
149149
},
150150

0 commit comments

Comments
 (0)