Skip to content

Label Text in color not visible in dark mode #715

@nickpl456

Description

@nickpl456

NetBox version

v4.5.5

Topology Views version

v4.5.0

Steps to Reproduce

Have your system set to dark mode and open the Topology view

Expected Behavior

All labels to be color #fff

Observed Behavior

All labels are color #000

I believe this is related to this line of code in app.js:

color:document.documentElement.dataset.netboxColorMode==="dark"?"#fff":"#000"

document.documentElement.dataset.netboxColorMode is undefined in my installation of netbox 4.5.5 (recently upgraded from netbox 4.3)

As a quick fix I've adjusted that line to use color:document.documentElement.dataset.bsTheme which seems to report light/dark correctly, however I think long term there should just be an option to customize the label color (and possibility other font related options as well).

One issue with my quick fix is that clicking on the "Enable light mode" button in netbox does not trigger a label color change, there should probably be a listener added for that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: revisions neededThis issue requires additional information to be actionabletype: bugA confirmed report of unexpected behavior in the application

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions