A11Y: Use `autocomplete=off` more widely (#15780)
This commit is contained in:
parent
3b1b7137a2
commit
7d5d2bf13e
|
@ -1,7 +1,7 @@
|
|||
<div class="field">{{i18n name}}</div>
|
||||
<div class="value">
|
||||
{{#if editing}}
|
||||
{{text-field value=buffer autofocus="autofocus" autocomplete="discourse"}}
|
||||
{{text-field value=buffer autofocus="autofocus" autocomplete="off"}}
|
||||
{{else}}
|
||||
<a href {{action "edit"}} class="inline-editable-field">
|
||||
<span>{{value}}</span>
|
||||
|
|
|
@ -26,9 +26,10 @@
|
|||
value=newValue
|
||||
placeholderKey="admin.site_settings.simple_list.add_item"
|
||||
class="add-value-input"
|
||||
autocomplete="discourse"
|
||||
autocomplete="off"
|
||||
autocorrect="off"
|
||||
autocapitalize="off"}}
|
||||
autocapitalize="off"
|
||||
}}
|
||||
|
||||
{{d-button
|
||||
action=(action "addValue")
|
||||
|
|
|
@ -20,7 +20,8 @@
|
|||
{{input
|
||||
class="filter-input"
|
||||
placeholder=(i18n "admin.customize.theme.filter_placeholder")
|
||||
autocomplete="discourse"
|
||||
autocomplete="off"
|
||||
type="search"
|
||||
value=(mut filterTerm)
|
||||
}}
|
||||
{{d-icon "search"}}
|
||||
|
|
|
@ -4,7 +4,7 @@ import TextField from "discourse/components/text-field";
|
|||
import { applySearchAutocomplete } from "discourse/lib/search";
|
||||
|
||||
export default TextField.extend({
|
||||
autocomplete: "discourse-search",
|
||||
autocomplete: "off",
|
||||
|
||||
@discourseComputed("searchService.searchContextEnabled")
|
||||
placeholder(searchContextEnabled) {
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
|
||||
{{conditional-loading-spinner condition=loading}}
|
||||
{{d-textarea
|
||||
autocomplete="discourse"
|
||||
autocomplete="off"
|
||||
tabindex=tabindex
|
||||
value=value
|
||||
class="d-editor-input"
|
||||
|
|
|
@ -24,7 +24,8 @@
|
|||
class="filter"
|
||||
name="filter"
|
||||
placeholder=(i18n "emoji_picker.filter_placeholder")
|
||||
autocomplete="discourse"
|
||||
autocomplete="off"
|
||||
type="search"
|
||||
autocorrect="off"
|
||||
autocapitalize="off"
|
||||
input=(action "onFilter")
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
{{text-field
|
||||
value=filterInput
|
||||
placeholderKey=filterPlaceholder
|
||||
autocomplete="discourse"
|
||||
autocomplete="off"
|
||||
class="group-username-filter no-blur"
|
||||
}}
|
||||
{{/if}}
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
{{/if}}
|
||||
|
||||
<div class="input username-input input-group">
|
||||
{{input value=accountUsername class=(value-entered accountUsername) id="new-account-username" name="username" maxlength=maxUsernameLength autocomplete="discourse"}}
|
||||
{{input value=accountUsername class=(value-entered accountUsername) id="new-account-username" name="username" maxlength=maxUsernameLength autocomplete="off"}}
|
||||
<label class="alt-placeholder" for="new-account-username">
|
||||
{{i18n "user.username.title"}}
|
||||
<span class="required">*</span>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
{{text-field
|
||||
value=filterInput
|
||||
placeholderKey=filterPlaceholder
|
||||
autocomplete="discourse"
|
||||
autocomplete="off"
|
||||
class="group-username-filter no-blur"
|
||||
}}
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
maxlength=maxUsernameLength
|
||||
aria-describedby="username-validation"
|
||||
aria-invalid=usernameValidation.failed
|
||||
autocomplete="discourse"
|
||||
autocomplete="off"
|
||||
}}
|
||||
<label class="alt-placeholder" for="new-account-username">
|
||||
{{i18n "user.username.title"}}
|
||||
|
|
|
@ -12,7 +12,9 @@
|
|||
value=searchTerm
|
||||
placeholder=(i18n "bookmarks.search_placeholder")
|
||||
enter=(action "search")
|
||||
id="bookmark-search" autocomplete="discourse"}}
|
||||
id="bookmark-search"
|
||||
autocomplete="off"
|
||||
}}
|
||||
{{d-button
|
||||
class="btn-primary"
|
||||
action=(action "search")
|
||||
|
|
Loading…
Reference in New Issue