Skip to content

Commit 4aa12df

Browse files
committed
Fix button cursor hover
1 parent 525c0d4 commit 4aa12df

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
File renamed without changes.

src/assets/css/tailwind.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@
2121
}
2222

2323
@layer base {
24+
/* Adds cursor-pointer for buttons by default, tailwind v4 defaults to cursor pointer for buttons */
25+
button,
26+
[role='button'] {
27+
cursor: pointer;
28+
}
29+
button:disabled,
30+
[role='button']:disabled {
31+
cursor: default;
32+
}
33+
2434
body {
2535
@apply tw:overflow-x-hidden tw:font-body tw:text-base tw:font-normal tw:leading-body tw:text-body;
2636
}

0 commit comments

Comments
 (0)