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