Skip to content

Add empty 'p' object to DEFAULT to fix '[class~=lead]' cascade error #256

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

Closed
rbjack opened this issue Mar 8, 2022 · 2 comments · Fixed by #260
Closed

Add empty 'p' object to DEFAULT to fix '[class~=lead]' cascade error #256

rbjack opened this issue Mar 8, 2022 · 2 comments · Fixed by #260
Assignees

Comments

@rbjack
Copy link

rbjack commented Mar 8, 2022

What version of @tailwindcss/typography are you using?

0.5.2

What version of Node.js are you using?

12.13.0

What browser are you using?

Chrome

What operating system are you using?

macOS

Reproduction repository

https://github.com/tailwindlabs/tailwindcss-typography/blob/master/src/styles.js#L1240

Describe your issue

The missing p: {}, from the DEFAULT settings is causing the paragraph margin to override the '.lead' class.

@thecrypticace thecrypticace self-assigned this Mar 25, 2022
@thecrypticace
Copy link
Contributor

I created a reproduction in Tailwind Play here: https://play.tailwindcss.com/4xkhjPpd3O

There does appear to be a difference between using <p> tags with the lead class and <div> tags because of the margin even though it's quite small. Will discuss this and see what we can figure out. Thanks!

@thecrypticace
Copy link
Contributor

Alright, after a discussion this is most definitely a bug and the fix will go out in the next release. Thanks for reporting it!

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