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

legacy mode not working for prose-{element} modifiers #258

Closed
Folyd opened this issue Mar 22, 2022 · 0 comments · Fixed by #259
Closed

legacy mode not working for prose-{element} modifiers #258

Folyd opened this issue Mar 22, 2022 · 0 comments · Fixed by #259

Comments

@Folyd
Copy link
Contributor

Folyd commented Mar 22, 2022

What version of @tailwindcss/typography are you using?

The latest version typography installed by Tailwind standalone CLI

What version of Node.js are you using?

No Node.js. I'm using the latest Tailwind standalone CLI

What browser are you using?

Safari and Edge

What operating system are you using?

macOS 10.15.7

Reproduction repository

https://github.com/zineland/zine

Describe your issue

After I enable the legacy mode according to #255, Tawilwind still renders prose-h1:text-center with :where clauses.

<article class="prose prose-h1:text-center">
</article>
.prose-h1\:text-center :is(:where(h1):not(:where([class~=not-prose] *))) {
    text-align: center;
}
Folyd added a commit to Folyd/tailwindcss-typography that referenced this issue Mar 22, 2022
thecrypticace added a commit that referenced this issue Mar 25, 2022
* Fix prose elements `legacy` mode. Fixes #258

* Add test

* Fix legacy mode custom element selectors

Co-authored-by: Jordan Pittman <jordan@cryptica.me>
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.

1 participant