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

Prevent content-none from being overridden when conditionally styling ::before/::after #13187

Merged
merged 3 commits into from
Mar 11, 2024

Conversation

adamwathan
Copy link
Member

Prior to this PR, content-none wasn't setting the --tw-content variable which meant that utilities like after:underline or similar would reset content back to var(--tw-content). This means the none value would be ignored and replaced with "", causing the pseudo element to appear in the tree when it shouldn't.

Fixes #13185.

@adamwathan adamwathan merged commit d863de7 into next Mar 11, 2024
1 check passed
@adamwathan adamwathan deleted the fix-13185 branch March 11, 2024 18:09
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.

3 participants