Skip to content

Commit

Permalink
Fix overriding font-family for both light and dark themes (#1930)
Browse files Browse the repository at this point in the history
  • Loading branch information
federicobond authored Jun 1, 2024
1 parent d481182 commit a0f0df9
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 a0f0df9

Please sign in to comment.