Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot access onOpen or onClose #182

Open
midimurphdesigns opened this issue Dec 26, 2019 · 1 comment
Open

Cannot access onOpen or onClose #182

midimurphdesigns opened this issue Dec 26, 2019 · 1 comment

Comments

@midimurphdesigns
Copy link

midimurphdesigns commented Dec 26, 2019

I'm looking to add a border-radius, and this requires the intersecting border-radiuses to change to 0px onOpen and return to 4px onClose. So, the bottom corners of the dropdown and the top corners of the menu.

Is there a way to access an onOpen and onClose prop, or a work around to dynamically change border-radius? Maybe a css selector for one of the classes?

@andreafdaf
Copy link
Contributor

Hi!

You could base you work in the class is-open that gets added to the root element that has the Dropdown-root class. Does it work for you?

I've made a PR to add onOpen and onClose props to the dropdown, if you wish to back it it's this one #187

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants