Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cfe1cb1

Browse files
committed
Edit dialog error colors
1 parent ec4914d commit cfe1cb1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

site/src/components/Dialog/Dialog.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import MuiDialog, { DialogProps as MuiDialogProps } from "@material-ui/core/Dial
22
import MuiDialogTitle from "@material-ui/core/DialogTitle"
33
import InputAdornment from "@material-ui/core/InputAdornment"
44
import OutlinedInput, { OutlinedInputProps } from "@material-ui/core/OutlinedInput"
5-
import { darken, fade, makeStyles } from "@material-ui/core/styles"
5+
import { darken, lighten, fade, makeStyles } from "@material-ui/core/styles"
66
import SvgIcon from "@material-ui/core/SvgIcon"
77
import * as React from "react"
88
import { combineClasses } from "../../util/combineClasses"
@@ -200,10 +200,10 @@ const useButtonStyles = makeStyles((theme) => ({
200200
},
201201
errorButton: {
202202
"&.MuiButton-contained": {
203-
backgroundColor: theme.palette.error.main,
203+
backgroundColor: lighten(theme.palette.error.dark, 0.15),
204204
color: theme.palette.error.contrastText,
205205
"&:hover": {
206-
backgroundColor: darken(theme.palette.error.main, 0.3),
206+
backgroundColor: theme.palette.error.dark,
207207
"@media (hover: none)": {
208208
backgroundColor: "transparent",
209209
},

0 commit comments

Comments
 (0)