menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Why Are Bu...
source image

Dev

7d

read

199

img
dot

Image Credit: Dev

Why Are Buttons Losing the Pointer Cursor? The ShadCN and Tailwind Debate

  • Developers working with ShadCN v4 and Tailwind CSS v4 noticed that buttons no longer showed the pointer cursor on hover, which broke user expectations.
  • A Github issue was opened to address this change, but it is actually a deliberate design choice where buttons now use the default cursor by design.
  • A custom CSS workaround has been shared by developers to restore the expected behavior and avoid pointer cursors on disabled buttons.
  • Originally, GUI buttons relied on visual affordances instead of cursors for interactivity, but web apps have different expectations with users now expecting visual cues like cursor changes for all clickable elements.

Read Full Article

like

12 Likes

For uninterrupted reading, download the app