Skip to content

Conversation

@RobinMalfait
Copy link
Member

@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'

2 participants