Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Headings element modifiers not working in legacy mode #263

Closed
tylerhunt opened this issue Apr 5, 2022 · 0 comments · Fixed by #264
Closed

Headings element modifiers not working in legacy mode #263

tylerhunt opened this issue Apr 5, 2022 · 0 comments · Fixed by #264
Assignees

Comments

@tylerhunt
Copy link

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 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants