[PR #17276] [MERGED] Fixes #17230: Ensure consistent rendering for all dashboard widget colors #15044

Closed
opened 2025-12-30 00:19:37 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/17276
Author: @jeremystretch
Created: 8/27/2024
Status: Merged
Merged: 8/27/2024
Merged by: @jeremystretch

Base: developHead: 17230-widget-colors


📝 Commits (1)

  • 2a80da9 Fixes #17230: Ensure consistent rendering for all dashboard widget colors

📊 Changes

2 files changed (+29 additions, -41 deletions)

View changed files

📝 netbox/extras/dashboard/widgets.py (+0 -16)
📝 netbox/templates/extras/dashboard/widget.html (+29 -25)

📄 Description

Fixes: #17230

  • Update the dashboard widget template to use the text-bg-$color form of the CSS class for the header.
  • Remove the obsolete fg_color property from DashboardWidget.

screenshot1

screenshot2


🔄 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/17276 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 8/27/2024 **Status:** ✅ Merged **Merged:** 8/27/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `17230-widget-colors` --- ### 📝 Commits (1) - [`2a80da9`](https://github.com/netbox-community/netbox/commit/2a80da9fd629460f5cbef1008b394cc15368b6f1) Fixes #17230: Ensure consistent rendering for all dashboard widget colors ### 📊 Changes **2 files changed** (+29 additions, -41 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/dashboard/widgets.py` (+0 -16) 📝 `netbox/templates/extras/dashboard/widget.html` (+29 -25) </details> ### 📄 Description ### Fixes: #17230 - Update the dashboard widget template to use the `text-bg-$color` form of the CSS class for the header. - Remove the obsolete `fg_color` property from DashboardWidget. ![screenshot1](https://github.com/user-attachments/assets/f7f1327a-fbea-4cc7-923f-0273affcc94a) ![screenshot2](https://github.com/user-attachments/assets/391eb181-ff0a-4fbb-85a1-49e38656f3dc) --- <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-30 00:19:37 +01:00
adam closed this issue 2025-12-30 00:19:37 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15044