Skip to content

Commit cab523e

Browse files
🐛 Fixed incorrect autocomplete token in Setup Form (#25975)
fixes #25974 Refined the `@autocomplete` attribute in `setup.hbs` from `"username email"` to `"email"`. According to **WCAG Success Criterion 1.3.5 (Identify Input Purpose)**, the autocomplete attribute must clearly and singularly define the purpose of the input field. Using multiple tokens that do not align strictly with the input type can confuse browsers and assistive technologies. --------- Co-authored-by: Steve Larson <9larsons@gmail.com>
1 parent 870e510 commit cab523e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ghost/admin/app/templates/setup.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
@name="email"
5151
@placeholder="jamie@example.com"
5252
@autocorrect="off"
53-
@autocomplete="username email"
53+
@autocomplete="username"
5454
@value={{readonly this.email}}
5555
@input={{action (mut this.email) value="target.value"}}
5656
@focus-out={{action "preValidate" "email"}}

ghost/admin/app/templates/signup.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
class="gh-input"
4040
placeholder="jamie@example.com"
4141
autocorrect="off"
42-
autocomplete="username email"
42+
autocomplete="username"
4343
value={{this.signupDetails.email}}
4444
{{on "input" (fn this.setSignupProperty "email")}}
4545
{{on "blur" (fn this.validate "email")}}

0 commit comments

Comments
 (0)