Netbox 3.0.1 doesn't follow system colour theme #5307

Closed
opened 2025-12-29 19:26:28 +01:00 by adam · 1 comment
Owner

Originally created by @leec-666 on GitHub (Sep 3, 2021).

NetBox version

v3.0.1

Python version

3.7

Steps to Reproduce

  1. Log into Netbox and ensure the colour preference is not set in user preferences
  2. Change system theme
  3. Refresh page. If your system theme went from light>dark, you'll see Netbox very briefly displayed in the dark theme before switching back to light.

Expected Behavior

Netbox's colour theme should change to follow the system theme

Observed Behavior

System theme is only followed one time after netbox-color-mode is deleted after which it will stick. When stepping through the Javascript, it reaches line 45 where the theme flashes dark then back to light:
image

Tested on Firefox 91 + Edge on Windows 10 and Safari on iOS 14.7.

Originally created by @leec-666 on GitHub (Sep 3, 2021). ### NetBox version v3.0.1 ### Python version 3.7 ### Steps to Reproduce 1. Log into Netbox and ensure the colour preference is not set in user preferences 2. Change system theme 3. Refresh page. If your system theme went from light>dark, you'll see Netbox very briefly displayed in the dark theme before switching back to light. ### Expected Behavior Netbox's colour theme should change to follow the system theme ### Observed Behavior System theme is only followed one time after netbox-color-mode is deleted after which it will stick. When stepping through the Javascript, it reaches line 45 where the theme flashes dark then back to light: ![image](https://user-images.githubusercontent.com/20431435/131939207-4f4a4b73-d521-4ffb-8ba0-e56d9d755f67.png) Tested on Firefox 91 + Edge on Windows 10 and Safari on iOS 14.7.
adam added the type: bugstatus: needs owner labels 2025-12-29 19:26:28 +01:00
adam closed this issue 2025-12-29 19:26:28 +01:00
Author
Owner

@thatmattlove commented on GitHub (Sep 30, 2021):

This is resolved as part of the fix for #7373, 14b065c

@thatmattlove commented on GitHub (Sep 30, 2021): This is resolved as part of the fix for #7373, 14b065c
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5307