Skip to content

Commit 9d7e842

Browse files
committed
add manual tabindex 1-4
1 parent 5b94889 commit 9d7e842

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

templates/user/auth/signin_inner.tmpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,30 @@
1414
{{.CsrfTokenHtml}}
1515
<div class="required field {{if and (.Err_UserName) (or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeSignIn))}}error{{end}}">
1616
<label for="user_name">{{ctx.Locale.Tr "home.uname_holder"}}</label>
17-
<input id="user_name" type="text" name="user_name" value="{{.user_name}}" autofocus required>
17+
<input id="user_name" type="text" name="user_name" value="{{.user_name}}" autofocus required tabindex="1">
1818
</div>
1919
{{if or (not .DisablePassword) .LinkAccountMode}}
2020
<div class="required field {{if and (.Err_Password) (or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeSignIn))}}error{{end}} form-field-content-aside-label">
2121
<label for="password">{{ctx.Locale.Tr "password"}}</label>
2222
<div>
23-
<a href="{{AppSubUrl}}/user/forgot_password" tabindex="-1">{{ctx.Locale.Tr "auth.forgot_password"}}</a>
23+
<a href="{{AppSubUrl}}/user/forgot_password">{{ctx.Locale.Tr "auth.forgot_password"}}</a>
2424
</div>
25-
<input id="password" name="password" type="password" value="{{.password}}" autocomplete="current-password" required>
25+
<input id="password" name="password" type="password" value="{{.password}}" autocomplete="current-password" required tabindex="2">
2626
</div>
2727
{{end}}
2828
{{if not .LinkAccountMode}}
2929
<div class="inline field">
3030
<div class="ui checkbox">
3131
<label>{{ctx.Locale.Tr "auth.remember_me"}}</label>
32-
<input name="remember" type="checkbox">
32+
<input name="remember" type="checkbox" tabindex="3">
3333
</div>
3434
</div>
3535
{{end}}
3636

3737
{{template "user/auth/captcha" .}}
3838

3939
<div class="field">
40-
<button class="ui primary button tw-w-full">
40+
<button class="ui primary button tw-w-full" tabindex="4">
4141
{{if .LinkAccountMode}}
4242
{{ctx.Locale.Tr "auth.oauth_signin_submit"}}
4343
{{else}}

0 commit comments

Comments
 (0)