Fix Accessibility Violation: Incorrect autocomplete token in Setup Form#25975
Conversation
WalkthroughThis pull request modifies the setup template to update the autocomplete attribute on the email input field from "username email" to "email". The change addresses an accessibility compliance requirement by ensuring the autocomplete token accurately reflects the input field's specific purpose. No logic, error-handling, or control flow modifications are included. Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ref TryGhost#25974 The setup and signup forms used the non-conforming token list 'username email' (the autocomplete grammar allows one field name), which spec-compliant parsers ignore. 'username' matches the existing signin form so password managers pair the credential created at setup/signup with the login form.
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx run ghost-admin:test |
✅ Succeeded | 2m 45s | View ↗ |
nx run @tryghost/admin:build |
✅ Succeeded | 1m 57s | View ↗ |
nx run-many -t lint -p ghost-admin |
✅ Succeeded | 18s | View ↗ |
nx run ghost:build:assets |
✅ Succeeded | 2s | View ↗ |
nx run ghost:build:tsc |
✅ Succeeded | 5s | View ↗ |
nx run-many --target=build --projects=@tryghost... |
✅ Succeeded | 1s | View ↗ |
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗
☁️ Nx Cloud last updated this comment at 2026-06-12 18:33:54 UTC
9larsons
left a comment
There was a problem hiding this comment.
This brings us in line with the sign up form, too. Thanks!

Description
This PR addresses an accessibility violation (#25974) on the setup page where the email input field used conflicting autocomplete tokens (
username 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.
Since the input is explicitly defined as
@type="email", the most appropriate and compliant token isemail.Related Issue
Close #25974
Changes
Refined the
@autocompleteattribute insetup.hbsfrom"username email"to"email".Impact
Validation
Fix Before

Fix After

This fix ensures that the metadata matches the visual label and the technical input type, providing a smoother onboarding experience for new Ghost administrators.
Additional Info
The patch submitted in this PR was generated by A11YRepair, an automated Web Accessibility repair tool that I developed to address common accessibility violations in web applications. The generated fixes were manually reviewed and validated before submission.
Note
Low Risk
Single-template change to an input attribute; no logic, data handling, or security-sensitive code is affected.
Overview
Fixes the setup form’s email field metadata by changing
@autocompletefrom"username email"to"email", aligning it with thetype="email"input and improving autofill/accessibility behavior.Written by Cursor Bugbot for commit 4c85a9a. This will update automatically on new commits. Configure here.