Incorrect tab indexes on login form
-
Hey guys! This problem has actually been here forever and I just got around to pointing it out.
When you log in on the Foundation, the visual order of the login form elements is:
- username
- password
- remember me?
... however, if you use tab to cycle between them, then the order is:
- username
- remember me?
- lots of other things
- password
Why is the tab index like that??
-
-
@kralith I have no idea why it works this way.
-
@specter shhh shhh, you have the hot wire to Prometheus
-
They are no tabindex="1" on input id="log_email" in the <form id="login-form"> that's why
-
Even if there are no tab indizes spezified, that behaviour seems a bit strange
-
@specter If you look to the page code, they are 6 tabindex,
in line 145 (tabindex="2") => text password
in line 151 (tabindex="3") => Submit
in line 152 (tabindex="4") => Forgot Password ?
in line 153 (tabindex="4") => resend activation mail
in line 154 (tabindex="5") => create new account
in line 922 (tabindex="0") => cookie barSo a tabindex="1" must be at least to be put like this :
<input name="log_email" type="email" class="form-control" id="log_email" value="" tabindex="1" >
or else delete all tabindex...
@Eurav not strange since the first tabindex (="0") is at the end of the page (the cookie bar) and the login popup is "just a block on this page" not a true popup... so the browser init is search at the end, go to up to search a "1" for each interactive element and when it don't find it go to "2"...