https://i.sstatic.net/OvAN9.png
I've customized a material ui TextField component by increasing the font size of the label. However, I'm facing an issue where the gap in the border for the label remains unchanged despite the larger text size.
I couldn't find any solution in the official documentation, so I need some assistance in resolving this issue.
Here are the CSS rules I'm currently using:
const CssTextField = styled(TextField)({
"& .MuiOutlinedInput-root": {
"& fieldset": {
borderColor: "white",
},
"&:hover fieldset": {
borderColor: "white",
},
"&.Mui-focused fieldset": {
borderColor: "#1976D2",
},
},
input: {
color: "white",
fontSize: "16px",
},
label: {
color: "white",
fontSize: "16px",
},
});