Description
What version of Tailwind CSS are you using?
v3.3.3
What build tool (or framework if it abstracts the build tool) are you using?
Next.js 13.4.13 (Tool agnostic bug)
What version of Node.js are you using?
For example: v18.16.0
What browser are you using?
For example: Chrome
What operating system are you using?
For example: Windows
Reproduction URL
https://play.tailwindcss.com/Tg2m8Otzun
Describe your issue
Tailwind searches for importance for things like disabled
in places that are not classnames.
As shown in the example above, DaisyUI applies variants upon hover when the component is not disabled.
Because Tailwind sees a string !disabled
, the styles applied in Daisy's hover variant become important and thus overshadow things like the active style.
If you hold click on the menu options in the playground, nothing happens. However, if you remove the !disabled
span and hold click, you will see the proper :active
styles become applied
This also happens in React (checking a variable, for instance) and is documented here: saadeghi/daisyui#2240