-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[UX] Tab index: Password toggle should come after password field #4524
Comments
...I'm thinking that this may need to be a wider change 🤔 ...do we in general (not specifically to the login form) want the tab index for the show/hide toggle to have priority over the actual password text field, or should we have it so that the toggle always comes after the password field? |
Simple one-line PR up for review: backdrop/backdrop#3220 Before, the <div class="form-item form-type-password form-item-pass">
<label for="edit-pass">Password
<abbr class="form-required" title="This field is required.">*</abbr>
</label>
<span class="password-toggle-wrapper password-hidden">
<a href="#" class="password-toggle">Show password</a>
<input data-password-toggle="..." type="password" id="edit-pass" name="pass" size="60" maxlength="128" class="form-text required password-toggle-processed" autocomplete="off" style="...">
</span>
</div> After, the <div class="form-item form-type-password form-item-pass">
<label for="edit-pass">Password
<abbr class="form-required" title="This field is required.">*</abbr>
</label>
<span class="password-toggle-wrapper password-hidden">
<input data-password-toggle="..." type="password" id="edit-pass" name="pass" size="60" maxlength="128" class="form-text required password-toggle-processed" autocomplete="off" style="...">
<a href="#" class="password-toggle">Show password</a>
</span>
</div> |
Yes, I believe so. The PR works nicely and is beautifully simple :-) RTBC from me. |
I added the |
This sounds great! I frequently accidentally focus "Show password" when tabbing between the username and password field. |
I merged backdrop/backdrop#3220 into 1.x and 1.16.x. Thanks @klonos and @BWPanda! |
This is a follow-up to #3048
Before that change, you could do this:
After #3048 was merged, you need to tab twice after step 2:
The text was updated successfully, but these errors were encountered: