tailwind/typography: Add no-prose
classes to exclude elements from styling.
#4012
regisphilibert
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Typography is a great help for every HTML piece developers cannot control (like the product of a WYSIWYG).
The problem
But it can add a lot of overhead when one need to style something inside a
.prose
"wrapper". (ex: shortcodes, js injected utils like carousels etc...) and has to overwrite most of the plugin's well thought defaults.Proposal
It would be great to be able to add a
no-prose
classe on descendents of a.prose
parent.Possible approach
Injecting a
:not(.no-prose)
between.prose
and the target would work for non-direct descendents:Beta Was this translation helpful? Give feedback.
All reactions