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

Improve before and after variants #5820

Merged
merged 10 commits into from
Oct 18, 2021

Conversation

RobinMalfait
Copy link
Contributor

@RobinMalfait RobinMalfait commented Oct 18, 2021

  • remove unused withRule
  • ensure all ::before and ::after elements have content
  • update --tw-content for the content plugin
  • simplify before and after variants
  • update tests, to reflect changes

Initially I didn't add content: var(--tw-content); to each .content rule, because I thought that content was only relevant to ::before and ::after. But according to MDN it can be relevant to other items. Not sure if we need to support that, or that we can just set the --tw-content and call it a day.

Fixes: #5759

@RobinMalfait RobinMalfait changed the title improve before and after variants Improve before and after variants Oct 18, 2021
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.

before:-pseudo-variant overrides explicitly set 'content'
1 participant