diff --git a/deploy/gitea-a11y/custom/templates/user/auth/signin_inner.tmpl b/deploy/gitea-a11y/custom/templates/user/auth/signin_inner.tmpl index 8baec224..3e584065 100644 --- a/deploy/gitea-a11y/custom/templates/user/auth/signin_inner.tmpl +++ b/deploy/gitea-a11y/custom/templates/user/auth/signin_inner.tmpl @@ -1,96 +1,93 @@ {{/* - Gitea a11y fix: R1 — Password visibility toggle + R2 — aria-required + Gitea a11y fix: V6 — Heading hierarchy + R1 — Password visibility toggle + R2 — aria-required Override of user/auth/signin_inner.tmpl - Adds: - - Eye icon toggle to show/hide password content - - aria-required="true" on required fields - - Proper label associations + Changes: + - V6: Heading changed from

to

for proper hierarchy (WCAG 1.3.1) + - R2: Add aria-required="true" to required fields (username, password) + - R1: Add eye-icon toggle to show/hide password Deploy to: custom/templates/user/auth/signin_inner.tmpl */}} -{{template "base/head" .}} -
- +
+ {{if or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeSignIn)}} + {{template "base/alert" .}} + {{end}} +

+ {{if .LinkAccountMode}} + {{ctx.Locale.Tr "auth.oauth_signin_title"}} + {{else}} + {{ctx.Locale.Tr "auth.login_userpass"}} + {{end}} +

+
+ {{if .EnablePasswordSignInForm}} +
+ {{.CsrfTokenHtml}} +
+ + +
+ {{if or (not .DisablePassword) .LinkAccountMode}} +
+
+ + {{ctx.Locale.Tr "auth.forgot_password"}} +
+
+ + +
+
+ {{end}} +
+ +
+ {{if not .LinkAccountMode}} + + {{end}} + {{if and (not .DisablePublicRegistry) .LinkAccountMode}} +
+ {{ctx.Locale.Tr "auth.or"}} +
+ + {{end}} +
+ {{end}} +
+{{/* a11y R1: password visibility toggle */}} -{{template "base/footer" .}} + \ No newline at end of file