-
Notifications
You must be signed in to change notification settings - Fork 90
Label Text in color not visible in dark mode #715
Description
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.