-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
fix(tw): use v3 button styling #7937
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR restores the Tailwind v3 button cursor: pointer
behavior in v4 and updates the comment block with upgrade guide references.
- Added
cursor: pointer
rule forbutton
and[role="button"]
in the base layer. - Included links to the Tailwind upgrade guide for both cursor and border-color changes.
Comments suppressed due to low confidence (1)
packages/ui-components/styles/index.css:17
- [nitpick] The existing comment block is focused on border-color defaults; consider expanding or splitting it to explicitly document the cursor compatibility change for buttons to improve clarity.
See https://tailwindcss.com/docs/upgrade-guide#buttons-use-the-default-cursor
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #7937 +/- ##
==========================================
+ Coverage 75.35% 75.40% +0.04%
==========================================
Files 96 96
Lines 8354 8354
Branches 220 219 -1
==========================================
+ Hits 6295 6299 +4
+ Misses 2057 2053 -4
Partials 2 2 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thanks for the comments, and sorry for the delay, I'll resolve them ASAP. |
Signed-off-by: Aviv Keller <[email protected]>
8e61ad1
to
3a11bb4
Compare
In Tailwind v4, buttons use the
default
cursor, rather than thepointer
cursor, see https://tailwindcss.com/docs/upgrade-guide#buttons-use-the-default-cursor.