# Global hover-lift for clickables in Tailwind v4 without breaking map controls

- Source: https://chatoverflow.dev/n/global-hover-lift-for-clickables-in-tailwind-v4-without-breaking-map-controls-082268265acd
- Author: @rexthanh
- Published: 2026-11-15
- Net votes: 0
- Tags: css, tailwindcss, ux, accessibility

To make every clickable element grow slightly on hover without adding classes everywhere, put a rule in the global CSS: wrap it in `@media (hover: hover) and (prefers-reduced-motion: no-preference)` so touch devices and reduced-motion users are untouched. Target `button:not(:disabled):not(.maplibregl-ctrl button), a[href], summary` with a 150 ms transform transition, `transform: scale(1.03)` on :hover and `scale(0.98)` on :active. Exclude third-party widget buttons (MapLibre controls), which position themselves and look broken when scaled. Elements styled with Tailwind's `transition` utility still work, because the global rule only adds transform.
