feat: changing background main for primary main
This commit is contained in:
1 parent
c0df164e46
commit
3b1657c415
34 files changed
+44
-44
No files matched your search
@@ -54,7 +54,7 @@ const CustomToolTip = ({ active, payload, label, config }) => {
|
||||
return (
|
||||
<Box
|
||||
sx={{
|
||||
backgroundColor: theme.palette.background.main,
|
||||
backgroundColor: theme.palette.primary.main,
|
||||
border: 1,
|
||||
borderColor: theme.palette.primary.lowContrast,
|
||||
borderRadius: theme.shape.borderRadius,
|
||||
@@ -289,7 +289,7 @@ const PagespeedDetailsAreaChart = ({ data, interval, metrics }) => {
|
||||
{Object.keys(filteredConfig).map((key) => {
|
||||
const { color } = filteredConfig[key];
|
||||
const strokeColor = theme.palette[color].main;
|
||||
const bgColor = theme.palette.background.main;
|
||||
const bgColor = theme.palette.primary.main;
|
||||
|
||||
return (
|
||||
<Area
|
||||
|
||||
@@ -10,7 +10,7 @@ export const ChartBox = styled(Stack)(({ theme }) => ({
|
||||
borderRadius: 4,
|
||||
borderTopRightRadius: 16,
|
||||
borderBottomRightRadius: 16,
|
||||
backgroundColor: theme.palette.background.main,
|
||||
backgroundColor: theme.palette.primary.main,
|
||||
"& h2": {
|
||||
color: theme.palette.primary.contrastText.secondary,
|
||||
fontSize: 15,
|
||||
@@ -33,8 +33,8 @@ export const ChartBox = styled(Stack)(({ theme }) => ({
|
||||
borderLeftStyle: "solid",
|
||||
borderLeftColor: theme.palette.primary.lowContrast,
|
||||
borderRadius: 16,
|
||||
backgroundColor: theme.palette.background.main,
|
||||
background: `linear-gradient(325deg, ${theme.palette.tertiary.main} 20%, ${theme.palette.background.main} 45%)`,
|
||||
backgroundColor: theme.palette.primary.main,
|
||||
background: `linear-gradient(325deg, ${theme.palette.tertiary.main} 20%, ${theme.palette.primary.main} 45%)`,
|
||||
},
|
||||
"& path": {
|
||||
transition: "stroke-width 400ms ease",
|
||||
|
||||
Reference in new issue
Block a user