Skip to content
Snippets Groups Projects
Commit 4505b788 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2311279 by emma.maria | LewisNyman: Tweak the colours of the password indicator.

parent 7f4876c8
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -25,13 +25,15 @@
display: inline;
}
.password-strength__meter {
background-color: #c4c4c4;
background-color: #ebeae4;
height: 0.5em;
}
.password-strength__indicator {
height: 100%;
width: 0%;
background-color: #47c965;
background-color: #77b259;
-webkit-transition: width 0.5s ease-out;
transition: width 0.5s ease-out;
}
input.password-confirm,
input.password-field,
......
......@@ -152,19 +152,19 @@
// Based on the strength, work out what text should be shown by the password strength meter.
if (strength < 60) {
indicatorText = translate.weak;
indicatorColor = '#bb5555';
indicatorColor = '#e62600';
}
else if (strength < 70) {
indicatorText = translate.fair;
indicatorColor = '#bbbb55';
indicatorColor = '#e09600';
}
else if (strength < 80) {
indicatorText = translate.good;
indicatorColor = '#4863a0';
indicatorColor = '#0074bd';
}
else if (strength <= 100) {
indicatorText = translate.strong;
indicatorColor = '#47c965';
indicatorColor = '#77b259';
}
// Assemble the final message.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment