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

styling overrides require more specific CSS selectors #76

Open
russellsamora opened this issue Mar 8, 2023 · 1 comment
Open

styling overrides require more specific CSS selectors #76

russellsamora opened this issue Mar 8, 2023 · 1 comment

Comments

@russellsamora
Copy link

For the results you just need:

:global([data-svelte-typeahead] li) {
  background: blue;
}

But for the form elements (input and label) you need:

:global([data-svelte-typeahead] [data-svelte-search] input) {
  background: blue;
}
@russellsamora
Copy link
Author

this actually sometimes doesn't work, and requires the !important flag (in the case of the ul element), so maybe worth noting as well.

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

1 participant