From 93ff06b40fab8f399325d148aeaea95ceb652cd7 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Mon, 10 Aug 2026 15:42:06 -0700 Subject: [PATCH] fix(emcn): drop the brand highlight from popover menus MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Context menus opted into a palette of their own — `variant='secondary'` for a brand-blue row highlight and `colorScheme='inverted'` for a dark card — so the canvas, block, toolbar, terminal, sidebar, and preview menus looked nothing like the menus everywhere else in the product. Removes both overrides so they inherit the same surface, border, and `--surface-active` highlight the terminal's overflow menu already uses, and drops the brand state from the Popover itself along with the `variant` prop that only ever selected it. One fewer way to style a menu. --- apps/sim/app/playground/page.tsx | 6 +-- .../components/block-menu/block-menu.tsx | 8 +--- .../components/canvas-menu/canvas-menu.tsx | 8 +--- .../w/[workflowId]/components/chat/chat.tsx | 2 +- .../toolbar-item-context-menu.tsx | 8 +--- .../log-row-context-menu.tsx | 8 +--- .../components/output-context-menu.tsx | 8 +--- .../workflow-controls/workflow-controls.tsx | 9 +--- .../preview-context-menu.tsx | 8 +--- .../empty-area-context-menu.tsx | 8 +--- .../emcn/src/components/popover/popover.tsx | 45 ++++--------------- 11 files changed, 20 insertions(+), 98 deletions(-) diff --git a/apps/sim/app/playground/page.tsx b/apps/sim/app/playground/page.tsx index 22b78338769..ddee87cff6f 100644 --- a/apps/sim/app/playground/page.tsx +++ b/apps/sim/app/playground/page.tsx @@ -868,10 +868,10 @@ export default function PlaygroundPage() { - - + + - + Item 1 diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/block-menu/block-menu.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/block-menu/block-menu.tsx index 6060a2a57a4..ec8d55e46a0 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/block-menu/block-menu.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/block-menu/block-menu.tsx @@ -130,13 +130,7 @@ export function BlockMenu({ } return ( - !open && onClose()} - variant='secondary' - size='sm' - colorScheme='inverted' - > + !open && onClose()} size='sm'> !open && onClose()} - variant='secondary' - size='sm' - colorScheme='inverted' - > + !open && onClose()} size='sm'> {/* More menu with actions */} - +