File tree Expand file tree Collapse file tree 1 file changed +31
-16
lines changed
apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block Expand file tree Collapse file tree 1 file changed +31
-16
lines changed Original file line number Diff line number Diff line change @@ -284,22 +284,37 @@ const renderLabel = (
284284 </ >
285285 ) }
286286 { showCanonicalToggle && (
287- < button
288- type = 'button'
289- className = 'flex h-[12px] w-[12px] flex-shrink-0 items-center justify-center bg-transparent p-0 disabled:cursor-not-allowed disabled:opacity-50'
290- onClick = { canonicalToggle ?. onToggle }
291- disabled = { canonicalToggleDisabledResolved }
292- aria-label = { canonicalToggle ?. mode === 'advanced' ? 'Use selector' : 'Enter manual ID' }
293- >
294- < ArrowLeftRight
295- className = { cn (
296- '!h-[12px] !w-[12px]' ,
297- canonicalToggle ?. mode === 'advanced'
298- ? 'text-[var(--text-primary)]'
299- : 'text-[var(--text-secondary)]'
300- ) }
301- />
302- </ button >
287+ < Tooltip . Root >
288+ < Tooltip . Trigger asChild >
289+ < button
290+ type = 'button'
291+ className = 'flex h-[12px] w-[12px] flex-shrink-0 items-center justify-center bg-transparent p-0 disabled:cursor-not-allowed disabled:opacity-50'
292+ onClick = { canonicalToggle ?. onToggle }
293+ disabled = { canonicalToggleDisabledResolved }
294+ aria-label = {
295+ canonicalToggle ?. mode === 'advanced'
296+ ? 'Switch to selector'
297+ : 'Switch to manual ID'
298+ }
299+ >
300+ < ArrowLeftRight
301+ className = { cn (
302+ '!h-[12px] !w-[12px]' ,
303+ canonicalToggle ?. mode === 'advanced'
304+ ? 'text-[var(--text-primary)]'
305+ : 'text-[var(--text-secondary)]'
306+ ) }
307+ />
308+ </ button >
309+ </ Tooltip . Trigger >
310+ < Tooltip . Content side = 'top' >
311+ < p >
312+ { canonicalToggle ?. mode === 'advanced'
313+ ? 'Switch to selector'
314+ : 'Switch to manual ID' }
315+ </ p >
316+ </ Tooltip . Content >
317+ </ Tooltip . Root >
303318 ) }
304319 </ div >
305320 </ div >
You can’t perform that action at this time.
0 commit comments