Custom palette for PageSpeed warning box

This commit is contained in:
mohadeseh safari
2025-04-11 12:07:39 -04:00
parent 2e63771a80
commit 3748df9b64
2 changed files with 19 additions and 4 deletions
+4 -4
View File
@@ -120,13 +120,13 @@ const Fallback = ({ title, checks, link = "/", isAdmin, vowelStart = false }) =>
<Box sx={{ width: "80%", maxWidth: "600px", zIndex: 1 }}>
<Box sx={{
'& .alert.row-stack': {
backgroundColor: theme.palette.warning.main,
borderColor: theme.palette.warning.lowContrast,
backgroundColor: theme.palette.pageSpeedWarning.main,
borderColor: theme.palette.pageSpeedWarning.lowContrast,
'& .MuiTypography-root': {
color: theme.palette.warning.contrastText
color: theme.palette.pageSpeedWarning.contrastText
},
'& .MuiBox-root > svg': {
color: theme.palette.warning.contrastText
color: theme.palette.pageSpeedWarning.contrastText
}
}
}}>
+15
View File
@@ -235,6 +235,21 @@ const newSemanticColors = {
dark: newColors.orange600,
},
},
/* Custom palette for PageSpeed warning box */
pageSpeedWarning: {
main: {
light: paletteColors.orange50,
dark: paletteColors.orange800,
},
contrastText: {
light: paletteColors.orange600,
dark: paletteColors.orange100,
},
lowContrast: {
light: paletteColors.orange300,
dark: paletteColors.orange400,
},
},
error: {
main: {
light: newColors.red700,