[PR #15475] [MERGED] Fixes #15340: Fix flicker on page load with dark mode enabled #14599

Closed
opened 2025-12-29 23:25:25 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/15475
Author: @jeremystretch
Created: 3/19/2024
Status: Merged
Merged: 3/19/2024
Merged by: @jeremystretch

Base: featureHead: 15340-color-mode-fix


📝 Commits (2)

  • 2eb3cbc Fixes #15340: Fix flicker on page load with dark mode enabled
  • 850991a Specify when color mode is unset

📊 Changes

2 files changed (+15 additions, -15 deletions)

View changed files

📝 netbox/project-static/js/setmode.js (+3 -2)
📝 netbox/templates/base/base.html (+12 -13)

📄 Description

Fixes: #15340

  • Call initMode() on page load
  • Set data-bs-theme attribute on <html> element

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/15475 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 3/19/2024 **Status:** ✅ Merged **Merged:** 3/19/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `15340-color-mode-fix` --- ### 📝 Commits (2) - [`2eb3cbc`](https://github.com/netbox-community/netbox/commit/2eb3cbc7b4b60e51b341ebf4bb617f4929dcf970) Fixes #15340: Fix flicker on page load with dark mode enabled - [`850991a`](https://github.com/netbox-community/netbox/commit/850991a6afe7cd5d6620559ea721f291a856512a) Specify when color mode is unset ### 📊 Changes **2 files changed** (+15 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `netbox/project-static/js/setmode.js` (+3 -2) 📝 `netbox/templates/base/base.html` (+12 -13) </details> ### 📄 Description ### Fixes: #15340 - Call `initMode()` on page load - Set `data-bs-theme` attribute on `<html>` element --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:25:25 +01:00
adam closed this issue 2025-12-29 23:25:25 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14599