You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using an element modifier for headings like prose-headings:text-red-500, only the h1 elements have the specified utility class applied.
The variant that's added has a class of .prose-headings\:text-red-500 h1, h2, h3, h4, th, since the addVariant call is using & ${selector}, but for headings the value of selector is h1, h2, h3, h4, th.
The text was updated successfully, but these errors were encountered:
What version of @tailwindcss/typography are you using?
HEAD
What version of Node.js are you using?
v17.4.0
What browser are you using?
Safari
What operating system are you using?
macOS
Reproduction repository
https://github.com/tylerhunt/tailwind-bugs/tree/legacy-element-modifiers-headings
Describe your issue
When using an element modifier for headings like
prose-headings:text-red-500
, only theh1
elements have the specified utility class applied.The variant that's added has a class of
.prose-headings\:text-red-500 h1, h2, h3, h4, th
, since theaddVariant
call is using& ${selector}
, but forheadings
the value ofselector
ish1, h2, h3, h4, th
.The text was updated successfully, but these errors were encountered: