In installation process on configure site form, Password match text (yes/no) should change color according to status of password.
In Drupal 7 we changing text color according to password match or not match.

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
Issue category Task because coding standards
Issue priority Not critical because coding standards
Unfrozen changes Unfrozen because it only changes CSS

Comments

sushantpaste created an issue. See original summary.

sushantpaste’s picture

StatusFileSize
new381 bytes
new83.63 KB
new43.51 KB

Screenshot attached after applying the patch , which will give more idea.

sushantpaste’s picture

Status: Active » Needs review
sushantpaste’s picture

Assigned: sushantpaste » Unassigned
shwetaneelsharma’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new395.26 KB
new398.39 KB
new393.08 KB
new394.05 KB

Tested confirm_password-2563955-2.patch. It works fine. Colour for both password match and mismatch appears in green and red respectively. Attaching screenshots.

cilefen’s picture

Issue tags: +Usability
cilefen’s picture

Issue tags: +Needs beta evaluation
xjm’s picture

Assigned: Unassigned » lewisnyman
Status: Reviewed & tested by the community » Needs review
Issue tags: +Needs accessibility review, +Needs subsystem maintainer review

Thanks @sushantpaste for the patch!

That "yes" color looks pretty low contrast against the white, especially in that font -- can we run an accessibility check on that?

Also, I'd like a check from the subsystem maintainer that this is consistent with the style guidelines. I guess the installer theme is consistent with Seven? So assigning to Lewis.

Finally, it's be useful to check for when these colors were removed in D8 since that issue might document why (or indicate if it was unintentional).

lewisnyman’s picture

Assigned: lewisnyman » Unassigned
Issue summary: View changes
Status: Needs review » Needs work
Issue tags: -Needs accessibility review, -Needs subsystem maintainer review

Thanks for raising this issue with me. I have some suggestions:

  1. +++ b/core/modules/user/css/user.theme.css
    @@ -54,3 +54,10 @@
    +.password-confirm span.ok{
    ...
    +.password-confirm span.error{
    

    Can we not use the 'span' element before the class? We try and avoid this where possible

  2. +++ b/core/modules/user/css/user.theme.css
    @@ -54,3 +54,10 @@
    +  color: #77b259;
    

    This green should match the text color in the system messages: #325e1c

  3. +++ b/core/modules/user/css/user.theme.css
    @@ -54,3 +54,10 @@
    +  color: #e62600;
    

    This red should match the text color in the system messages: #a51b00

Both of the colors reference above are already confirmed accessible, so I'm removing the tag.

Also, can we place a comment above these to say what they are? The classes are quite vague but I don't think we have much time to improve them.

bruvers’s picture

Status: Needs work » Needs review
StatusFileSize
new44.98 KB
new45.14 KB
new442 bytes

This patch uses just the class selector and implements Lewis's suggested colors from #9. Notice that the green color is hard to distinguish from the text base color.

anavarre’s picture

May I suggest (didn't dare suggesting bold text):

text-transform: uppercase;

'yes' in green is barely distinguishable on a white background and surrounded with black text.

lewisnyman’s picture

Status: Needs review » Needs work
Issue tags: -Needs beta evaluation +frontend

'yes' in green is barely distinguishable on a white background and surrounded with black text.

I am worried about using uppercase in this situations because I'm worried it might look like we are shouting at the user. Maybe we should give bold text a go and see how it looks?

+++ b/core/modules/user/css/user.theme.css
@@ -54,3 +54,11 @@
+/* Styling for the status indicator of the Passwords match test  */

I think 'Passswords' should be lower case. Also we need a full stop at the end of comments.

bruvers’s picture

StatusFileSize
new487 bytes
new43.34 KB
new43.21 KB

Fixed CSS comment and made the passwords match test status indicator text bold. This makes the green color stand out a lot more and it is now recognizable as green.

In the screenshots you can see that the text of the password strength indicator is not bold. I think this is ok because the strength test uses a colored bar as the test result indicator whereas the password match test uses text to indicate the test outcome.

bruvers’s picture

Status: Needs work » Needs review
StatusFileSize
new20.27 KB
new12.83 KB

Uploaded screenshots of a WCAG level AA contrast check.The inputs are barely visible. Should that be fixed?

lewisnyman’s picture

Status: Needs review » Reviewed & tested by the community

Great, these colors seem good. I think the input fields are ok.

ianthomas_uk’s picture

Looks like the error case was originally broken by #2336141: Create reusable color classes which renamed .error to .color-error. I can't see what happened to .ok.

Should we use the color-error and color-success classes for this? That's nicer for reusing colours, but not as nice for writing semantic class names.

sushantpaste’s picture

Thanks all for reviewing the patch. I think all good now. I am not sure about #2336141: Create reusable color classes

lewisnyman’s picture

color-* classes also add a background color. Maybe we need text-color-* classes?

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 13: core-pass_mismatch_colors-2563955-13.patch, failed testing.

anavarre’s picture

Status: Needs work » Reviewed & tested by the community

Testbot acting up.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 108e038 and pushed to 8.0.x. Thanks!

  • alexpott committed 108e038 on 8.0.x
    Issue #2563955 by bruvers, sushantpaste, shwetaneelsharma, LewisNyman:...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.