From 404d8c006ecf6ea86fcf428b68bab0510a8099b7 Mon Sep 17 00:00:00 2001 From: Waleed Date: Sat, 24 Jan 2026 21:58:09 -0800 Subject: [PATCH] fix(tooltip): add tooltip to canonical toggle button (#2990) * fix(tooltip): add tooltip to canonical toggle button * ack comments --- .../editor/components/sub-block/sub-block.tsx | 47 ++++++++++++------- 1 file changed, 31 insertions(+), 16 deletions(-) diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/sub-block.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/sub-block.tsx index 274bba15b..017a51c0b 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/sub-block.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/sub-block.tsx @@ -284,22 +284,37 @@ const renderLabel = ( )} {showCanonicalToggle && ( - + + + + + +

+ {canonicalToggle?.mode === 'advanced' + ? 'Switch to selector' + : 'Switch to manual ID'} +

+
+
)}