mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 01:08:28 +02:00
Button disabled style opacity
This commit is contained in:
@@ -76,7 +76,7 @@ export function RecentRequestsDropdown() {
|
|||||||
size="sm"
|
size="sm"
|
||||||
className="flex-[2] text-center text-gray-800 text-sm truncate pointer-events-none"
|
className="flex-[2] text-center text-gray-800 text-sm truncate pointer-events-none"
|
||||||
>
|
>
|
||||||
{activeRequest?.name ?? <span className="text-gray-400">No Request</span>}
|
{activeRequest?.name ?? 'No Request'}
|
||||||
</Button>
|
</Button>
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ const _Button = forwardRef<any, ButtonProps>(function Button(
|
|||||||
'outline-none whitespace-nowrap',
|
'outline-none whitespace-nowrap',
|
||||||
'focus-visible-or-class:ring',
|
'focus-visible-or-class:ring',
|
||||||
'rounded-md flex items-center',
|
'rounded-md flex items-center',
|
||||||
disabled ? 'pointer-events-none' : 'pointer-events-auto',
|
disabled ? 'pointer-events-none opacity-disabled' : 'pointer-events-auto',
|
||||||
colorStyles[color || 'default'],
|
colorStyles[color || 'default'],
|
||||||
justify === 'start' && 'justify-start',
|
justify === 'start' && 'justify-start',
|
||||||
justify === 'center' && 'justify-center',
|
justify === 'center' && 'justify-center',
|
||||||
|
|||||||
Reference in New Issue
Block a user