Open johanatan opened 8 years ago
As of re-com
2.13.2
, this is not possible even with the addition of parts
keyword argument which can be used to solve similar issues like #99 . This is because the drop down arrow is not exposed to the parts supplied to single-dropdown
. I suggest adding a new parts keyword called arrow
which can be used to style or add classes to the dropdown arrow. I have attached the code to add this feature below.
Example usage at https://github.com/day8/re-com/pull/318#issue-1112551187
Due to
background-image
being marked!important
in themedia
section of re-com.css, all attempts to style this control via stylesheets with a custom image for the dropdown arrow are failing. I had to resort to the following 'deep hacking' in componentDidMount to achieve the styling.where
b
is defined as:This poking into the implementation of the dropdown to pull out a
b
is obviously not ideal.See Issue #99 for similar situation.