Merge pull request #928 from getmaxun/alert-theme

feat(ui): match theme of standard & outlined alerts
This commit is contained in:
Karishma Shukla
2026-01-04 18:08:52 +05:30
committed by GitHub
2 changed files with 16 additions and 11 deletions

View File

@@ -7,7 +7,7 @@ const Alert = React.forwardRef<HTMLDivElement, AlertProps>(function Alert(
props,
ref,
) {
return <MuiAlert elevation={6} ref={ref} variant="filled" {...props} />;
return <MuiAlert elevation={6} ref={ref} variant="outlined" {...props} />;
});
export interface AlertSnackbarProps {

View File

@@ -65,6 +65,13 @@ const lightTheme = createTheme({
color: "#ff00c3",
},
},
outlinedInfo: {
color: '#000000ff',
borderColor: '#000000ff',
"& .MuiAlert-icon": {
color: "#000000ff",
},
},
},
},
MuiAlertTitle: {
@@ -185,6 +192,13 @@ const darkTheme = createTheme({
color: "#ff66d9",
},
},
outlinedInfo: {
color: '#ffffff',
borderColor: '#ffffff',
"& .MuiAlert-icon": {
color: "#ffffff",
},
},
},
},
MuiAlertTitle: {
@@ -196,7 +210,6 @@ const darkTheme = createTheme({
},
},
},
// Additional dark mode specific components
MuiPaper: {
styleOverrides: {
root: {
@@ -233,14 +246,6 @@ const darkTheme = createTheme({
},
},
},
// MuiTextField:{
// styleOverrides: {
// root: {
// '& .MuiInputBase-root': {
// backgroundColor: '#1d1c1cff',
// },
// }
// }}
},
});
@@ -280,4 +285,4 @@ const ThemeModeProvider = ({ children }: { children: React.ReactNode }) => {
);
};
export default ThemeModeProvider;
export default ThemeModeProvider;