Closed Lcarv20 closed 5 months ago
The size of a screen doesn't necessarily determine whether it's touch-enabled. This issue will be automatically fixed in TailwindCSS v4 (discussed here: https://github.com/tailwindlabs/tailwindcss/pull/8394). In the meantime, you can enable this behavior with the hoverOnlyWhenSupported
future flag:
// tailwind.config.js
module.exports = {
future: {
hoverOnlyWhenSupported: true,
},
// ...
}
the switch component stays stretched after pressing when deactivated. the fix should be something like: