Named groups are not working as expected in v4 #18195
-
What version of Tailwind CSS are you using? What build tool (or framework if it abstracts the build tool) are you using? What version of Node.js are you using? What browser are you using? What operating system are you using? Reproduction URL Describe your issue |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You've overridden the @custom-variant group-hover (.group:hover &); Removing the override makes the naming work again: https://play.tailwindcss.com/cqj9GbcncQ |
Beta Was this translation helpful? Give feedback.
In v4, the
hover
variant includes@media (hover: hover)
. So it could be your device/browser combination does not pass this media query check, and thus thehover:
variant classes don't "activate". See #16531.