3 ms·
That doesn't affect the parent (.group) based on the child though.
by luckylion 1y ago
That doesn't affect the parent (.group) based on the child though.
- omnimus 1y agoAtleast in Tailwind that’s what it should do. You hover over card (.group) and some elements inside change.
- MrJohz 1y agoNo, 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.
- luckylion 1y agoOh, I misunderstood the GP then, thanks for clarifying!
- omnimus 1y agoTailwind has few :has tools but it’s imho terrible. They keep inflating the system to nonsense.
- reactordev 1y agoThis.
- deleted 1y ago[deleted]