You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
├─ Link | button? (absolute overlay — the click target)
13
+
├─ Link | button? (absolute overlay — the click target; also the tooltip trigger)
14
14
├─ rightChildren? (absolute, above the overlay for inline actions)
15
15
└─ ContentAction (icon + title + truncation spacer)
16
16
```
@@ -31,6 +31,8 @@ Pass `folded` only to override the sidebar — outside a sidebar, in Storybook,
31
31
32
32
The folded-name tooltip is the one part that stays in JS: CSS cannot arm a tooltip. It lives in a small wrapper that subscribes to the fold state on the tab's behalf, so a fold re-renders the wrapper and nothing below it. The wrapper keeps the tooltip mounted and passes `suppressed` while the tab is unfolded, so hover stays Radix's to track and an unfolded tab holds no hover state of its own.
33
33
34
+
Both tooltips (the folded name and an explicit `tooltip`) wrap the overlay control, not the tab. The tab's own tree shape therefore never depends on whether there is a tooltip, so `children` can switch from a label to an element — an inline rename input — without remounting the row and dropping focus. A disabled tab has no control, so it renders an inert overlay as the trigger when it has a tooltip.
0 commit comments