From d4829d70bb393e20fa0a30c26f5f45def4d44a33 Mon Sep 17 00:00:00 2001 From: Nathan Vieira Marcelino Date: Tue, 14 May 2024 13:04:02 -0300 Subject: [PATCH] fix: dark mode outlined button --- frontend/src/context/theme/theme.config.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/frontend/src/context/theme/theme.config.ts b/frontend/src/context/theme/theme.config.ts index fd1fb25c..5386fc9d 100644 --- a/frontend/src/context/theme/theme.config.ts +++ b/frontend/src/context/theme/theme.config.ts @@ -137,6 +137,20 @@ export const darkTheme = createTheme({ defaultProps: { color: "secondary", }, + styleOverrides: { + root: ({ ownerState }) => ({ + ...(ownerState.variant === "outlined" && + ownerState.color === "secondary" && { + color: "#00B140", + borderColor: "#00B140", + }), + ...(ownerState.variant === "outlined" && + ownerState.color === "primary" && { + color: "#283D52", + borderColor: "#283D52", + }), + }), + }, }, }, });