-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[bug]: Button does not have cursor-pointer by default #7223
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
Comments
I have been noticing this too, but I always fix it locally. Is there a chance if I could work on this ? |
I have been fixing it locally also each time I start a new project. I would assume its just a matter of adding "cursor-pointer" or something to the default button props. I will admit im not a github expert yet so I did not want to screw anything up with the PR process :) |
Yea, just add cursor-pointer to the default state of your ui/button. |
I think this behavior is related to the Tailwind v4 update, where they changed the default cursor style for buttons. According to the Tailwind v4 Upgrade Guide:
So in Tailwind v4, buttons no longer automatically show the hand cursor unless you explicitly add I think it's better to create a custom wrapper button component that extends the default |
Yes, your approach is good too, but the default state of button has not been like that on @shadcn since tailwind v3 |
Duplicate of #6843. I agree it is bad and I hope shadcn/ui fixes this. |
Tried fixing the issue by applying the cursor-pointer style to the Button component's base. Tested and confirmed working on my local system. |
Yea, that is how it was supposed to be |
Describe the bug
The Button component does not show a cursor when hovered over by default. Whenever I make a new project now I need to add it in manually. Can this just be put in as a default?
Affected component/components
Button
How to reproduce
Codesandbox/StackBlitz link
No response
Logs
System Info
Before submitting
The text was updated successfully, but these errors were encountered: