:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(nav): light up whole home row when hovering its gear (#73818)
Thomas Obermüller12b5b8733fdc
diff --git a/frontend/src/layout/panel-layout/ai-first/NavLink.tsx b/frontend/src/layout/panel-layout/ai-first/NavLink.tsxindex cd688a3d8aa1..2c0ad012b260 100644--- a/frontend/src/layout/panel-layout/ai-first/NavLink.tsx+++ b/frontend/src/layout/panel-layout/ai-first/NavLink.tsx@@ -47,13 +47,17 @@ export function NavLink({return (<ButtonGroupPrimitivefullWidth- className="group/wrapper flex justify-center [&>span]:w-full [&>span]:flex [&>span]:justify-center"+ className="group/nav-link flex justify-center [&>span]:w-full [&>span]:flex [&>span]:justify-center"><LinkbuttonProps={{menuItem: !isCollapsed,iconOnly: isCollapsed,- className: 'group -outline-offset-2',+ // Hovering the side action has to light up the whole row too, like tree items do+ className: cn(+ 'group -outline-offset-2',+ hasSideActionRight && 'group-hover/nav-link:bg-fill-button-tertiary-hover'+ ),active: isActive,hasSideActionRight,}}@@ -93,7 +97,7 @@ export function NavLink({</Link>{hasSideActionRight && sideAction && (<ButtonPrimitive- className="group -outline-offset-2"+ className="-outline-offset-2"iconOnlyisSideActionRightonClick={(e) => {@@ -104,7 +108,7 @@ export function NavLink({tooltipPlacement="right"data-attr={sideAction['data-attr']}>- <IconGear className="size-3 text-tertiary opacity-70 group-hover:text-primary group-hover:opacity-100" />+ <IconGear className="size-3 text-tertiary opacity-70 group-hover/nav-link:text-primary group-hover/nav-link:opacity-100" /></ButtonPrimitive>)}</ButtonGroupPrimitive>