mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 09:43:06 +00:00
a11y: move label for select boxes #307
This commit is contained in:
parent
12db60ec5e
commit
5f34d107d0
1 changed files with 2 additions and 2 deletions
|
@ -57,10 +57,10 @@
|
||||||
<ul>
|
<ul>
|
||||||
<li id="select-language-container" class="footerLangSwitch{{if $showlangswitch}} showLangSwitch{{end}}">
|
<li id="select-language-container" class="footerLangSwitch{{if $showlangswitch}} showLangSwitch{{end}}">
|
||||||
<div class="padding select-container">
|
<div class="padding select-container">
|
||||||
<label class="a11y-only" for="select-language">{{ T "Language" }}</label>
|
|
||||||
<i class="fas fa-language fa-fw"></i>
|
<i class="fas fa-language fa-fw"></i>
|
||||||
<span> </span>
|
<span> </span>
|
||||||
<div class="select-style">
|
<div class="select-style">
|
||||||
|
<label class="a11y-only" for="select-language">{{ T "Language" }}</label>
|
||||||
<select id="select-language" onchange="location = baseUri + this.value;">
|
<select id="select-language" onchange="location = baseUri + this.value;">
|
||||||
{{- $pageLang := .Page.Lang }}
|
{{- $pageLang := .Page.Lang }}
|
||||||
{{- range .Page.AllTranslations }}
|
{{- range .Page.AllTranslations }}
|
||||||
|
@ -82,10 +82,10 @@
|
||||||
</li>
|
</li>
|
||||||
<li id="select-variant-container" class="footerVariantSwitch{{if $showvariantswitch}} showVariantSwitch{{end}}">
|
<li id="select-variant-container" class="footerVariantSwitch{{if $showvariantswitch}} showVariantSwitch{{end}}">
|
||||||
<div class="padding select-container">
|
<div class="padding select-container">
|
||||||
<label class="a11y-only" for="select-variant">{{ T "Theme" }}</label>
|
|
||||||
<i class="fas fa-paint-brush fa-fw"></i>
|
<i class="fas fa-paint-brush fa-fw"></i>
|
||||||
<span> </span>
|
<span> </span>
|
||||||
<div class="select-style">
|
<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 );">
|
<select id="select-variant" onchange="window.variants && variants.changeVariant( this.value );">
|
||||||
{{- $firstvariant := true }}
|
{{- $firstvariant := true }}
|
||||||
{{- range $themevariants }}
|
{{- range $themevariants }}
|
||||||
|
|
Loading…
Reference in a new issue