I would like to change the react material-ui Select MuiList backgroundColor containing the MenuItems.
This is without overriding the styles for all Select and MuiList's. (Changing only the Select name='first' from the below codesandbox.)
I have set the className and tried some classes for the Select element but am unable to see any changes to the MuiList wrapping the MenuItem's.
<Select
name='tag'
classes=
{ {
'root': 'thinger1',
'selectMenu': 'thinger2',
'MuiList': {root: 'thinger3'}
} }
onChange={this.handleChange}
className={[classes.lightGreyBackground].join(' ')}
>
How to override material-ui MenuItem selected background color? This changes only the selected. I would like to change the whole thing.
This is for material-ui 3.9.3.
<div>
<TextField select name="first" value={1} fullWidth>
<MenuItem value={1}>1</MenuItem>
<MenuItem value={2}>2</MenuItem>
</TextField>
</div>
I am hoping to see the ul MuiList containing the MenuItem's (including the rounded top and bottom padding) backgroundColor #999.