-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rack elevations stuck in light mode when HTMX navigation is enabled #15819
Comments
Thank you for opening a bug report. I was unable to reproduce the reported behavior on NetBox v4.0-beta2. Please see if you can identify steps to reproduce the behavior consistently. |
I would like to at that I can also reproduce this issue without HTMX at https://beta-demo.netbox.dev/dcim/rack-elevations/ even without being logged in. Just visit the rack elevations and switch to dark mode and the racks will be displayed with a light background. |
Note: Any fix for this should also check cable trace SVG. |
@v0tti I think this is fixed in the latest releases, can you please re-try in NetBox 4.0.3? |
This is still a problem in 4.0.5. Refreshing the page fixes it. |
It seems to still display the elevations in light mode during page load, but as soon as the page is fully loaded they are displayed correctly: After manually switching to light mode they seem to be stuck in the wrong mode: By reloading the page they are properly displayed in light mode (notice the different hue of white behind the unit numbers): |
blocked by. #17571 |
Deployment Type
Self-hosted
NetBox Version
v4.0-beta2
Python Version
3.11
Steps to Reproduce
/dcim/rack-elevations/
or any rack directlyExpected Behavior
I expect the racks to be display with a dark background.
Correctly displayed elevations happening some times in my self-hosted NetBox:
Observed Behavior
The racks and the numbers to their left are displayed with a light background.
Sometimes they are displayed correctly in my self-hosted install, but I could not reproduce when this is happening.
Elevations in light mode while NetBox is in dark mode (NetBox demo page):
The text was updated successfully, but these errors were encountered: