Skip to content

[v4] custom-variant issue in Tailwind CSS with prefix #17062

Answered by wongjn
reardestani asked this question in Help
Discussion options

You must be logged in to vote

Two things:

  • Swap the variants applied to the classes so that tw: is always first.
  • Escape the colon (:) in your selector with a backslash (\). Without escaping the colon, it is parsed by the browser as the :active pseudo-class.

https://play.tailwindcss.com/vHJrPXJt1C

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@reardestani
Comment options

Answer selected by reardestani
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants