Add aria label and clean up to theme selector
This commit is contained in:
parent
450113e172
commit
c3d4289bbe
1 changed files with 4 additions and 6 deletions
|
@ -58,11 +58,12 @@
|
|||
type="button"
|
||||
aria-expanded="false"
|
||||
data-bs-toggle="dropdown"
|
||||
data-bs-display="static">
|
||||
data-bs-display="static"
|
||||
aria-label="Toggle theme">
|
||||
<svg class="bi my-1 theme-icon-active"><use href="#circle-half"></use></svg>
|
||||
<span class="ms-2" id="bd-theme-text">Theme</span>
|
||||
</button>
|
||||
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="bd-theme" style="--bs-dropdown-min-width: 8rem;">
|
||||
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="bd-theme">
|
||||
<li>
|
||||
<button type="button" class="dropdown-item d-flex align-items-center icon-link" data-bs-theme-value="light">
|
||||
<svg class="bi me-2 opacity-50 theme-icon"><use href="#sun-fill"></use></svg>
|
||||
|
@ -72,16 +73,13 @@
|
|||
</li>
|
||||
<li>
|
||||
<button type="button" class="dropdown-item d-flex align-items-center icon-link" data-bs-theme-value="dark">
|
||||
{% comment %} <i class="px-1 mx-1 nf nf-md-brightness_auto"></i> {% endcomment %}
|
||||
<svg class="bi me-2 opacity-50 theme-icon"><use href="#moon-stars-fill"></use></svg>
|
||||
Dark
|
||||
<svg class="bi ms-auto d-none"><use href="#check2"></use></svg>
|
||||
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button type="button" class="dropdown-item d-flex align-items-center active icon-link" data-bs-theme-value="auto">
|
||||
{% comment %} <i class="nf nf-md-brightness_auto"></i> {% endcomment %}
|
||||
<svg class="bi me-2 opacity-50 theme-icon"><use href="#circle-half"></use></svg>
|
||||
Auto
|
||||
<svg class="bi ms-auto d-none"><use href="#check2"></use></svg>
|
||||
|
|
Loading…
Reference in a new issue