Skip to content

Commit 18b4340

Browse files
authored
Fixes netbox-community#16274: Dark mode highlight color (netbox-community#16355)
* Increase ::selection background-color aplha * Improve comment for override * Add compiled CSS * Only override on dark theme
1 parent b10fb67 commit 18b4340

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

netbox/project-static/dist/netbox.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

netbox/project-static/styles/overrides/_tabler.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,8 @@ table a {
3939
// Adjust table anchor link contrast as not enough contrast in dark mode
4040
filter: brightness(110%);
4141
}
42+
43+
// Override background color alpha value
44+
[data-bs-theme=dark] ::selection {
45+
background-color: rgba(var(--tblr-primary-rgb),.48)
46+
}

0 commit comments

Comments
 (0)