Is it possible to change the SelectField
's popover background color in material-ui ?
I checked in the generated theme but there's no selectField
or popover
key. Tried changing menu
's backgroundColor
and containerBackgroundColor
but it had no effect on the SelectField
Yes, it's possible. Behind the scenes SelectField
uses the DropDownMenu
component and you can see here there is a property menuStyle - that's what you're gonna use to change the popover style.
Example:
<SelectField menuStyle={{background: '#ddd'}} ...otherProps >
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.