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

p-dropdown: add a class to the ui-dropdown element if open #581

Closed
me-12 opened this issue Jul 7, 2016 · 2 comments
Closed

p-dropdown: add a class to the ui-dropdown element if open #581

me-12 opened this issue Jul 7, 2016 · 2 comments
Assignees
Labels
Type: New Feature Issue contains a new feature or new component request
Milestone

Comments

@me-12
Copy link

me-12 commented Jul 7, 2016

I would like to add a different style to the .ui-dropdown element if the dropdown is open. Currently there is no way to tell if the dropdown is opened or not. A solution would be to add a class like ui-dropdown-open to the .ui-dropdown element if the dropdown is opened.

@Mrtcndkn
Copy link
Contributor

When you opened the dropdown panel ui-state-focus is added to the component the sameway when you close it ui-state-focus is still there.Maybe you can style the focus?

@cagataycivici cagataycivici added the Type: New Feature Issue contains a new feature or new component request label Jul 15, 2016
@cagataycivici cagataycivici added this to the 1.0.0-beta.10 milestone Jul 15, 2016
@cagataycivici cagataycivici self-assigned this Jul 15, 2016
@cagataycivici
Copy link
Member

cagataycivici commented Jul 15, 2016

I've added "ui-dropdown-open" to the main outmost div container element. It is removed when dropdown is hidden.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: New Feature Issue contains a new feature or new component request
Projects
None yet
Development

No branches or pull requests

3 participants