Skip to content

fix(blog-ui): make MindMap + UseCaseDiagram edges easy to hover - #218

Merged
omars-lab merged 1 commit into
masterfrom
diagram-edge-hover-targets
Jul 12, 2026
Merged

fix(blog-ui): make MindMap + UseCaseDiagram edges easy to hover#218
omars-lab merged 1 commit into
masterfrom
diagram-edge-hover-targets

Conversation

@omars-lab

Copy link
Copy Markdown
Owner

What

Extends the FlowDiagram edge-hover fix (from #216) to the other two inline-SVG diagram components. An SVG stroke only receives pointer events on its visible width, so the thin <MindMap> connectors and <UseCaseDiagram> links were hard to hover to select.

Each thin line now has a wide (~16px) transparent hit-area beneath it, inside a wrapping group, so hovering anywhere near the line highlights the visible edge:

  • MindMap: connectors tint to the node-border color on hover (their width is an inline per-depth taper, so color-only). Linked nodes render on top and stay clickable.
  • UseCaseDiagram: association / include / extend links highlight (brand green, thicker) on hover.

Bumps @omars-lab/blog-ui to 0.7.2.

Verified

  • yarn build passes; all 118 unit tests green.
  • Browser-checked in the Choosing a Diagram post: hovering a MindMap connector tints it, hovering a UseCaseDiagram link highlights it, in both light and dark. MindMap linked nodes remain clickable.
  • gitleaks scan of the commit: no leaks found.

🤖 Generated with Claude Code

Extend the FlowDiagram edge-hover fix to the other two inline-SVG diagram
components. An SVG stroke only receives pointer events on its visible
width, so the thin MindMap connectors and UseCaseDiagram links were hard
to hover to select. Add a wide (~16px) transparent hit-area under each,
inside a wrapping group, so hovering anywhere near the line highlights
the visible edge:
- MindMap: connectors tint to the node-border color on hover (width is an
  inline per-depth taper, so color-only). Linked nodes render on top and
  stay clickable.
- UseCaseDiagram: association / include / extend links highlight (brand
  green, thicker) on hover.

Bumps blog-ui to 0.7.2.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@omars-lab
omars-lab merged commit b40a0e9 into master Jul 12, 2026
2 checks passed
@omars-lab
omars-lab deleted the diagram-edge-hover-targets branch July 12, 2026 15:27
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