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

Fix selector when using a non-default class (e.g. prose-sm) #289

Merged
merged 1 commit into from Nov 7, 2022

Conversation

bradlc
Copy link
Contributor

@bradlc bradlc commented Nov 7, 2022

Fixes #287

This PR fixes generated selectors when using a modifier (e.g. prose-sm):

- .prose-sm :where(.prose > :first-child):not(:where([class~="not-prose"] *)) {
+ .prose-sm :where(.prose-sm > :first-child):not(:where([class~="not-prose"] *)) {
    margin-top: 0;
  }

@vercel
Copy link

vercel bot commented Nov 7, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
tailwindcss-typography ✅ Ready (Inspect) Visit Preview Nov 7, 2022 at 4:01PM (UTC)

@bradlc bradlc merged commit 9999d2f into master Nov 7, 2022
@bradlc bradlc deleted the fix-modifier-selectors branch November 7, 2022 16:01
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 this pull request may close these issues.

A subset of CSS rules for every type scale is generated even when those type scales are not used
1 participant