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

make this dynamic with state prefix eg: state-on #1

Open
JonasWijne opened this issue Dec 9, 2021 · 1 comment
Open

make this dynamic with state prefix eg: state-on #1

JonasWijne opened this issue Dec 9, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@JonasWijne
Copy link

would be cool if this wouldn't need any configured states.

<div class="state-on"> 
   <div class="state-on:bg-red-500"> ... </div>
</div>
@royteusink royteusink added the enhancement New feature or request label Dec 11, 2021
@royteusink
Copy link
Owner

royteusink commented Dec 18, 2021

I don't think we can implement this at this moment. There is currently no matchVariants function in the core of tailwindcss. Only matchUtilities and matchComponents [see source].

Something like this would be great:

<div class="collapsed">
    <div class="state-[collapsed]:bg-red-500"> ... </div>
</div>

If someone has a solution for this, please make let me know.

@royteusink royteusink added the help wanted Extra attention is needed label Dec 18, 2021
@royteusink royteusink self-assigned this Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants