Open chrisbloom7 opened 2 months ago
In fact, I'd argue that anything other than a fill
, stroke
, and stroke-width
style attribute in a linkStyle
definition should be forwarded to the edgeLabel
node since those are the only three style attributes a path
element respects.
Description
I would expect the following code to render the connector line in green, the label in red, and the label background in blue:
In the rendered HTML, the
color
attribute is forwarded to the.edgeLabel
node and applied as an inline style, thus overriding the defaultedgeSpan
class color. However, thebackground-color
attribute is added to the connectorpath
node inline style, even thoughpath
elements do not have abackground-color
style, only afill
style. I would expect thebackground-color
attribute to be forwarded to the.edgeLabel
node along with thecolor
.Steps to reproduce
.edgeLink
CSS classScreenshots
Screenshot showing rendered connector with background-color attribute ignored
Screenshot showing rendered HTML with color attribute applied but no background-color attribute.
Code Sample
Example in live editor
Setup
Suggested Solutions
Given that the
path
element does not have a background-color style attribute, I would expect thebackground-color
attribute to be forwarded to the.edgeLabel
node along with thecolor
attribute.Additional Context
No response