-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug]: Cursor pointer not working when hovering on button in Tailwind v4 #6843
Comments
This is expected, as mentioned on the v4 page:
|
I would like to know more about this decision process, is it no longer cool to have |
They just removed cursor pointer in Tailwind v4, so I had to add custom CSS to
|
@aow3xm thanks for sharing that snippet. I would add this to ensure you don't get pointers on disabled buttons: @layer base {
button:not([disabled]),
[role="button"]:not([disabled]) {
cursor: pointer;
}
} |
This is a really strange behavior. I expect my users to see they are hovering a button with their cursor changing. It's the most common practice, and even when browsing shadcn documentation, buttons are still showing this cursor pointer :( |
Thank's for this, very instructive. However I truly think that having an option to keep the old behavior would be really nice since most of huge website are using pointer cursor on buttons (github, facebook, microsoft, stackoverflow, ....). |
Try explaining this to 99% of product managers, QA, any non techs or just run with the above mentioned hack with targeting all buttons. |
It'd be great if we call this out on the component examples or have them follow the default behavior. I was wondering why my local install was not matching the examples/docs until I stumbled on this |
This comment has been minimized.
This comment has been minimized.
I don't understand, this should be reopen |
Describe the bug
Description
When I hover over a button, the cursor does not change to a pointer as expected. This issue occurs in my Next.js 15 project using ShadCN v4. I also checked the https://v4.shadcn.com/#button, and the same issue is present there. The cursor does not display as a pointer when hovering over buttons.
Affected component/components
Button
How to reproduce
Codesandbox/StackBlitz link
https://codesandbox.io/p/devbox/8jqnnq
Logs
System Info
Before submitting
The text was updated successfully, but these errors were encountered: