Skip to content

Commit

Permalink
fix: dark mode outlined button
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Vieira Marcelino committed May 14, 2024
1 parent b155c97 commit edcd47c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions frontend/src/context/theme/theme.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,22 @@ export const darkTheme = createTheme({
defaultProps: {
color: "secondary",
},
styleOverrides: {
root: ({ ownerState }) => ({
...((ownerState.variant === "outlined" ||
ownerState.variant === "text") &&
ownerState.color === "secondary" && {
color: "#00B140",
borderColor: "#00B140",
}),
...((ownerState.variant === "outlined" ||
ownerState.variant === "text") &&
ownerState.color === "primary" && {
color: "#283D52",
borderColor: "#283D52",
}),
}),
},
},
},
});

0 comments on commit edcd47c

Please sign in to comment.