Skip to content
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

Accessibility: add "autocomplete" to the email/password fields on the forgotten password screens #591

Merged
merged 1 commit into from Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/customer/password-email.tpl
Expand Up @@ -27,7 +27,7 @@
<section class="form-fields">
<div class="mb-3">
<label class="form-label required">{l s='Email address' d='Shop.Forms.Labels'}</label>
<input type="email" name="email" id="email" value="{if isset($smarty.post.email)}{stripslashes($smarty.post.email)}{/if}" class="form-control" required>
<input type="email" name="email" id="email" value="{if isset($smarty.post.email)}{stripslashes($smarty.post.email)}{/if}" class="form-control" autocomplete="email" required>
</div>
<button id="send-reset-link" class="form-control-submit btn btn-primary" name="submit" type="submit">
{l s='Send reset link' d='Shop.Theme.Actions'}
Expand Down
4 changes: 2 additions & 2 deletions templates/customer/password-new.tpl
Expand Up @@ -32,7 +32,7 @@
<div class="mb-3">
<label class="form-label">{l s='New password' d='Shop.Forms.Labels'}</label>
<div class="input-group password-field js-parent-focus">
<input class="form-control js-child-focus js-visible-password" type="password" data-validate="isPasswd" name="passwd" value="">
<input class="form-control js-child-focus js-visible-password" type="password" data-validate="isPasswd" name="passwd" value="" autocomplete="new-password">
<button
class="btn btn-primary"
type="button"
Expand All @@ -49,7 +49,7 @@
<div class="mb-3">
<label class="form-label">{l s='Confirmation' d='Shop.Forms.Labels'}</label>
<div class="input-group password-field js-parent-focus">
<input class="form-control js-child-focus js-visible-password" type="password" data-validate="isPasswd" name="confirmation" value="">
<input class="form-control js-child-focus js-visible-password" type="password" data-validate="isPasswd" name="confirmation" value="" autocomplete="new-password">
<button
class="btn btn-primary"
type="button"
Expand Down