Skip to content

Commit

Permalink
Remove rem units from svg (#1942)
Browse files Browse the repository at this point in the history
* Use css properties for height and width
  • Loading branch information
michjnich authored Jul 4, 2024
1 parent d0f09b3 commit eff9128
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ htmlcov
.tox
geckodriver.log
coverage.xml
.direnv/
.envrc
2 changes: 2 additions & 0 deletions debug_toolbar/static/debug_toolbar/css/toolbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -734,4 +734,6 @@
#djDebug[data-theme="dark"] #djToggleThemeButton svg.theme-dark,
#djDebug[data-theme="auto"] #djToggleThemeButton svg.theme-auto {
display: block;
height: 1rem;
width: 1rem;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
aria-hidden="true"
class="djdt-hidden theme-auto"
fill="currentColor"
width="1rem"
height="1rem"
viewBox="0 0 32 32"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -15,8 +13,6 @@
<svg
aria-hidden="true"
class="djdt-hidden theme-light"
width="1rem"
height="1rem"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -31,8 +27,6 @@
<svg
aria-hidden="true"
class="djdt-hidden theme-dark"
width="1rem"
height="1rem"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
Expand Down
1 change: 1 addition & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Pending
paths aren't installed.
* Introduce helper function ``debug_toolbar_urls`` to
simplify installation.
* Moved "1rem" height/width for SVGs to CSS properties.

4.4.2 (2024-05-27)
------------------
Expand Down

0 comments on commit eff9128

Please sign in to comment.