-
Notifications
You must be signed in to change notification settings - Fork 6
feat(Root): cursor strategy support #873
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
🦋 Changeset detectedLatest commit: 3d6b72a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📦 NPM canary releaseDeployed canary version 0.0.0-canary-ad2c384. |
🧪 Storybook is successfully deployed!
|
🏋️ Size limit report
Click here if you want to find out what is changed in this build |
| border: '2px solid #007acc', | ||
| borderRadius: '4px', | ||
| cursor: 'pointer', | ||
| cursor: '$pointer', |
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.
Bug: Inline styles: replace $pointer with CSS var(--pointer)
The cursor property in React inline styles uses the $pointer token, which is specific to the tasty styling system. For standard inline styles, CSS custom properties need to be referenced using var(--pointer).
Note
Adds Root
cursorStrategy('web' | 'native') and replaces hard-coded pointer cursors with$pointer/CSS var usage across UI components.cursorStrategy?: 'web' | 'native'prop; sets--pointerCSS var (pointerfor web,defaultfor native).cursor: pointerwith$pointerorvar(--pointer)inAction,Button,ItemAction,Item,Checkbox,FileInput(including hiddenInput),ListBoxcheckbox wrapper,Sliderthumb,Switch(andThumb),CopyPasteBlock,CalendarCell,FileTabstab,Base64Upload.Buttonnow usesdefaultby default,:is(a)->pointer,:is(button)->$pointer,disabled->not-allowed;Itemupdates for:is(a)/:is(button)and menu/listbox roles.HiddenInputand various wrappers align to$pointer.$pointer.Written by Cursor Bugbot for commit 3d6b72a. This will update automatically on new commits. Configure here.