-
Notifications
You must be signed in to change notification settings - Fork 288
Strong inside <a> causes rendering issues #275
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
Comments
Just noticed it affects the same for headings as well. Possibly everywhere Style causing this issue: .prose :where(strong):not(:where([class~="not-prose"] *)) {
color: var(--tw-prose-bold); /* this is black */
font-weight: 600;
} Possible fix: Do we really need a color variable for |
Gonna be thinking this one through some today but as a quick fix you can add the following to your CSS to work around the problem: .prose :where(strong):not(:where([class~="not-prose"] *)) {
color: inherit;
} |
The main reason we do this is because Probably can come up with a way to make this not happen by default though. |
@surjithctly Hey thanks for reporting this. We've just made an update to this plugin where the |
Thank you 🙏 |
What version of @tailwindcss/typography are you using?
3.1.0
What version of Node.js are you using?
v16.0
What browser are you using?
Chrome
What operating system are you using?
MacOS
Reproduction repository
https://play.tailwindcss.com/VTb5NkiKvQ
Describe your issue
I have a simple usecase where
<strong>
tag is inserted inside<strong><a>
but this doesn't display as expected.I have given
prose-violet
and alsoprose-a:text-violet-500
but the color renders as black except the underline.The sample code:
The current result.

Expected Result:

Live reproducible demo on Tailwind Play
https://play.tailwindcss.com/VTb5NkiKvQ
Thank you!
The text was updated successfully, but these errors were encountered: