Skip to content

Commit

Permalink
Merge pull request #280 from pixix4/bugfix/link-hover-stroke-opacity
Browse files Browse the repository at this point in the history
Fix link hover stroke opacity
  • Loading branch information
zHaytam authored Aug 25, 2023
2 parents 1f7e376 + 3ae8639 commit eb9f37c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Blazor.Diagrams/Components/LinkWidget.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ private RenderFragment GetSelectionHelperPath(string color, string d, int index)
builder.AddAttribute(3, "stroke-width", 12);
builder.AddAttribute(4, "d", d);
builder.AddAttribute(5, "stroke-linecap", "butt");
builder.AddAttribute(6, "stroke-opacity", _hovered ? 0.05 : 0);
builder.AddAttribute(6, "stroke-opacity", _hovered ? "0.05" : "0");
builder.AddAttribute(7, "fill", "none");
builder.AddAttribute(8, "onmouseenter", EventCallback.Factory.Create<MouseEventArgs>(this, OnMouseEnter));
builder.AddAttribute(9, "onmouseleave", EventCallback.Factory.Create<MouseEventArgs>(this, OnMouseLeave));
Expand Down Expand Up @@ -59,4 +59,4 @@ private LinkVertexModel CreateVertex(double clientX, double clientY, int index)
Link.Refresh();
return vertex;
}
}
}

0 comments on commit eb9f37c

Please sign in to comment.