fix: remove pink borders on text field

This commit is contained in:
RohitR311
2024-11-19 02:59:43 +05:30
parent cf5c8b11e9
commit 477ed726dd

View File

@@ -90,20 +90,6 @@ const Login = () => {
margin="normal"
variant="outlined"
required
sx={{
"& .MuiOutlinedInput-root": {
backgroundColor: email ? "#ffe6f9" : "#ffffff",
"& fieldset": { borderColor: "#ff33cc" },
"&:hover fieldset": { borderColor: "#ff33cc" },
"&.Mui-focused fieldset": { borderColor: "#ff33cc" },
},
"& input:-webkit-autofill": {
WebkitBoxShadow: "0 0 0 1000px #ffe6f9 inset",
WebkitTextFillColor: "#000",
},
"& .MuiInputLabel-root": { color: email ? "#ff33cc" : "#000000" },
"& .MuiInputLabel-root.Mui-focused": { color: "#ff33cc" },
}}
/>
<TextField
fullWidth
@@ -115,20 +101,6 @@ const Login = () => {
margin="normal"
variant="outlined"
required
sx={{
"& .MuiOutlinedInput-root": {
backgroundColor: password ? "#ffe6f9" : "#ffffff",
"& fieldset": { borderColor: "#ff33cc" },
"&:hover fieldset": { borderColor: "#ff33cc" },
"&.Mui-focused fieldset": { borderColor: "#ff33cc" },
},
"& input:-webkit-autofill": {
WebkitBoxShadow: "0 0 0 1000px #ffe6f9 inset",
WebkitTextFillColor: "#000",
},
"& .MuiInputLabel-root": { color: password ? "#ff33cc" : "#000000" },
"& .MuiInputLabel-root.Mui-focused": { color: "#ff33cc" },
}}
/>
<Button
type="submit"