Skip to content

Commit

Permalink
15853 fix background color for cable trace svg in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
arthanson committed Apr 26, 2024
1 parent 5c17178 commit d393eba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/project-static/dist/cable_trace.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions netbox/project-static/styles/svg/cable_trace.scss
Expand Up @@ -8,6 +8,7 @@

:root {
// Light mode values
--nbx-trace-bg: var(--tblr-bg-surface-secondary);
--nbx-trace-color: #{$black};
--nbx-trace-node-bg: #{$gray-200};
--nbx-trace-termination-bg: #{$gray-100};
Expand All @@ -16,6 +17,7 @@

&[data-bs-theme='dark'] {
// Dark mode values
--nbx-trace-bg: rgb(27, 41, 58);
--nbx-trace-color: #{$white};
--nbx-trace-node-bg: #{$gray-900};
--nbx-trace-termination-bg: #{$gray-800};
Expand Down Expand Up @@ -44,6 +46,8 @@ text {
}

svg {
background-color: var(--nbx-trace-bg);

/* Boxes */
rect {
fill: var(--nbx-trace-node-bg);
Expand Down

0 comments on commit d393eba

Please sign in to comment.