[V4] Problem with in-* variant #15396
-
Hello. I'm using Tailwind CSS version 4, and in the article, you mentioned the new in-* variant feature. When I tried to use it, I realized that the entire body was being selected as the group instead of the specific div I wanted. I'm not sure if I'm using it incorrectly or if this is a bug. Please take a look at the code and video. Code: <div class="container">
<div class="border p-5">
<h1>Hello</h1>
<p class="in-hover:text-gray-500 in-hover:font-bold">
Welcome to my portfolio
</p>
</div>
</div> cp.mp4 |
Beta Was this translation helpful? Give feedback.
Answered by
wongjn
Dec 14, 2024
Replies: 1 comment
-
Yep, that seems to be working as intended. If you only want it to apply up to a certain parent, you'd want to use the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Mrahmani71
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yep, that seems to be working as intended. If you only want it to apply up to a certain parent, you'd want to use the
group-*
system instead.