fix: remove pink borders on text field

This commit is contained in:
RohitR311
2024-11-19 03:00:18 +05:30
parent 477ed726dd
commit 557c923107

View File

@@ -89,20 +89,6 @@ const Register = () => {
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
@@ -114,20 +100,6 @@ const Register = () => {
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"