Skip to content

Connect outgoing edges to expandable nodes - #198

Merged
vogelsgesang merged 1 commit into
mainfrom
fix-expandable-node-edge-anchor
Sep 20, 2026
Merged

vogelsgesang merged 1 commit into
mainfrom
fix-expandable-node-edge-anchor

Conversation

@vogelsgesang

@vogelsgesang vogelsgesang commented Sep 20, 2026

Copy link
Copy Markdown
Collaborator

Outgoing edges now keep the same small distance from nodes whether or not their source has a subtree toggle. Expanding a subtree no longer leaves the parent visually detached from its edges.

To do so, we separate React Flow's invisible geometry and animation handle from the visible +/- button centered over it. The standard handle preserves the same edge spacing at the top and bottom while the button remains on the node border.

Also, we use a semantic button with node-specific accessible labels, visible keyboard focus, and inherited font sizing for consistent rendering.

@vogelsgesang
vogelsgesang force-pushed the fix-expandable-node-edge-anchor branch from 697acb3 to 255ff57 Compare September 20, 2026 05:31
Outgoing edges now keep the same small distance from nodes whether or
not their source has a subtree toggle. Expanding a subtree no longer
leaves the parent visually detached from its edges.

Separate React Flow's invisible geometry and animation handle from the
visible +/- button centered over it. The standard handle preserves the
same edge spacing at the top and bottom while the button remains on the
node border.

Use a semantic button with node-specific accessible labels, visible
keyboard focus, and inherited font sizing for consistent rendering.
@vogelsgesang
vogelsgesang force-pushed the fix-expandable-node-edge-anchor branch from 255ff57 to 5489c86 Compare September 20, 2026 05:36
@vogelsgesang
vogelsgesang merged commit 9fe9758 into main Sep 20, 2026
5 checks passed
@vogelsgesang
vogelsgesang deleted the fix-expandable-node-edge-anchor branch September 20, 2026 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant