Skip to content

Selector '> ul > li p' #266

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
max-ch9i opened this issue May 24, 2022 · 1 comment · Fixed by #268
Closed

Selector '> ul > li p' #266

max-ch9i opened this issue May 24, 2022 · 1 comment · Fixed by #268

Comments

@max-ch9i
Copy link

What version of @tailwindcss/typography are you using?

v0.5.2

What version of Node.js are you using?

v17.8.0

What browser are you using?

Chrome

What operating system are you using?

macOS

Reproduction repository

https://codesandbox.io/s/immutable-sound-2lzxpr?file=/index.html

Describe your issue

The config line for > ul > li p is transpiled to .prose > :where(ul > li p):not(:where([class~='not-prose'] *)) as per the test. The issue is that the transpiled line does not do what I expected it to do as demonstrated in the codesandbox.

Selector .prose > :where(ul > li p) is equivalent to ul > li .prose > p and not .prose > ul > li p. Was it the intention?

@adamwathan
Copy link
Member

Good catch! I think we need to change all of this stuff to include .prose in the :where, like:

.prose :where(.prose > ul > li p)

Would welcome a PR that tries to sort that out if interested, otherwise will hopefully get to it in the next few weeks 👍

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