children selector as part of core tailwind, as JIT is 🔥 #3922
Replies: 1 comment 5 replies
-
If this is reconsidered, I would suggest this form:
I.e., the prefix is the HTML element name of the child rather than something more general (and longer) such as "children". We could perhaps still have another prefix for cases when the style should be applied to all descendants. This could be a game-changer for using Tailwind with externally-rendered content (for example, HTML rendered from markdown or stored in database fields, where we don't have control over classes). Potential caveat: child/descendant selectors have a higher selectivity, so they can't be overridden with Tailwind classes. So the best use case really would be only when the inner HTML isn't "tailwindable" for some reason. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
guess it's time to reconsider this, as there's no more CSS bloat issue to worry about.
#277
#1984
Beta Was this translation helpful? Give feedback.
All reactions