From ec5259a0fcceaf991a299d46463b48786ba98cdb Mon Sep 17 00:00:00 2001 From: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com> Date: Fri, 14 Feb 2025 17:33:14 -0300 Subject: [PATCH] fix: updates color of inactive buttons on table component (#6315) Updated color of disabled buttons on table component --- .../tableComponent/components/TableOptions/index.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/frontend/src/components/core/parameterRenderComponent/components/tableComponent/components/TableOptions/index.tsx b/src/frontend/src/components/core/parameterRenderComponent/components/tableComponent/components/TableOptions/index.tsx index 8297c9fa2..70acdab7e 100644 --- a/src/frontend/src/components/core/parameterRenderComponent/components/tableComponent/components/TableOptions/index.tsx +++ b/src/frontend/src/components/core/parameterRenderComponent/components/tableComponent/components/TableOptions/index.tsx @@ -57,7 +57,9 @@ export default function TableOptions({ name="Copy" className={cn( "h-5 w-5 transition-all", - hasSelection ? "text-primary" : "text-muted-foreground", + hasSelection + ? "text-primary" + : "cursor-not-allowed text-placeholder-foreground", )} /> @@ -86,7 +88,7 @@ export default function TableOptions({ className={cn( "h-5 w-5 transition-all", !hasSelection - ? "text-muted-foreground" + ? "cursor-not-allowed text-placeholder-foreground" : "text-primary hover:text-status-red", )} /> @@ -109,7 +111,9 @@ export default function TableOptions({ strokeWidth={2} className={cn( "h-5 w-5 transition-all", - !stateChange ? "text-muted-foreground" : "text-primary", + !stateChange + ? "cursor-not-allowed text-placeholder-foreground" + : "text-primary", )} />