Skip to content

Commit 784c83e

Browse files
Document button cursor change (tailwindlabs#2023)
Closes tailwindlabs#15773 --------- Co-authored-by: Adam Wathan <[email protected]>
1 parent f4a41f0 commit 784c83e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/docs/upgrade-guide.mdx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,22 @@ You probably won't even notice this change (it might even make your project look
418418
}
419419
```
420420

421+
#### Buttons use the default cursor
422+
423+
Buttons now use `cursor: default` instead of `cursor: pointer` to match the default browser behavior.
424+
425+
If you'd like to continue using `cursor: pointer` by default, add these base styles to your CSS:
426+
427+
```css
428+
/* [!code filename:CSS] */
429+
@layer base {
430+
button:not(:disabled),
431+
[role="button"]:not(:disabled) {
432+
cursor: pointer;
433+
}
434+
}
435+
```
436+
421437
### Adding custom utilities
422438

423439
In v3, any custom classes you defined within `@layer utilities` would get picked up by Tailwind as a true utility class and would automatically work with variants like `hover`, `focus`, or `lg`.

0 commit comments

Comments
 (0)