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

Dropdown option #228

Open
DenysPavlenko opened this issue Oct 8, 2021 · 1 comment
Open

Dropdown option #228

DenysPavlenko opened this issue Oct 8, 2021 · 1 comment

Comments

@DenysPavlenko
Copy link

Hello,
I am using tailwind css and it is pretty much easy to customize the dropdnow. I can change everything accept for Dropdown-option class. It would be great to add such property to the component.

@rayhaanDev
Copy link

rayhaanDev commented Mar 1, 2024

A work-around for the time being that I have found is simply just targeting the class selector for dropdown items. E.g.

./* Style all dropdown options */
.Dropdown-option {
  //styles-here
}

/* Style the option that is currently selected */
.Dropdown-option.is-selected {
  background-color: //some-background-color
}

/* Add a hover effect for options */
.Dropdown-option:hover {
  background-color: //some-background-color
}

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