From 8048dae81cac44625dc83c0b308fbf61b2c9a23e Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Mon, 20 Jan 2025 15:26:15 -0800 Subject: [PATCH] color fixes --- .../src/Components/Charts/BarChart/index.jsx | 6 ++- .../Charts/MonitorDetailsAreaChart/index.jsx | 9 ++-- .../src/Components/Inputs/TextInput/index.jsx | 5 +++ .../TabPanels/Account/ProfilePanel.jsx | 4 +- .../TabPanels/Account/TeamPanel.jsx | 2 +- .../Maintenance/CreateMaintenance/index.jsx | 27 +++++++++++- .../Uptime/Details/Charts/DownBarChart.jsx | 42 ++++++++++--------- .../Uptime/Details/Charts/UpBarChart.jsx | 2 +- .../Uptime/Details/PaginationTable/index.jsx | 21 +++++++++- Client/src/Utils/Theme/constants.js | 6 +++ 10 files changed, 89 insertions(+), 35 deletions(-) diff --git a/Client/src/Components/Charts/BarChart/index.jsx b/Client/src/Components/Charts/BarChart/index.jsx index 6ed2a7ebd..101afe648 100644 --- a/Client/src/Components/Charts/BarChart/index.jsx +++ b/Client/src/Components/Charts/BarChart/index.jsx @@ -39,7 +39,9 @@ const BarChart = ({ checks = [] }) => { > {checks.map((check, index) => check === "placeholder" ? ( - /* TODO what is the purpose of this box? */ + /* TODO what is the purpose of this box? */ + // CAIO_REVIEW the purpose of this box is to make sure there are always at least 25 bars + // even if there are less than 25 checks { position="relative" width="9px" height="100%" - backgroundColor={theme.palette.tertiary.main} + backgroundColor={theme.palette.primary.lowContrast} // CAIO_REVIEW sx={{ borderRadius: theme.spacing(1.5), /* diff --git a/Client/src/Components/Charts/MonitorDetailsAreaChart/index.jsx b/Client/src/Components/Charts/MonitorDetailsAreaChart/index.jsx index 10648a3f3..0b959a392 100644 --- a/Client/src/Components/Charts/MonitorDetailsAreaChart/index.jsx +++ b/Client/src/Components/Charts/MonitorDetailsAreaChart/index.jsx @@ -139,7 +139,6 @@ const MonitorDetailsAreaChart = ({ checks, dateRange }) => { const theme = useTheme(); const memoizedChecks = useMemo(() => checks, [checks[0]]); const [isHovered, setIsHovered] = useState(false); - return ( { > @@ -202,10 +201,10 @@ const MonitorDetailsAreaChart = ({ checks, dateRange }) => { diff --git a/Client/src/Components/Inputs/TextInput/index.jsx b/Client/src/Components/Inputs/TextInput/index.jsx index 64d8e27aa..38a6b6161 100644 --- a/Client/src/Components/Inputs/TextInput/index.jsx +++ b/Client/src/Components/Inputs/TextInput/index.jsx @@ -13,7 +13,12 @@ const getSx = (theme, type, maxWidth) => { "&.Mui-focused .MuiOutlinedInput-notchedOutline": { borderColor: theme.palette.accent.main, // Adjust focus border color }, + "&.Mui-disabled .MuiOutlinedInput-notchedOutline": { + borderColor: theme.palette.primary.contrastText, // CAIO_REVIEW + opacity: 0.5, + }, }, + "& .MuiFormHelperText-root": { position: "absolute", bottom: `-${theme.spacing(24)}`, diff --git a/Client/src/Components/TabPanels/Account/ProfilePanel.jsx b/Client/src/Components/TabPanels/Account/ProfilePanel.jsx index 5eccd0569..e20cb13a4 100644 --- a/Client/src/Components/TabPanels/Account/ProfilePanel.jsx +++ b/Client/src/Components/TabPanels/Account/ProfilePanel.jsx @@ -317,14 +317,14 @@ const ProfilePanel = () => { sx={{ marginRight: "8px" }} />