-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Description
Problem description
The DropDownMenu component exposes the property popoverProps, which enables styling the Popover component created as part of the AutoComplete component. However, the SelectField (similar component) does expose this property and I was wondering why the DropDownMenu (or SelectField) do not.
The reasoning behind this is that it is impossible to style the Popover if wanted. The image below is from a modified AutoComplete component, where the popoverProps contains a transparent background and a top margin (for spacing). However, this is impossible to do for SelectFields, even if they should appear the same.
In my opinion, popoverProps should either be exposed as part of DropDownMenu props (unlikely) or as a property of SelectField (similar to AutoComplete). Let me know if there was a reason this was done though! Thanks!
Steps to reproduce
- Create an AutoComplete component
- Assign some
popoverPropsto it (ie. changing the background color) - Create a SelectField component
- You cannot override the Popover styles
Versions
- Material-UI:
0.18.7 - React:
15.6.1 - Browser:
59.0.3071.115(Official Build) (64-bit)
