Skip to content

Commit

Permalink
fix: border
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Jul 24, 2024
1 parent 7f73fbf commit ecaf956
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/theme/components/MuiTextField.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
} from "@mui/material"

import { includesClassNames } from "../../utils/theme"
import palette from "../palette"
import typography from "../typography"
import type Components from "./_components"

Expand All @@ -22,9 +23,14 @@ const MuiTextField: Components["MuiTextField"] = {
width: "100%",
backgroundColor: "transparent",
[`& > .${inputBaseClasses.root}`]: {
border: "1px solid black !important",
borderRadius: "0px !important",
backgroundColor: "white !important",
},
[`& > .${inputBaseClasses.root}.${inputBaseClasses.error}`]: {
// @ts-expect-error
border: `1px solid ${palette.error!.main} !important`,
},
[`& .${outlinedInputClasses.root}.${inputClasses.focused} > fieldset`]: {
borderColor: "black !important",
},
Expand Down

0 comments on commit ecaf956

Please sign in to comment.