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

Using multiple variants together is not working #16

Open
apollo79 opened this issue Apr 10, 2024 · 0 comments
Open

Using multiple variants together is not working #16

apollo79 opened this issue Apr 10, 2024 · 0 comments

Comments

@apollo79
Copy link

I am using Kobalte and want to style a select item when it is highlighted differently than when it is selected, but therefore I have to chain two variants:

// ...
<Select.Item
   item={props.item}
  class="ui-highlighted:ui-not-selected:bg-red ui-selected:bg-green"
  >
    // ...
</Select.Item>
// ...

But that doesn't seem to be possible, the red background just never appears.

I have made a reproduction here: https://stackblitz.com/edit/solidjs-templates-mc1pgd?file=src%2FApp.tsx

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