79785916

Date: 2025-10-08 23:28:04
Score: 2
Natty:
Report link

Adding this line into global.css right after @import "tailwindcss" fixes the problem.

@import "tailwindcss";
@custom-variant hover (&:hover);

This solution was originally intended to fix the issue where hover effects don’t work on devices that don’t explicitly support :hover, like the touchscreen laptop mentioned in the Reddit post. It effectively resolves the problem, and I haven’t encountered any issues with it.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @import
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Michal