button: change element opacity when disabled instead of background
This commit is contained in:
@@ -91,7 +91,7 @@
|
|||||||
'text-sui-background py-3 font-medium transition-colors',
|
'text-sui-background py-3 font-medium transition-colors',
|
||||||
!loading && !disabled
|
!loading && !disabled
|
||||||
? ' bg-sui-primary hover:bg-sui-secondary cursor-pointer'
|
? ' bg-sui-primary hover:bg-sui-secondary cursor-pointer'
|
||||||
: 'bg-sui-primary/50 cursor-not-allowed ',
|
: 'cursor-not-allowed opacity-55',
|
||||||
classValue
|
classValue
|
||||||
]}
|
]}
|
||||||
onclick={handleButtonClick}
|
onclick={handleButtonClick}
|
||||||
|
|||||||
Reference in New Issue
Block a user