FIX-1848 added theme for alerts specfic.
This commit is contained in:
1 parent
649b5ad2a4
commit
95ccccc396
2 files changed
+12
-2
No files matched your search
@@ -36,8 +36,8 @@ const Alert = ({ variant, title, body, isToast, hasIcon = true, onClick }) => {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
const text = theme.palette.secondary.contrastText;
|
const text = theme.palette.secondary.contrastText;
|
||||||
const bg = theme.palette.secondary.main;
|
const border = theme.palette.alert.border;
|
||||||
const border = theme.palette.secondary.contrastText;
|
const bg = theme.palette.alert.background;
|
||||||
const icon = icons[variant];
|
const icon = icons[variant];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -290,6 +290,16 @@ const newSemanticColors = {
|
|||||||
dark: "#C084FC",
|
dark: "#C084FC",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
alert: {
|
||||||
|
background: {
|
||||||
|
light: newColors.gray200,
|
||||||
|
dark: "#1c1c1c",
|
||||||
|
},
|
||||||
|
border: {
|
||||||
|
light: newColors.blueGray600,
|
||||||
|
dark: "#515151",
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export { typographyLevels, semanticColors as colors, newSemanticColors };
|
export { typographyLevels, semanticColors as colors, newSemanticColors };
|
||||||
Reference in new issue
Block a user