NPM Resource Changed ? ? Pending

User tests: Successful: Unsuccessful:

avatar C-Lodder
C-Lodder
12 May 2020

Pull Request for Issue #26190
Replaces: #26430

Summary of Changes

This changes the element for the password strength indicator from <div class="progress"> to native <meter>, which is the proper semantical element for this scenario.

The JS is now ES6

Caveats

This will NOT work in IE11 or Android webview

Notes

This PR does NOT change the algorithm of the password strength. Please do not raise any issues saying you can type in an insecure password.

This PR uses the browsers native styling for the element, with the exception of setting the width to 100%. Please do not start discussing the styling here. You can raise a separate issue for that.

Testing Instructions

  1. Run node build.js --compile-js and node build.js --compile-css from your terminal.
  2. Go to administrator/index.php?option=com_users and a user
  3. Start typing in a password

Result

The meter element indicates the strength of the password

screeny

avatar C-Lodder C-Lodder - open - 12 May 2020
avatar C-Lodder C-Lodder - change - 12 May 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 12 May 2020
Category Administration Templates (admin) JavaScript Repository NPM Change
12e5a35 12 May 2020 avatar C-Lodder woof
avatar C-Lodder C-Lodder - change - 12 May 2020
Title
[4.0] Use <meter> for password strength indicator
[4.0] Use for password strength indicator
Labels Added: NPM Resource Changed ?
7f8adc7 12 May 2020 avatar C-Lodder woof
7306348 12 May 2020 avatar C-Lodder woof
avatar dgrammatiko
dgrammatiko - comment - 12 May 2020

@C-Lodder I wish you could resurrect #23215 here as there are patched much more things (eg the input is decoupled from Font Awesome, etc)

avatar C-Lodder
C-Lodder - comment - 12 May 2020

@dgrammatiko

I’m not merging new custom elements until the existing ones stabilise which is why this has sat there

avatar C-Lodder C-Lodder - change - 12 May 2020
The description was changed
avatar C-Lodder C-Lodder - edited - 12 May 2020
avatar brianteeman brianteeman - test_item - 23 May 2020 - Tested successfully
avatar brianteeman
brianteeman - comment - 23 May 2020

I have tested this item āœ… successfully on 7306348

Definite improvement - thanks

Also checked to make sure it works correctly when prefers-reduced-motion is set - thanks


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29041.

avatar Quy Quy - test_item - 23 May 2020 - Tested successfully
avatar Quy
Quy - comment - 23 May 2020

I have tested this item āœ… successfully on 7306348


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29041.

avatar Quy Quy - edited - 23 May 2020
avatar Quy Quy - change - 23 May 2020
Status Pending Ready to Commit
avatar Quy
Quy - comment - 23 May 2020

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29041.

avatar C-Lodder C-Lodder - edited - 23 May 2020
avatar zero-24
zero-24 - comment - 23 May 2020

Merging thanks!

avatar zero-24 zero-24 - close - 23 May 2020
avatar zero-24 zero-24 - merge - 23 May 2020
avatar zero-24 zero-24 - change - 23 May 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-05-23 22:28:43
Closed_By zero-24
Labels Added: ?

Add a Comment

Login with GitHub to post a comment