The border-bottom style of the Input
changes when you hover it. This is how you override the border color:
const useStyles = makeStyles((theme: Theme) => ({
formControl: {
"& .MuiInput-underline:hover:not(.Mui-disabled):before": {
borderColor: "blue"
}
},
select: {
"&:before": {
borderColor: "red"
},
}
}));
Usage
<FormControl className={classes.formControl}>
<InputLabel>Age</InputLabel>
<Select className={classes.select} {...props}
>
<MenuItem value="">
<em>None</em>
</MenuItem>
<MenuItem value={10}>Ten</MenuItem>
<MenuItem value={20}>Twenty</MenuItem>
<MenuItem value={30}>Thirty</MenuItem>
</Select>
</FormControl>
Live Demo