Skip to content

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

Merged
merged 3 commits into from
Jul 7, 2025
Merged

Conversation

avivkeller
Copy link
Member

In Tailwind v4, buttons use the default cursor, rather than the pointer cursor, see https://tailwindcss.com/docs/upgrade-guide#buttons-use-the-default-cursor.

@Copilot Copilot AI review requested due to automatic review settings July 3, 2025 00:46
@avivkeller avivkeller requested a review from a team as a code owner July 3, 2025 00:46
Copy link

vercel bot commented Jul 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview Jul 7, 2025 8:20pm

Copy link
Contributor

@Copilot Copilot AI left a 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 for button 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

Copy link

codecov bot commented Jul 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.40%. Comparing base (6eace68) to head (3a11bb4).
Report is 3 commits behind head on main.

✅ 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.
📢 Have feedback on the report? Share it here.

Copy link
Member

@bjohansebas bjohansebas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@avivkeller
Copy link
Member Author

Thanks for the comments, and sorry for the delay, I'll resolve them ASAP.

@avivkeller avivkeller added this pull request to the merge queue Jul 7, 2025
Merged via the queue into main with commit b6fce3c Jul 7, 2025
17 checks passed
@avivkeller avivkeller deleted the fix/tailwind-default-button branch July 7, 2025 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants