Skip to content

Commit c4418da

Browse files
NicolappsConvex, Inc.
authored andcommitted
Use cursor: pointer by default on buttons (#39342)
GitOrigin-RevId: 98ea42f74d6847c06f1ebf219f851580ec3063fb
1 parent ad0dde7 commit c4418da

File tree

1 file changed

+7
-0
lines changed
  • npm-packages/@convex-dev/design-system/src/styles

1 file changed

+7
-0
lines changed

npm-packages/@convex-dev/design-system/src/styles/shared.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,12 @@ html.dark {
412412
@apply font-semibold;
413413
}
414414

415+
/* Restore the pre-Tailwind 4 cursor style */
416+
button:not(:disabled),
417+
[role="button"]:not(:disabled) {
418+
cursor: pointer;
419+
}
420+
415421
/* Position the toast close button on the top right corner so that it draws less attention */
416422
html [data-sonner-toaster][dir="ltr"] {
417423
--toast-close-button-start: unset;
@@ -447,6 +453,7 @@ html.dark {
447453
dark:text-red-200;
448454
}
449455
}
456+
450457
/* Used for elements that need to fade in to a specific opacity
451458
this can't be defined in the tailwind config because you cannot interpolate
452459
variables in tailwind keyframes.

0 commit comments

Comments
 (0)