settings: Remove unused classes from label elements.

This commit removes classes like "title", "input-label"
and "emoji-theme" from label elements in settings and
modals as these are classes are neither used in JS
nor to apply any CSS.
This commit is contained in:
Sahil Batra 2024-04-01 20:10:48 +05:30 committed by Tim Abbott
parent 6f4a58fe71
commit 916ea58aaf
4 changed files with 5 additions and 5 deletions

View File

@ -17,7 +17,7 @@
<input type="text" autocomplete="off" name="user_id" class="modal_text_input" value="{{ user_id }}" readonly/>
</div>
<div class="input-group">
<label class="input-label" for="user-role-select">{{t 'User role' }}
<label for="user-role-select">{{t 'User role' }}
{{> ../help_link_widget link="/help/roles-and-permissions" }}
</label>
<select name="user-role-select" class="bootstrap-focus-style modal_select" id="user-role-select" data-setting-widget-type="number" {{#if disable_role_dropdown}}disabled{{/if}}>

View File

@ -23,7 +23,7 @@
</select>
</div>
<div class="input-group">
<label for="string_id" class="title inline-block">{{t "Organization URL" }}</label>
<label for="string_id" class="inline-block">{{t "Organization URL" }}</label>
<div id="subdomain_input_container">
<input id="new_subdomain" type="text" class="modal_text_input" autocomplete="off" name="string_id" placeholder="{{t 'acme' }}"/>
<label for="string_id" class="domain_label">.{{ realm_domain }}</label>

View File

@ -37,7 +37,7 @@
</div>
<div class="input-group">
<label class="emoji-theme title">{{t "Emoji theme" }}</label>
<label>{{t "Emoji theme" }}</label>
<div class="emojiset_choices grey-box prop-element" id="{{prefix}}emojiset" data-setting-widget-type="radio-group" data-setting-choice-type="string">
{{#each settings_object.emojiset_choices}}
<label class="preferences-radio-choice-label">
@ -94,7 +94,7 @@
</div>
<div class="input-group">
<label class="title">{{t "User list style" }}</label>
<label>{{t "User list style" }}</label>
<div class="user_list_style_values grey-box prop-element" id="{{prefix}}user_list_style" data-setting-widget-type="radio-group" data-setting-choice-type="number">
{{#each user_list_style_values}}
<label class="preferences-radio-choice-label">

View File

@ -15,7 +15,7 @@
<input type="text" autocomplete="off" name="user_id" class="modal_text_input" value="{{ user_id }}" readonly/>
</div>
<div class="input-group">
<label class="input-label" for="bot-role-select">{{t 'Role' }}
<label for="bot-role-select">{{t 'Role' }}
{{> ../help_link_widget link="/help/roles-and-permissions" }}
</label>
<select name="bot-role-select" id="bot-role-select" class="modal_select bootstrap-focus-style" data-setting-widget-type="number" {{#if disable_role_dropdown}}disabled{{/if}}>