Skip to content

Commit 7ce724a

Browse files
committed
fix(tour): restore SVG scrim (already gated to tour-active mount)
1 parent b6180bc commit 7ce724a

1 file changed

Lines changed: 22 additions & 3 deletions

File tree

src/dashboard/src/components/tour/GuidedTour.tsx

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,28 @@ export function GuidedTour({ activeTab, chatEnabled = true, onTabChange, onClose
367367

368368
return (
369369
<>
370-
{/* Click-away layer. No SVG scrim — the highlighted element's
371-
* pulsing amber outline carries the focus signal and the full UI
372-
* stays bright underneath. */}
370+
{/* Dim overlay with cutout around highlighted element. Mounts
371+
* only while the tour is active (App.tsx gates this whole
372+
* component on `tourActive`). */}
373+
<div data-tour-overlay className={styles.svgOverlay}>
374+
<svg width="100%" height="100%" className={styles.svgFill}>
375+
<defs>
376+
<mask id="tour-mask">
377+
<rect width="100%" height="100%" fill="white" />
378+
{rect && (
379+
<rect
380+
x={rect.left - pad} y={rect.top - pad}
381+
width={rect.width + pad * 2} height={rect.height + pad * 2}
382+
rx="10" fill="black"
383+
/>
384+
)}
385+
</mask>
386+
</defs>
387+
<rect width="100%" height="100%" fill="rgba(0,0,0,0.55)" mask="url(#tour-mask)" />
388+
</svg>
389+
</div>
390+
391+
{/* Click-away layer */}
373392
<div data-tour-overlay className={styles.clickAway} onClick={handleClose} />
374393

375394
{/* Tour card */}

0 commit comments

Comments
 (0)