-
Hello guys, I have created a simple button with hover effect which changes text color on hover or it should have but the hover effect is not properly applied and even the cursor is not changing for button. When I switch to the previous version v3.4.17 its working just fine. Is it a bug or am I doing something wrong here? Here is the code link in latest tailwind play: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Some things:
|
Beta Was this translation helpful? Give feedback.
-
I found solution in the https://tailwindcss.com/docs/upgrade-guide If laptop is touch screen and v4 "thinks" it doesn't have the ability to hover... the solution they propose is to add to the main css file: "@custom-variant hover (&:hover);" it can for try it. |
Beta Was this translation helpful? Give feedback.
-
@Reconfort solved it for me. Got the issue on my mac book m1 max inside my electron react app |
Beta Was this translation helpful? Give feedback.
I found solution in the https://tailwindcss.com/docs/upgrade-guide
"In v4 Tailwind team updated the hover variant to only apply when the primary input device supports hover:"
If laptop is touch screen and v4 "thinks" it doesn't have the ability to hover... the solution they propose is to add to the main css file:
"@custom-variant hover (&:hover);"
it can for try it.