[PR #16824] [MERGED] 16648 dashboard contrast issues #14925

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/16824
Author: @andrewgormley
Created: 7/4/2024
Status: Merged
Merged: 7/10/2024
Merged by: @jeremystretch

Base: feature-uiHead: 16648-dashboard-contrast-issues


📝 Commits (3)

📊 Changes

5 files changed (+21 additions, -4 deletions)

View changed files

📝 netbox/project-static/dist/netbox.css (+1 -1)
📝 netbox/project-static/styles/netbox.scss (+1 -0)
netbox/project-static/styles/overrides/_gridstack.scss (+12 -0)
📝 netbox/project-static/styles/overrides/_tabler.scss (+4 -0)
📝 netbox/templates/extras/dashboard/widget.html (+3 -3)

📄 Description

Fixes: #16648

  • (Dashboard) Module headers low contrast text [both, single]
    I've changed default card header colors to be more in-line with the theme selected as per the design and increased the contrast. Some card header colors still score low on the WCAG scale due to the customizable colors we allow users to select, however in my opinion they are still legible, especially with the ability to select to preference.
  • (Dashboard) Body copy low contrast on NetBox news [dark, single]
    The Netbox News sub text was fixed as secondary text color was changed globally on a prior PR.
  • Fix bug where user sets widget color to gray on dark mode making card header text illegible

🔄 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/16824 **Author:** [@andrewgormley](https://github.com/andrewgormley) **Created:** 7/4/2024 **Status:** ✅ Merged **Merged:** 7/10/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature-ui` ← **Head:** `16648-dashboard-contrast-issues` --- ### 📝 Commits (3) - [`b2be598`](https://github.com/netbox-community/netbox/commit/b2be59896a3690c121ebe4f55fb2fe3b02c840ac) fixed #16648: dashboard contrast issues - [`cc3d937`](https://github.com/netbox-community/netbox/commit/cc3d937ea888b1bfc70f89949a23075e1fe36c21) reinstate amendment to 16649 - [`2d122fc`](https://github.com/netbox-community/netbox/commit/2d122fcd3dec21feb0b5de8d69b007b1f0744c46) fixed #16648: created gridstack override and removed inline bug fix ### 📊 Changes **5 files changed** (+21 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `netbox/project-static/dist/netbox.css` (+1 -1) 📝 `netbox/project-static/styles/netbox.scss` (+1 -0) ➕ `netbox/project-static/styles/overrides/_gridstack.scss` (+12 -0) 📝 `netbox/project-static/styles/overrides/_tabler.scss` (+4 -0) 📝 `netbox/templates/extras/dashboard/widget.html` (+3 -3) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #16648 <!-- Please include a summary of the proposed changes below. --> - [ ] (Dashboard) Module headers low contrast text [both, single] I've changed default card header colors to be more in-line with the theme selected as per the design and increased the contrast. Some card header colors still score low on the WCAG scale due to the customizable colors we allow users to select, however in my opinion they are still legible, especially with the ability to select to preference. - [x] (Dashboard) Body copy low contrast on NetBox news [dark, single] The Netbox News sub text was fixed as secondary text color was changed globally on a prior PR. - [x] Fix bug where user sets widget color to gray on dark mode making card header text illegible --- <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:27:30 +01:00
adam closed this issue 2025-12-29 23:27:30 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14925