Commit f176477
fix(button,badge): make cursor consistent — pointer on Button, default on Badge (#309)
* fix(button): restore pointer cursor on Button
Tailwind v4 dropped the Preflight rule that gave button/[role="button"] a
cursor: pointer, so the base Button showed the default arrow cursor while
components that hardcode astw:cursor-pointer (e.g. ActionPanel) did not.
Add astw:cursor-pointer to the buttonVariants base classes so all Button
instances are consistent. Disabled buttons keep the default cursor via the
existing astw:disabled:pointer-events-none.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(badge): pin cursor: default so badges don't inherit pointer
A Badge is non-interactive but renders a <div> with no cursor, so it inherited
cursor: pointer from clickable ancestors (e.g. a DataTable row with onClickRow).
Add astw:cursor-default to badgeVariants so a badge never signals clickability.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* docs(badge): note badges are non-interactive (default cursor)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent fb61c8f commit f176477
5 files changed
Lines changed: 32 additions & 15 deletions
File tree
- .changeset
- docs/components
- packages/core
- __snapshots__
- src/components
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| |||
0 commit comments