From 5eca39cd048063459411fa22ec1169188f2a578c Mon Sep 17 00:00:00 2001 From: Caio Cabral Date: Sun, 12 Jan 2025 08:33:33 -0500 Subject: [PATCH] feat: set accent color buttons hover colors --- Client/src/Utils/Theme/constants.js | 2 ++ Client/src/Utils/Theme/globalTheme.js | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/Client/src/Utils/Theme/constants.js b/Client/src/Utils/Theme/constants.js index f7e77008e..bb1bf6297 100644 --- a/Client/src/Utils/Theme/constants.js +++ b/Client/src/Utils/Theme/constants.js @@ -259,6 +259,8 @@ Look up for "red" "white" { text, bg, border } + .light + .dark theme.palette.unresolved diff --git a/Client/src/Utils/Theme/globalTheme.js b/Client/src/Utils/Theme/globalTheme.js index 199cbf2b2..b9941b9a5 100644 --- a/Client/src/Utils/Theme/globalTheme.js +++ b/Client/src/Utils/Theme/globalTheme.js @@ -45,6 +45,15 @@ const baseTheme = (palette) => ({ styleOverrides: { root: ({ theme }) => ({ variants: [ + { + props: (props) => props.color === "accent", + style: { + "&:hover": { + color: theme.palette.accent.main, + backgroundColor: theme.palette.accent.contrastText, + }, + }, + }, { props: (props) => props.variant === "group", style: {