Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Seems like there were some changes made to the password confirmation messages and the current selector is obsolete and the green/red colors don't get applied anymore. The message now has a -message suffix, while the input stays with the .password-confirm class.
Proposed resolution
Change the selector from .password-confirm to .password-confirm-message so that the confirmation colors work.
Comment | File | Size | Author |
---|---|---|---|
#11 | password-confirm-selector-3110825-11.patch | 2.61 KB | pivica |
#11 | interdiff-3110825-7-11.txt | 511 bytes | pivica |
#4 | Selection_033.png | 70.49 KB | pivica |
#4 | Selection_032.png | 59.19 KB | pivica |
#4 | Selection_031.png | 58.91 KB | pivica |
Comments
Comment #2
sasanikolic CreditAttribution: sasanikolic at MD Systems GmbH commentedHere is the patch that changes the selector from .password-confirm (now just input field), to .password-confirm-message (now the actual message wrapper).
Comment #3
sasanikolic CreditAttribution: sasanikolic at MD Systems GmbH commentedComment #4
pivica CreditAttribution: pivica at MD Systems GmbH commentedChecked this a bit and found multiple additional problems, some new and some old:
Also tested a bit how Claro is managing this:
Based on all this i've created a new patch, here is visuall diff before and after and with shadow enabled for info message:
Comment #5
pivica CreditAttribution: pivica at MD Systems GmbH commentedAnd i don't like how Claro is hiding 'Confirm password' on initial load - it will just trigger repaint and bottom form jumping. IMHO it is a required field and no need to hide it and show it later.
Comment #6
sasanikolic CreditAttribution: sasanikolic at MD Systems GmbH commentedIt's or better it is, no its.
Agree, the confirm password should be visible by default, if not for other, but for performance reasons and prevent page-jumping.
The patch above provides great improvements. I noticed one more issue that we could include here. By default, the default confirm message seems to be displayed without yes/no, then when the user starts typing the password it gets hidden by js and gets displayed again when the "Confirm password" input gets filled. I think it should be hidden by default.
See the screenshot attached.
Comment #7
pivica CreditAttribution: pivica at MD Systems GmbH commented> It's or better it is, no its.
Fixed.
> By default, the default confirm message seems to be displayed without yes/no, then when the user starts typing...
As discussed, this is more a core issue, let's create a follow-up for this one for core.
Comment #8
sasanikolic CreditAttribution: sasanikolic at MD Systems GmbH commentedOkey, as discussed... looks good to me now. Let's make sure to remember to create a core discussion then. :)
Comment #9
pivica CreditAttribution: pivica at MD Systems GmbH commented> Let's make sure to remember to create a core discussion then. :)
Feel free to remember it and create it then ;)
Comment #10
pivica CreditAttribution: pivica at MD Systems GmbH commentedComment #11
pivica CreditAttribution: pivica at MD Systems GmbH commentedWe forgot to add `$spacer-x` and `$spacer-y` SASS vars, new patch is fixing this.
Comment #13
pivica CreditAttribution: pivica at MD Systems GmbH commentedCommitted.