#36312: dark_mode.css has invalid size units for svg
---------------------------------------------+---------------------------
               Reporter:  Christian Wiegand  |          Owner:  cwiegand
                   Type:  Bug                |         Status:  assigned
              Component:  contrib.admin      |        Version:  5.2
               Severity:  Normal             |       Keywords:  admin css
           Triage Stage:  Unreviewed         |      Has patch:  0
    Needs documentation:  0                  |    Needs tests:  0
Patch needs improvement:  0                  |  Easy pickings:  1
                  UI/UX:  0                  |
---------------------------------------------+---------------------------
 In django admin the javascript console shows some error messages

 {{{
 Error: Invalid value for <svg> attribute width="1.5rem"
 }}}

 This ist caused by an invalid size unit "1.5rem" in the
 django/contrib/admin/static/admin/css/dark_mode.css:

 {{{
 .theme-toggle svg {
     vertical-align: middle;
     height: 1.5rem;
     width: 1.5rem;
     display: none;
 }
 }}}

 According to the specs svg doesn't allow "rem" as a valid unit (although
 some browsers will set the correct size).
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36312>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/010701961aa3ac78-93d85847-fe9c-4733-8eb1-7e1faabc8dad-000000%40eu-central-1.amazonses.com.

Reply via email to