Merge pull request #928 from getmaxun/alert-theme
feat(ui): match theme of standard & outlined alerts
This commit is contained in:
@@ -7,7 +7,7 @@ const Alert = React.forwardRef<HTMLDivElement, AlertProps>(function Alert(
|
|||||||
props,
|
props,
|
||||||
ref,
|
ref,
|
||||||
) {
|
) {
|
||||||
return <MuiAlert elevation={6} ref={ref} variant="filled" {...props} />;
|
return <MuiAlert elevation={6} ref={ref} variant="outlined" {...props} />;
|
||||||
});
|
});
|
||||||
|
|
||||||
export interface AlertSnackbarProps {
|
export interface AlertSnackbarProps {
|
||||||
|
|||||||
@@ -65,6 +65,13 @@ const lightTheme = createTheme({
|
|||||||
color: "#ff00c3",
|
color: "#ff00c3",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
outlinedInfo: {
|
||||||
|
color: '#000000ff',
|
||||||
|
borderColor: '#000000ff',
|
||||||
|
"& .MuiAlert-icon": {
|
||||||
|
color: "#000000ff",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
MuiAlertTitle: {
|
MuiAlertTitle: {
|
||||||
@@ -185,6 +192,13 @@ const darkTheme = createTheme({
|
|||||||
color: "#ff66d9",
|
color: "#ff66d9",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
outlinedInfo: {
|
||||||
|
color: '#ffffff',
|
||||||
|
borderColor: '#ffffff',
|
||||||
|
"& .MuiAlert-icon": {
|
||||||
|
color: "#ffffff",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
MuiAlertTitle: {
|
MuiAlertTitle: {
|
||||||
@@ -196,7 +210,6 @@ const darkTheme = createTheme({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// Additional dark mode specific components
|
|
||||||
MuiPaper: {
|
MuiPaper: {
|
||||||
styleOverrides: {
|
styleOverrides: {
|
||||||
root: {
|
root: {
|
||||||
@@ -233,14 +246,6 @@ const darkTheme = createTheme({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// MuiTextField:{
|
|
||||||
// styleOverrides: {
|
|
||||||
// root: {
|
|
||||||
// '& .MuiInputBase-root': {
|
|
||||||
// backgroundColor: '#1d1c1cff',
|
|
||||||
// },
|
|
||||||
// }
|
|
||||||
// }}
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user