the minimum requirement isn't communicated upfront nor announced in screenreader on fail

Created on 15 February 2023, over 1 year ago
Updated 6 October 2023, about 1 year ago

Problem/Motivation

I was testing the module for the first time. As the first step i deliberately chose to enter a short password (6 lowercase letters). I ran into an error stating i havent met the minimum requirement for the password. there are two problems with that error. before entering the password i see only the recommended requirements from drupal core having at least 12 characters using uppercase letters, numbers and punctuation. there is no word that there is a minimum requirement for passwords in place. after sending the form with the too short password there is another problem the error message only states 1 error has been found: password which is just arbitrary and not meaningful. the explanation is shown inline under the confirm password field with passwords must be at least 8 characters. as you can see in the video that line isn't announced by a screenreader (voiceover in macos 12.6.1 is used in the video). a screenreader user would be unable to notice the root cause easily but has to step through the aural interface sequentially to spot the particular sentence.

Steps to reproduce

1. go to /user/1/edit
2. enter a password that is shorter than 8 characters

Proposed resolution

1. if possible it would be good to update the password description from To change the current user password, enter the new password in both fields. and change it to something like: To change the current user password, enter the new password in both fields. The password has to have at least 8 character.. It might be even an idea to add a third sentence that the entered password will be rated for its strength?
2. Change the error message from 1 error has been found: Password to something like Passwords must have at least 8 characters.or The chosen password was too short. The minimum requirement are eight characters. . That way the reason for the error is announced by screen readers in contrast to the inline error.
3. remove the inline error Passwords must be at least 8 characters underneath the confirm password field.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Needs review

Version

2.1

Component

User interface

Created by

🇩🇪Germany rkoller Nürnberg, Germany

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024