Currently, I am attempting to adjust the border color of Mui TextFields using createTheme from Mui v5 when the input is valid. The border itself is defined within the ::before
and ::after
pseudoclasses. For the TextFields, I am utilizing variant="standard"
.
While I have successfully applied the pseudoclasses to the MuiInput by using stylesOverride to modify the input styles, this approach has not yielded the desired outcome. Specifically, when an input endAdornment is present, the bottom-border does not extend all the way to the adornment since I am only adjusting the <input
styles which do not encompass the endAdornment.
If anyone could offer some assistance with this issue, it would be greatly appreciated!