fix button loading state
This commit is contained in:
@@ -88,9 +88,9 @@
|
|||||||
bind:this={ref}
|
bind:this={ref}
|
||||||
class={[
|
class={[
|
||||||
'button group relative flex items-center gap-3 overflow-hidden rounded-sm px-5',
|
'button group relative flex items-center gap-3 overflow-hidden rounded-sm px-5',
|
||||||
'text-sui-background py-3 font-medium transition-colors',
|
'text-sui-background bg-sui-primary py-3 font-medium transition-colors',
|
||||||
!loading && !disabled
|
!loading && !disabled
|
||||||
? ' bg-sui-primary hover:bg-sui-secondary cursor-pointer'
|
? 'hover:bg-sui-secondary cursor-pointer'
|
||||||
: 'cursor-not-allowed opacity-55',
|
: 'cursor-not-allowed opacity-55',
|
||||||
classValue
|
classValue
|
||||||
]}
|
]}
|
||||||
|
|||||||
Reference in New Issue
Block a user