Skip to content

Commit

Permalink
Restore theme override behavior for font-family
Browse files Browse the repository at this point in the history
  • Loading branch information
federicobond committed Jun 1, 2024
1 parent d481182 commit 79fb0a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions debug_toolbar/static/debug_toolbar/css/toolbar.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* Variable definitions */
:root,
#djDebug[data-theme="light"] {
:root {
/* Font families are the same as in Django admin/css/base.css */
--djdt-font-family-primary: "Segoe UI", system-ui, Roboto, "Helvetica Neue",
Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
Expand All @@ -10,7 +9,10 @@
"Source Code Pro", "Fira Mono", "Droid Sans Mono", "Courier New",
monospace, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
"Noto Color Emoji";
}

:root,
#djDebug[data-theme="light"] {
--djdt-font-color: black;
--djdt-background-color: white;
--djdt-panel-content-background-color: #eee;
Expand Down
2 changes: 2 additions & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Change log
Pending
-------

* Fix overriding font-family for both light and dark themes.

4.4.2 (2024-05-27)
------------------

Expand Down

0 comments on commit 79fb0a0

Please sign in to comment.