fix(trading): remove hover state from disabled view as button (#4487)
This commit is contained in:
parent
1041864ad8
commit
4461a6a497
@ -156,14 +156,16 @@ export const SidebarButton = ({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const buttonClasses = classNames('flex items-center p-1 rounded', {
|
const buttonClasses = classNames(
|
||||||
'text-vega-clight-200 dark:text-vega-cdark-200 hover:bg-vega-clight-500 dark:hover:bg-vega-cdark-500':
|
'flex items-center p-1 rounded',
|
||||||
!view || view !== currView?.type,
|
'disabled:cursor-not-allowed disabled:text-vega-clight-500 dark:disabled:text-vega-cdark-500',
|
||||||
'bg-vega-yellow hover:bg-vega-yellow-550 text-black':
|
{
|
||||||
view && view === currView?.type,
|
'text-vega-clight-200 dark:text-vega-cdark-200 enabled:hover:bg-vega-clight-500 dark:enabled:hover:bg-vega-cdark-500':
|
||||||
'cursor-not-allowed text-vega-clight-500 hover:bg-inherit dark:text-vega-cdark-500 dark:hover:bg-inherit':
|
!view || view !== currView?.type,
|
||||||
disabled,
|
'bg-vega-yellow enabled:hover:bg-vega-yellow-550 text-black':
|
||||||
});
|
view && view === currView?.type,
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Tooltip
|
<Tooltip
|
||||||
|
Loading…
Reference in New Issue
Block a user