Allow linkStyle background-color attribute to override edgeLabel class background-color #5500
Labels
Status: Triage
Needs to be verified, categorized, etc
Type: Bug / Error
Something isn't working or is incorrect
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
The text was updated successfully, but these errors were encountered: