UX: restore autofocus on login inputs (#12266)

This commit is contained in:
Kris 2021-03-02 14:30:53 -05:00 committed by GitHub
parent 83f332b5a5
commit e180f3f97a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@
<form id="login-form" method="post"> <form id="login-form" method="post">
<div id="credentials" class={{credentialsClass}}> <div id="credentials" class={{credentialsClass}}>
<div class="input-group"> <div class="input-group">
{{input value=loginName class=(value-entered loginName)type="email" id="login-account-name" autocorrect="off" autocapitalize="off" disabled=showSecondFactor}} {{input value=loginName class=(value-entered loginName) type="email" id="login-account-name" autocorrect="off" autocapitalize="off" disabled=showSecondFactor autofocus="autofocus"}}
<label class="alt-placeholder" for="login-account-name">{{i18n "login.email_placeholder"}}</label> <label class="alt-placeholder" for="login-account-name">{{i18n "login.email_placeholder"}}</label>
{{#if showLoginWithEmailLink}} {{#if showLoginWithEmailLink}}
<a href id="email-login-link" {{action (unless processingEmailLink "emailLogin")}}> <a href id="email-login-link" {{action (unless processingEmailLink "emailLogin")}}>

View File

@ -25,7 +25,7 @@
{{#if emailValidated}} {{#if emailValidated}}
<span class="value">{{accountEmail}}</span> <span class="value">{{accountEmail}}</span>
{{else}} {{else}}
{{input type="email" value=accountEmail id="new-account-email" name="email" class=(value-entered accountEmail)}} {{input type="email" value=accountEmail id="new-account-email" name="email" class=(value-entered accountEmail) autofocus="autofocus"}}
<label class="alt-placeholder" for="new-account-email"> <label class="alt-placeholder" for="new-account-email">
{{i18n "user.email.title"}} {{i18n "user.email.title"}}
{{~#if userFields~}} {{~#if userFields~}}

View File

@ -11,7 +11,7 @@
<form id="login-form" method="post"> <form id="login-form" method="post">
<div id="credentials" class={{credentialsClass}}> <div id="credentials" class={{credentialsClass}}>
<div class="input-group"> <div class="input-group">
{{input value=loginName type="email" id="login-account-name" class=(value-entered loginName) autocomplete="username" autocorrect="off" autocapitalize="off" disabled=showSecondFactor}} {{input value=loginName type="email" id="login-account-name" class=(value-entered loginName) autocomplete="username" autocorrect="off" autocapitalize="off" disabled=showSecondFactor autofocus="autofocus"}}
<label class="alt-placeholder" for="login-account-name">{{i18n "login.email_placeholder"}}</label> <label class="alt-placeholder" for="login-account-name">{{i18n "login.email_placeholder"}}</label>
{{#if showLoginWithEmailLink}} {{#if showLoginWithEmailLink}}
<a href id="email-login-link" {{action (unless processingEmailLink "emailLogin")}}> <a href id="email-login-link" {{action (unless processingEmailLink "emailLogin")}}>