Skip to content
Prev Previous commit
Next Next commit
Add a note about the changed selector for CSS variables
  • Loading branch information
federicobond committed Apr 22, 2026
commit fd7bc05e1e819c340d22b104fb83840acfc277ed
7 changes: 7 additions & 0 deletions docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -501,3 +501,10 @@ could add a **debug_toolbar/base.html** template override to your project:
The list of CSS variables are defined at
`debug_toolbar/static/debug_toolbar/css/toolbar.css
<https://github.com/django-commons/django-debug-toolbar/blob/main/debug_toolbar/static/debug_toolbar/css/toolbar.css>`_

.. note::

The selector used to declare the toolbar's CSS variables changed from
``:root`` to ``#djDebug`` when the toolbar moved to rendering inside a
shadow DOM. If you were previously overriding these variables on
``:root``, update your styles to target ``#djDebug`` instead.
Loading