a11y: move label for select boxes #307

This commit is contained in:
Sören Weber 2022-10-04 22:18:54 +02:00
parent 12db60ec5e
commit 5f34d107d0
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -57,10 +57,10 @@
<ul>
<li id="select-language-container" class="footerLangSwitch{{if $showlangswitch}} showLangSwitch{{end}}">
<div class="padding select-container">
<label class="a11y-only" for="select-language">{{ T "Language" }}</label>
<i class="fas fa-language fa-fw"></i>
<span>&nbsp;</span>
<div class="select-style">
<label class="a11y-only" for="select-language">{{ T "Language" }}</label>
<select id="select-language" onchange="location = baseUri + this.value;">
{{- $pageLang := .Page.Lang }}
{{- range .Page.AllTranslations }}
@ -82,10 +82,10 @@
</li>
<li id="select-variant-container" class="footerVariantSwitch{{if $showvariantswitch}} showVariantSwitch{{end}}">
<div class="padding select-container">
<label class="a11y-only" for="select-variant">{{ T "Theme" }}</label>
<i class="fas fa-paint-brush fa-fw"></i>
<span>&nbsp;</span>
<div class="select-style">
<label class="a11y-only" for="select-variant">{{ T "Theme" }}</label>
<select id="select-variant" onchange="window.variants && variants.changeVariant( this.value );">
{{- $firstvariant := true }}
{{- range $themevariants }}