You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e53204d
Browse filesBrowse the repository at this point in the historyBrowse files
The login form now leads with the member route on wikis that offer the code route. The address box
and "Continue with email" come first, that button is the form's primary one, focus lands in the
address box, and the password form follows under a divider reading "or log in with a password" in
place of "or". Enter submits whatever was filled in: an address asks for a code, a password logs
in. The account creation form and the code entry screen are untouched.
Done in the form description rather than site CSS, which would move the boxes but leave document
order, tab order, focus on load and what Enter submits where they were.
How:
* Negative weights on the member fields. Core weights none of its own boxes below zero, so weights
settle document and tab order at once. MobileFrontend's watermark, which led the mobile form at
weight zero, is re-weighted to stay above the member section.
* `autofocus` on the address box. Core adds its own to the username or password box after every
handler has run, where nothing can unset it; the first in document order wins.
* A nameless submit button, first in the form and clipped out of sight, is what Enter submits
through. Named after neither route, it leaves the choice to the filled box, as
#39 made possible. Core reads nothing from
its own button's name.
* The divider is described only where core described a password box, so a single-sign-on-only wiki
gets no divider rather than a wrong one.
Verified in Chromium on Vector and Minerva: focus lands in the address box on load, also with core's
autofocus on the password box; Enter in the address box reaches the code screen posting no button
name; Enter in the password box logs in; the hidden field leaves no gap and takes no pointer hits.
Considered, omitted:
* Hiding the password form: an opt-in setting of its own.
* A plain "or" divider for wikis without a password form.
* Demoting single sign-on buttons: which route a wiki with several recommends is not this
extension's call.
* `formnovalidate` on the hidden button: it would loosen the address box's own validation, which
core's button did not have either.
* Any JavaScript.
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: i18n/qqq.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -25,8 +25,8 @@
25
25
"memberaccess-auth-restart-line": "Offer on the code entry screen to go back and enter a different address. Parameters:\n* $1 - a link labelled {{msg-mw|Memberaccess-auth-restart}}, back to the start of the login form",
26
26
"memberaccess-auth-email-label": "Label of the email address field.",
27
27
"memberaccess-auth-email-help": "Help text for the email address field.",
28
-
"memberaccess-auth-email-placeholder": "Placeholder shown in the email address field on the login form. Follows the wording of {{msg-mw|Userlogin-yourname-ph}} and {{msg-mw|Userlogin-yourpassword-ph}} above it.",
29
-
"memberaccess-auth-form-divider": "Separator between the password login form and the email login section below it on the login form. Kept to a word or two.\n{{Identical|Or}}",
28
+
"memberaccess-auth-email-placeholder": "Placeholder shown in the email address field on the login form. Follows the wording of {{msg-mw|Userlogin-yourname-ph}} and {{msg-mw|Userlogin-yourpassword-ph}}.",
29
+
"memberaccess-auth-form-divider": "Separator on the login form, below the email login section and above the password login form it names. Not a sentence: no capital at the start and no full stop, and short enough for one line between the two horizontal rules.",
30
30
"memberaccess-auth-email-missing": "Error shown when a login code is asked for without an email address.",
31
31
"memberaccess-auth-email-invalid": "Error shown when the entered email address is malformed.",
32
32
"memberaccess-auth-throttled": "Error shown when too many login codes have been asked for. The translation must not reveal whether the address is a member.",
0 commit comments