-
Notifications
You must be signed in to change notification settings - Fork 4.5k
group not working in conjunction to data selectors? #13465
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
Comments
For what it's worth, it seems like the single quotes in the class name stop the proper generation of the class name. Removing the quotes around the attribute value or swapping the order of the variants seems to make it work, https://play.tailwindcss.com/FWM5GF8fXg. |
@wongjn It's worth a lot. Thanks for the workarounds! |
Fyi this affects double quotes as well. Noting this here so when a fix is introduced, it resolves all affected cases. <div class="group" tabIndex="0">
<div class='group-focus:data-[active="true"]:bg-red-600' data-active="true">
Hello
</div>
</div> |
Not sure if related? #13523 |
Hey! Looks like this works in the latest v3 and v4 versions: Going to close this since this works as expected now 👍 |
Version 3.4.3
Reproduction URL: https://play.tailwindcss.com/5PGfLBp9gF
(Move focus with TAB and notice that the background color doesn't change. If you remove either the
group-focus
or thedata
selector it does work)Am I doing something wrong?
The text was updated successfully, but these errors were encountered: