Skip to content

Commit

Permalink
Merge pull request #591 from yannicka/accessibility-autocomplete
Browse files Browse the repository at this point in the history
Accessibility: add "autocomplete" to the email/password fields on the forgotten password screens
  • Loading branch information
Hlavtox authored Feb 23, 2024
2 parents 4e8c8fd + 40a2e9d commit 4025c22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/customer/password-email.tpl
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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

0 comments on commit 4025c22

Please sign in to comment.