I have a dropdown select like in the given picture. I am using NativeSelect in material UI. I have applied makeStyles from material UI but its not working on it.
Here is my picture which I want to implement in code:
Here is the code I have done:
const dropdownuseStyles = makeStyles(theme => ({
dropdownStyle: {
border: "1px solid black",
borderRadius: "5%",
backgroundColor: 'lightgrey',
},
select: {
"&:not([multiple]) option": {
backgroundColor: "#ffffff"
},
}
}));
const dropdownclasses = dropdownuseStyles();
<NativeSelect
value={selected}
IconComponent={ExpandMoreIcon
input={
<BootstrapInput />
}
classes={{
select: dropdownclasses.select,
icon: dropdownclasses.icon,
paper: dropdownclasses.dropdownStyle
}}
onChange={(selected) => handleGroupChange(selected)}
>
<option value="Normal">Normal Group</option>
<option value="Super">Super Group</option>
</NativeSelect>
I just need the styling in dropdown list along with hover property gray like that in the picture.
How can I do this?.