I am seeking to customize the border color of an outlined textfield from gray to a deeper blue shade.
<TextField
variant={"outlined"}
placeholder={t('landing_page.code.placeholder')}
onChange={this.onCodeChanged}
value={code}
fullWidth={true}
className={classes.codeInput}
error={code ? code.length < 10 : false}
/>
Here is the CSS class for codeInput
:
codeInput: {
marginTop: theme.spacing.unit,
},
I have attempted to change the color through the theme, but it has not been successful:
overrides: {
MuiOutlinedInput: {
root: {
borderColor: "#2b303e"
},
notchedOutline: {
borderRadius: "0",
borderWidth: "2px",
borderColor: "#2b303e"
},
},
}
Despite my efforts, the border remains gray as depicted in the accompanying image. It seems that certain CSS rules are causing this issue and I am unsure how to resolve it.
.MuiOutlinedInput-root-148 .MuiOutlinedInput-notchedOutline-155 {
border-color: rgba(0, 0, 0, 0.23);
}