add button disabled state: cursor-not-allowed (#4436)

This commit is contained in:
rr-bw 2023-01-24 08:22:10 -08:00 committed by GitHub
parent 5907ebad3f
commit b27e2605d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,7 @@ const buttonStyles: Record<ButtonType, string[]> = {
"disabled:tw-border-primary-500/60",
"disabled:!tw-text-contrast/60",
"disabled:tw-bg-clip-padding",
"disabled:tw-cursor-not-allowed",
...focusRing,
],
secondary: [
@ -33,6 +34,7 @@ const buttonStyles: Record<ButtonType, string[]> = {
"disabled:tw-bg-transparent",
"disabled:tw-border-text-muted/60",
"disabled:!tw-text-muted/60",
"disabled:tw-cursor-not-allowed",
...focusRing,
],
danger: [
@ -45,6 +47,7 @@ const buttonStyles: Record<ButtonType, string[]> = {
"disabled:tw-bg-transparent",
"disabled:tw-border-danger-500/60",
"disabled:!tw-text-danger/60",
"disabled:tw-cursor-not-allowed",
...focusRing,
],
unstyled: [],