reduce dimming on disabled buttons

This commit is contained in:
Steve Ruiz 2021-11-16 21:05:35 +00:00
parent b1002b70e9
commit 280b831c51
2 changed files with 2 additions and 2 deletions

View file

@ -174,7 +174,7 @@ export function ActionButton(): JSX.Element {
<DropdownMenu.Root dir="ltr">
<DropdownMenu.Trigger dir="ltr" asChild>
<ToolButton disabled={!hasSelection} variant="circle">
<DotsHorizontalIcon opacity={hasSelection ? 1 : GHOSTED_OPACITY} />
<DotsHorizontalIcon opacity={hasSelection ? 1 : 0.618} />
</ToolButton>
</DropdownMenu.Trigger>
<DMContent sideOffset={16}>

View file

@ -19,7 +19,7 @@ export function DeleteButton(): JSX.Element {
return (
<Tooltip label="Delete" kbd="⌫">
<ToolButton variant="circle" disabled={!hasSelection} onSelect={handleDelete}>
<TrashIcon opacity={hasSelection ? 1 : GHOSTED_OPACITY} />
<TrashIcon opacity={hasSelection ? 1 : 0.618} />
</ToolButton>
</Tooltip>
)