mirror of
https://github.com/discourse/discourse.git
synced 2025-04-30 10:34:40 +08:00
A11Y: associates lists with labels on interface page (#12426)
This commit is contained in:
parent
cb0427ffdf
commit
482bcc8726
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user