Group Affecting Peer Elements #17932
-
I would expect the group class to scope to only the element's children, not to its peers. However, it does seem to scope to its peers (and their children:
In this case, when any of the divs are active, all of the span elements have bg-gray-50 applied to them. There's an easy workaround using named groups:
So, I don't need help, exactly. I just wanted to point out the issue and the workaround. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Doesn't seem to exhibit the behavior you describe in this Tailwind Play which could indicate something particular to your project is causing the unexpected behavior. |
Beta Was this translation helpful? Give feedback.
Doesn't seem to exhibit the behavior you describe in this Tailwind Play which could indicate something particular to your project is causing the unexpected behavior.