Skip to content

Node label's background container is hardcoded in white color #1368

Closed
@wthrajat

Description

@wthrajat

Hello! In my web application, the node label colors are generated dynamically to ensure they are visible against the background. For example, if the web app has a dark (black) background, the node label color is set to white to provide contrast.
The default color is black node label with a white label container as can be seen in the screenshot below:
2023-07-12-13 53 28-screenshot
In this case, the black label color works well because the label container is white, allowing the label to stand out.

However, there is an issue when the label color is white. During hover, the label may become invisible because the label text color matches the background container color. You can see this in the screenshot below:

2023-07-12-13 59 49-screenshot
As you can observe, the labels are visible when not hovering, as shown in the bottom right of the screenshot."

Any idea on how can I change the color of label container (not label)?
I couldnt find the solution on the internet

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions