I am currently working to customize MUI Select method, However, I found it is difficult to hover the "NarrowDownIcon":
I want to change the backgroundColor of this icon to "blue" when hover it, this is my code:
icon: {
color: theme.palette.primary.dark,
height: 32,
width: 32,
top: `calc(50% - ${theme.spacing(2.2)}px)`,
borderRadius: "50%",
cursor: "pointer",
"&:hover": {
backgroundColor: theme.palette.primary.lighter,
},
},
then i applied this css to select icon class:
<Select
value={selectedValue}
onChange={onChange}
onFocus={onFocus}
onBlur={onBlur}
className={classes.textInput}
inputProps={{
id,
name: id,
}}
classes={{
icon: classes.icon,
}}
but it doesn't work , can anyone help me with this, Thank you
