Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That doesn't affect the parent (.group) based on the child though.


No, but `group` doesn't affect the parent in Tailwind. You put `group` in the parent to mark it, and then use the `group/...` syntax to apply different properties to the child, depending on the different states of the parent. This doesn't require `:has`.

I don't think Tailwind has a built-in `:has` tool, but I suspect it would be easy to add one as a custom class.


Oh, I misunderstood the GP then, thanks for clarifying!


Tailwind has few :has tools but it’s imho terrible. They keep inflating the system to nonsense.


This.


Atleast in Tailwind that’s what it should do. You hover over card (.group) and some elements inside change.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: