From: Luce Carević Date: Fri, 12 Jul 2019 21:54:42 +0000 (+0200) Subject: a11y fix: label and tabindex X-Git-Tag: v0.11.0~9^2~1 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=852872930fea73eb4699acb4d1c28cfd0a979120;hp=c03c90a13e1356ca9cf40cc664547c49305cb24b;p=github%2Fshaarli%2FShaarli.git a11y fix: label and tabindex Don't use tabindex values other than -1, 0. (see https://webaim.org/techniques/keyboard/tabindex). Fix inputs without labels (the placeholder attribute is not a proper labelling method) --- diff --git a/tpl/default/loginform.html b/tpl/default/loginform.html index bfc54815..edc440e3 100644 --- a/tpl/default/loginform.html +++ b/tpl/default/loginform.html @@ -1,5 +1,5 @@ - + {include="includes"} @@ -9,7 +9,7 @@
- {'You have been banned after too many failed login attempts. Try again later.'|t} +

{'You have been banned after too many failed login attempts. Try again later.'|t}

@@ -22,20 +22,19 @@

{'Login'|t}

- +
- +
+ {if="$remember_user_default"}checked="checked"{/if}>
- +
{if="$returnurl"}{/if} @@ -48,4 +47,3 @@ {include="page.footer"} -