mirror of
https://github.com/django/django.git
synced 2025-02-08 16:35:17 +00:00
Used <span> instead of <div> in admin theme button.
<div> is not allowed as child of <button>.
This commit is contained in:
parent
9bd849c8d5
commit
e0496b2e9a
@ -1,8 +1,8 @@
|
||||
{% load i18n %}
|
||||
<button class="theme-toggle">
|
||||
<div class="visually-hidden theme-label-when-auto">{% translate 'Toggle theme (current theme: auto)' %}</div>
|
||||
<div class="visually-hidden theme-label-when-light">{% translate 'Toggle theme (current theme: light)' %}</div>
|
||||
<div class="visually-hidden theme-label-when-dark">{% translate 'Toggle theme (current theme: dark)' %}</div>
|
||||
<span class="visually-hidden theme-label-when-auto">{% translate 'Toggle theme (current theme: auto)' %}</span>
|
||||
<span class="visually-hidden theme-label-when-light">{% translate 'Toggle theme (current theme: light)' %}</span>
|
||||
<span class="visually-hidden theme-label-when-dark">{% translate 'Toggle theme (current theme: dark)' %}</span>
|
||||
<svg aria-hidden="true" class="theme-icon-when-auto">
|
||||
<use xlink:href="#icon-auto" />
|
||||
</svg>
|
||||
|
Loading…
x
Reference in New Issue
Block a user