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

style droplist #192

Open
Mohammad9817 opened this issue Sep 14, 2024 · 1 comment
Open

style droplist #192

Mohammad9817 opened this issue Sep 14, 2024 · 1 comment

Comments

@Mohammad9817
Copy link

How can I style drop list in my css or sass file ?

@bruderj15
Copy link

There does not seem to be prop to use.
After inspecting the generated html with nextjs15, type-script and tailwind-css, below css in globals.css allows to customize the style of the options:

/* Target the options container */
div[class*="ReactFlagsSelect-module_flagsSelect"] ul[class*="selectOptions"] {
  @apply bg-stroke dark:bg-strokedark dark:border-strokedark;
}

/* Style each option item with specified classes */
div[class*="ReactFlagsSelect-module_flagsSelect"] li[class*="selectOption"] {
  @apply text-metatitle3 font-bold dark:text-white dark:border-b-blackho;
}

/* Hover effect for option items */
div[class*="ReactFlagsSelect-module_flagsSelect"] li[class*="selectOption"]:hover {
}

This works with version 2.2.3 of this lib.

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