A11Y: makes other and color, fieldset/legend elements (#12163)

This commit is contained in:
Joffrey JAFFEUX 2021-02-22 12:10:51 +01:00 committed by GitHub
parent 0b14eb6ab1
commit b7dbdec6fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,8 +21,8 @@
{{/if}}
{{#if showColorSchemeSelector}}
<div class="control-group color-scheme">
<label class="control-label">{{i18n "user.color_scheme"}}</label>
<fieldset class="control-group color-scheme">
<legend class="control-label">{{i18n "user.color_scheme"}}</legend>
<div class="control-subgroup light-color-scheme">
{{#if showDarkColorSchemeSelector}}
<div class="instructions">{{i18n "user.color_schemes.regular" }}</div>
@ -64,7 +64,7 @@
{{preference-checkbox labelKey="user.color_scheme_default_on_all_devices" checked=makeColorSchemeDefault}}
</div>
{{/if}}
</div>
</fieldset>
{{/if}}
{{#if showDarkModeToggle}}
@ -127,8 +127,8 @@
</div>
</div>
<div class="control-group other">
<label class="control-label">{{i18n "user.other_settings"}}</label>
<fieldset class="control-group other">
<legend class="control-label">{{i18n "user.other_settings"}}</legend>
{{preference-checkbox labelKey="user.external_links_in_new_tab" checked=model.user_option.external_links_in_new_tab class="pref-external-links"}}
{{preference-checkbox labelKey="user.enable_quoting" checked=model.user_option.enable_quoting class="pref-enable-quoting"}}
@ -154,7 +154,7 @@
}}
</div>
{{preference-checkbox labelKey="user.skip_new_user_tips.description" checked=model.user_option.skip_new_user_tips class="pref-new-user-tips"}}
</div>
</fieldset>
{{plugin-outlet name="user-preferences-interface" args=(hash model=model save=(action "save"))}}