Skip to content

fix(scroll-area): correct transition-shadows typo so the focus ring animates - #834

Merged
pasqualevitiello merged 1 commit into
cosscom:mainfrom
funcpp:fix/scroll-area-transition-shadow
Aug 29, 2026
Merged

fix(scroll-area): correct transition-shadows typo so the focus ring animates#834
pasqualevitiello merged 1 commit into
cosscom:mainfrom
funcpp:fix/scroll-area-transition-shadow

Conversation

@funcpp

@funcpp funcpp commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

transition-shadows is not a Tailwind utility. The property utility is singular (transition-shadow), so the class compiles to nothing: the ScrollArea viewport ends up with no transition-property or transition-duration, and the focus-visible:ring-2 focus-visible:ring-offset-1 box-shadow snaps in and out instead of easing. It is the only occurrence of the misspelling in the repo.

Validation:

  • Compiled a fixture holding both candidates with the pinned tailwindcss@4.1.17: .transition-shadow { transition-property: box-shadow; … } is emitted, .transition-shadows produces no rule at all.
  • biome check apps/ui/registry/default/ui/scroll-area.tsx is clean.
  • apps/ui/public/r/scroll-area.json and packages/ui/src/components/scroll-area.tsx carry the same one-character change, so the JSON content stays byte-identical to the registry source and the package copy still differs only by the cn import rewrite.

…nimates

Tailwind's utility is singular, so `transition-shadows` compiles to nothing: the viewport gets no transition-property or duration and its focus-visible ring snaps in and out. `transition-shadow` sets `transition-property: box-shadow`, which is what `ring-2` and `ring-offset-1` render.

The registry JSON and the packages/ui copy carry the same change.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
coss-com-origin Skipped Skipped Aug 17, 2026 8:37am

Request Review

@vercel
vercel Bot temporarily deployed to Preview – coss-com-origin August 17, 2026 08:37 Inactive
@vercel

vercel Bot commented Aug 17, 2026

Copy link
Copy Markdown

@funcpp is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

@funcpp

funcpp commented Aug 22, 2026

Copy link
Copy Markdown
Contributor Author

Hi @pasqualevitiello , can you review it?

@pasqualevitiello pasqualevitiello left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@pasqualevitiello
pasqualevitiello merged commit 0630457 into cosscom:main Aug 29, 2026
10 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants