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 d4829d7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 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,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",
}),
}),
},
},
},
});

0 comments on commit d4829d7

Please sign in to comment.