The inverse of group
? Or a peer
before?
#6573
frederikhors
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
For the first case, there is not a direct way to do it, but if you can wrap the inner text of the https://play.tailwindcss.com/UkHMx4x0jk <div class="has-group-hover:bg-red-500">
<div>Hovering this should not change the parent background color</div>
<a class="group" href="/">
<span>When I hover only this link the background becomes red</span>
</a>
</div> For the second case, it's not possible, as the https://play.tailwindcss.com/GOSyvuFkDj <div class="flex flex-col-reverse">
<div class="peer bg-blue-300">Hover me</div>
<div class="peer-hover:bg-red-300">Green</div>
</div> |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible the inverse of
group
?I mean if I have: https://play.tailwindcss.com/DTL8yM9GKv:
I also tried with
peer
but it doesn't work because it's after the peer I need: https://play.tailwindcss.com/YdLETrvmnZ:Beta Was this translation helpful? Give feedback.
All reactions