A11Y: associates lists with labels on interface page (#12426)

This commit is contained in:
Joffrey JAFFEUX 2021-03-17 16:03:09 +01:00 committed by GitHub
parent cb0427ffdf
commit 482bcc8726
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 4 deletions

View File

@ -77,9 +77,10 @@
{{/if}}
<div class="control-group text-size">
<label class="control-label">{{i18n "user.text_size.title"}}</label>
<label for="text-size-selector" class="control-label">{{i18n "user.text_size.title"}}</label>
<div class="controls">
{{combo-box
id="text-size-selector"
valueProperty="value"
content=textSizes
value=textSize
@ -95,9 +96,10 @@
{{#if siteSettings.allow_user_locale}}
<div class="control-group pref-locale">
<label class="control-label">{{i18n "user.locale.title"}}</label>
<label for="locale-selector" class="control-label">{{i18n "user.locale.title"}}</label>
<div class="controls">
{{combo-box
id="locale-selector"
valueProperty="value"
langProperty="value"
content=availableLocales
@ -116,9 +118,10 @@
{{/if}}
<div class="control-group home">
<label class="control-label">{{i18n "user.home"}}</label>
<label for="home-selector" class="control-label">{{i18n "user.home"}}</label>
<div class="controls">
{{combo-box
id="home-selector"
content=userSelectableHome
valueProperty="value"
value=homepageId
@ -144,7 +147,7 @@
{{/if}}
{{preference-checkbox labelKey="user.dynamic_favicon" checked=model.user_option.dynamic_favicon class="pref-dynamic-favicon"}}
<div class="controls controls-dropdown pref-page-title">
<label for="user-email-level">{{i18n "user.title_count_mode.title"}}</label>
<label for="user-title-count-mode">{{i18n "user.title_count_mode.title"}}</label>
{{combo-box
valueProperty="value"
content=titleCountModes