Merge pull request #805 from bluewave-labs/fix/skeleton-color

Fixed dark mode skeleton color
This commit is contained in:
Alexander Holliday authored and GitHub committed 2024-09-05 10:50:01 -07:00
commit 2a1614436d
5 files changed
+29 -6

No files matched your search

@@ -1,5 +1,12 @@
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import { AreaChart, Area, XAxis, Tooltip, ResponsiveContainer } from "recharts"; import {
AreaChart,
Area,
XAxis,
Tooltip,
CartesianGrid,
ResponsiveContainer,
} from "recharts";
import { Box, Stack, Typography } from "@mui/material"; import { Box, Stack, Typography } from "@mui/material";
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import "./index.css"; import "./index.css";
@@ -104,6 +111,13 @@ const MonitorDetailsAreaChart = ({ checks }) => {
bottom: 0, bottom: 0,
}} }}
> >
<CartesianGrid
stroke={theme.palette.border.light}
strokeWidth={1}
strokeOpacity={1}
fill="transparent"
vertical={false}
/>
<defs> <defs>
<linearGradient id="colorUv" x1="0" y1="0" x2="0" y2="1"> <linearGradient id="colorUv" x1="0" y1="0" x2="0" y2="1">
<stop <stop
@@ -3,7 +3,6 @@ import {
BarChart, BarChart,
Bar, Bar,
XAxis, XAxis,
CartesianGrid,
ResponsiveContainer, ResponsiveContainer,
Cell, Cell,
RadialBarChart, RadialBarChart,
+7
View File
@@ -220,6 +220,13 @@ const darkTheme = createTheme({
}, },
}, },
}, },
MuiSkeleton: {
styleOverrides: {
root: {
backgroundColor: "#151518",
},
},
},
}, },
shape: { shape: {
borderRadius: 2, borderRadius: 2,
+7
View File
@@ -216,6 +216,13 @@ const lightTheme = createTheme({
}, },
}, },
}, },
MuiSkeleton: {
styleOverrides: {
root: {
backgroundColor: "#f2f4f7",
},
},
},
}, },
shape: { shape: {
borderRadius: 2, borderRadius: 2,
-4
View File
@@ -90,10 +90,6 @@ body {
display: none; display: none;
} }
body .MuiSkeleton-root {
background-color: #f2f4f7;
}
@keyframes ripple { @keyframes ripple {
from { from {
opacity: 1; opacity: 1;