From 9db91f6099916c41ef38b50ed710553cf52e4161 Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Fri, 30 Jun 2023 14:34:22 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(GenericNode/index.tsx):=20re?= =?UTF-8?q?move=20unnecessary=20whitespace=20in=20hover=20class=20to=20fix?= =?UTF-8?q?=20styling=20issue=20=F0=9F=90=9B=20fix(button.tsx):=20add=20da?= =?UTF-8?q?rk=20mode=20styling=20for=20primary=20button=20variant=20to=20e?= =?UTF-8?q?nsure=20consistent=20styling=20in=20both=20light=20and=20dark?= =?UTF-8?q?=20mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/CustomNodes/GenericNode/index.tsx | 6 +++--- src/frontend/src/components/ui/button.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/index.tsx b/src/frontend/src/CustomNodes/GenericNode/index.tsx index ba6f4ce2e..a6c89e354 100644 --- a/src/frontend/src/CustomNodes/GenericNode/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/index.tsx @@ -146,7 +146,7 @@ export default function GenericNode({ validationStatus && validationStatus.valid ? "w-4 h-4 rounded-full bg-status-red opacity-100" : "w-4 h-4 rounded-full bg-ring opacity-0 hidden animate-spin", - "absolute w-4 hover:text-ring hover: transition-all ease-in-out duration-200" + "absolute w-4 hover:text-ring hover:transition-all ease-in-out duration-200" )} > diff --git a/src/frontend/src/components/ui/button.tsx b/src/frontend/src/components/ui/button.tsx index 635da79b4..648ce43c9 100644 --- a/src/frontend/src/components/ui/button.tsx +++ b/src/frontend/src/components/ui/button.tsx @@ -14,7 +14,7 @@ const buttonVariants = cva( outline: "border border-input hover:bg-accent hover:text-accent-foreground", primary: - "border bg-background text-secondary-foreground hover:bg-background/80 hover:shadow-sm", + "border bg-background text-secondary-foreground hover:bg-background/80 dark:hover:bg-background/10 hover:shadow-sm", secondary: "border border-muted bg-muted text-secondary-foreground hover:bg-secondary/80", ghost: "hover:bg-accent hover:text-accent-foreground",