fix: use xlink:href for SVG icon references in treeView renderer

Headless Chrome (used by Argos CI screenshots) does not resolve bare
href on <use> elements. Switch to xlink:href to match the convention
used by other mermaid diagrams (e.g. sequence diagram actors).
This commit is contained in:
Ben Doherty
2026-04-02 18:49:54 +10:30
parent c2d7da7ee2
commit a8c1f581fd
@@ -65,7 +65,7 @@ const positionLabel = (
if (showIcon) {
nodeGroup
.append('use')
.attr('href', `#tv-icon-${diagramId}-${node.iconId}`)
.attr('xlink:href', `#tv-icon-${diagramId}-${node.iconId}`)
.attr('x', x + config.paddingX)
.attr('y', y + config.paddingY)
.attr('width', ICON_SIZE)