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 98d2fa6
Show file tree
Hide file tree
Showing 3 changed files with 16 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",
}),
}),
},
},
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export const ResultsReport: React.FC = () => {
navigate(-1);
}}
variant="text"
color="primary"
>
<Typography component="span">{`< Go back to ${workflow?.name} Detail`}</Typography>
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const ResultsReportSkeleton: React.FC = () => {
navigate(-1);
}}
variant="text"
color="primary"
>
<Typography component="span">{`< Go back to Detail`}</Typography>
</Button>
Expand Down

0 comments on commit 98d2fa6

Please sign in to comment.