Custom palette for PageSpeed warning box
This commit is contained in:
1 parent
2e63771a80
commit
3748df9b64
2 files changed
+19
-4
No files matched your search
@@ -120,13 +120,13 @@ const Fallback = ({ title, checks, link = "/", isAdmin, vowelStart = false }) =>
|
|||||||
<Box sx={{ width: "80%", maxWidth: "600px", zIndex: 1 }}>
|
<Box sx={{ width: "80%", maxWidth: "600px", zIndex: 1 }}>
|
||||||
<Box sx={{
|
<Box sx={{
|
||||||
'& .alert.row-stack': {
|
'& .alert.row-stack': {
|
||||||
backgroundColor: theme.palette.warning.main,
|
backgroundColor: theme.palette.pageSpeedWarning.main,
|
||||||
borderColor: theme.palette.warning.lowContrast,
|
borderColor: theme.palette.pageSpeedWarning.lowContrast,
|
||||||
'& .MuiTypography-root': {
|
'& .MuiTypography-root': {
|
||||||
color: theme.palette.warning.contrastText
|
color: theme.palette.pageSpeedWarning.contrastText
|
||||||
},
|
},
|
||||||
'& .MuiBox-root > svg': {
|
'& .MuiBox-root > svg': {
|
||||||
color: theme.palette.warning.contrastText
|
color: theme.palette.pageSpeedWarning.contrastText
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}}>
|
}}>
|
||||||
|
|||||||
@@ -235,6 +235,21 @@ const newSemanticColors = {
|
|||||||
dark: newColors.orange600,
|
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: {
|
error: {
|
||||||
main: {
|
main: {
|
||||||
light: newColors.red700,
|
light: newColors.red700,
|
||||||
|
|||||||
Reference in new issue
Block a user