From 70643518451b2a2df2858ef5c95a9460e295c440 Mon Sep 17 00:00:00 2001 From: Felipe Coutinho Date: Sun, 22 Feb 2026 22:21:58 +0000 Subject: [PATCH] feat: ajustar estilo dos links da topbar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Link ativo: só text-primary, sem fundo - Hover: text-foreground + underline (sem fundo) - Espaçamento uniforme px-3 em links e triggers Co-Authored-By: Claude Sonnet 4.6 --- components/topbar/top-nav-menu.tsx | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/components/topbar/top-nav-menu.tsx b/components/topbar/top-nav-menu.tsx index cb25945..f696b27 100644 --- a/components/topbar/top-nav-menu.tsx +++ b/components/topbar/top-nav-menu.tsx @@ -40,8 +40,25 @@ type TopNavMenuProps = { preLancamentosCount?: number; }; -const triggerClass = - "!bg-transparent !text-foreground/80 hover:!bg-foreground/10 hover:!text-foreground focus:!bg-foreground/10 focus:!text-foreground data-[state=open]:!bg-foreground/10 data-[state=open]:!text-foreground"; +const linkBase = + "inline-flex h-9 items-center justify-center rounded-md px-3 py-2 text-sm font-medium transition-colors"; +const linkIdle = "text-foreground/70 hover:text-foreground hover:underline"; +const linkActive = "text-primary"; + +// NavigationMenuTrigger override: remove backgrounds, keep underline style +const triggerClass = [ + "text-foreground/70!", + "bg-transparent!", + "hover:bg-transparent!", + "hover:text-foreground!", + "hover:underline!", + "focus:bg-transparent!", + "focus:text-foreground!", + "data-[state=open]:bg-transparent!", + "data-[state=open]:text-foreground!", + "data-[state=open]:underline!", + "px-3!", +].join(" "); function SimpleNavLink({ href, @@ -59,11 +76,7 @@ function SimpleNavLink({ return ( {children}