Problem/Motivation
The autocomplete attribute should be added with the value of 'one-time-code' for the user to improve accessibility and UX.
See also; https://www.drupal.org/project/drupal/issues/3181647, https://www.drupal.org/project/tfa/issues/3456229
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete
We recently got this as feedback in an accessibility report, it will help screenreaders better understand the purpose of the inputs. (WCAG 1.3.5)
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3456232-5.patch | 914 bytes | nvandijk |
Issue fork tfa_email_otp-3456232
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #5
nvandijk commentedCreated a merge request, patch for own use
Comment #6
mingsongComment #7
mingsongThanks for the suggestion and the patch.
It sounds faire enough to me. But I would like to have the consistency with the TFA module.
So, let's wait until the TFA module make this move.