reduce dimming on disabled buttons
This commit is contained in:
parent
b1002b70e9
commit
280b831c51
2 changed files with 2 additions and 2 deletions
|
@ -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}>
|
||||
|
|
|
@ -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>
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue