Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #2913: Password label is same as meter color #3130

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions components/lib/password/Password.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ export const Password = React.memo(

content = ObjectUtils.getJSXElement(props.icon, defaultIconOptions);
}

return content;
}

Expand All @@ -268,7 +267,7 @@ export const Password = React.memo(
<div className="p-password-meter">
<div className={`p-password-strength ${strength}`} style={{ width }}></div>
</div>
<div className="p-password-info">{infoTextState}</div>
<div className={`p-password-info ${strength}`}>{infoTextState}</div>
</>
);

Expand Down
10 changes: 9 additions & 1 deletion public/themes/arya-blue/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1438,7 +1438,15 @@
.p-password-panel .p-password-meter .p-password-strength.strong {
background: #C5E1A5;
}

.p-password-panel .p-password-info.weak {
color: #F48FB1;
}
.p-password-panel .p-password-info.medium {
color: #FFE082;
}
.p-password-panel .p-password-info.strong {
color: #C5E1A5;
}
.p-radiobutton {
width: 20px;
height: 20px;
Expand Down
10 changes: 10 additions & 0 deletions public/themes/arya-green/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1439,6 +1439,16 @@
background: #C5E1A5;
}

.p-password-panel .p-password-info.weak {
color: #F48FB1;
}
.p-password-panel .p-password-info.medium {
color: #FFE082;
}
.p-password-panel .p-password-info.strong {
color: #C5E1A5;
}

.p-radiobutton {
width: 20px;
height: 20px;
Expand Down
9 changes: 9 additions & 0 deletions public/themes/arya-orange/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1438,6 +1438,15 @@
.p-password-panel .p-password-meter .p-password-strength.strong {
background: #C5E1A5;
}
.p-password-panel .p-password-info.weak {
color: #F48FB1;
}
.p-password-panel .p-password-info.medium {
color: #FFE082;
}
.p-password-panel .p-password-info.strong {
color: #C5E1A5;
}

.p-radiobutton {
width: 20px;
Expand Down
9 changes: 9 additions & 0 deletions public/themes/arya-purple/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1438,6 +1438,15 @@
.p-password-panel .p-password-meter .p-password-strength.strong {
background: #C5E1A5;
}
.p-password-panel .p-password-info.weak {
color: #F48FB1;
}
.p-password-panel .p-password-info.medium {
color: #FFE082;
}
.p-password-panel .p-password-info.strong {
color: #C5E1A5;
}

.p-radiobutton {
width: 20px;
Expand Down
9 changes: 9 additions & 0 deletions public/themes/bootstrap4-dark-blue/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1442,6 +1442,15 @@
.p-password-panel .p-password-meter .p-password-strength.strong {
background: #9fdaa8;
}
.p-password-panel .p-password-info.weak {
color: #f19ea6;
}
.p-password-panel .p-password-info.medium {
color: #ffe082;
}
.p-password-panel .p-password-info.strong {
color: #9fdaa8;
}

.p-radiobutton {
width: 20px;
Expand Down
9 changes: 9 additions & 0 deletions public/themes/bootstrap4-dark-purple/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1442,6 +1442,15 @@
.p-password-panel .p-password-meter .p-password-strength.strong {
background: #9fdaa8;
}
.p-password-panel .p-password-info.weak {
color: #f19ea6;
}
.p-password-panel .p-password-info.medium {
color: #ffe082;
}
.p-password-panel .p-password-info.strong {
color: #9fdaa8;
}

.p-radiobutton {
width: 20px;
Expand Down
9 changes: 9 additions & 0 deletions public/themes/bootstrap4-light-blue/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1442,6 +1442,15 @@
.p-password-panel .p-password-meter .p-password-strength.strong {
background: #28a745;
}
.p-password-panel .p-password-info.weak {
color: #dc3545;
}
.p-password-panel .p-password-info.medium {
color: #ffc107;
}
.p-password-panel .p-password-info.strong {
color: #28a745;
}

.p-radiobutton {
width: 20px;
Expand Down
10 changes: 10 additions & 0 deletions public/themes/bootstrap4-light-purple/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1442,6 +1442,16 @@
.p-password-panel .p-password-meter .p-password-strength.strong {
background: #28a745;
}
.p-password-panel .p-password-info.weak {
color: #dc3545;
}
.p-password-panel .p-password-info.medium {
color: #ffc107;
}
.p-password-panel .p-password-info.strong {
color: #28a745;
}


.p-radiobutton {
width: 20px;
Expand Down
10 changes: 10 additions & 0 deletions public/themes/fluent-light/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1438,6 +1438,16 @@
.p-password-panel .p-password-meter .p-password-strength.strong {
background: #498205;
}
.p-password-panel .p-password-info.weak {
color: #d13438;
}
.p-password-panel .p-password-info.medium {
color: #ffaa44;
}
.p-password-panel .p-password-info.strong {
color: #498205;
}


.p-radiobutton {
width: 20px;
Expand Down
9 changes: 9 additions & 0 deletions public/themes/lara-dark-blue/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1438,6 +1438,15 @@
.p-password-panel .p-password-meter .p-password-strength.strong {
background: #93deac;
}
.p-password-panel .p-password-info.weak {
color: #eb9a9c;
}
.p-password-panel .p-password-info.medium {
color: #ffcf91;
}
.p-password-panel .p-password-info.strong {
color: #93deac;
}

.p-radiobutton {
width: 22px;
Expand Down
10 changes: 10 additions & 0 deletions public/themes/lara-dark-indigo/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1438,6 +1438,16 @@
.p-password-panel .p-password-meter .p-password-strength.strong {
background: #93deac;
}
.p-password-panel .p-password-info.weak {
color: #eb9a9c;
}
.p-password-panel .p-password-info.medium {
color: #ffcf91;
}
.p-password-panel .p-password-info.strong {
color: #93deac;
}


.p-radiobutton {
width: 22px;
Expand Down
9 changes: 9 additions & 0 deletions public/themes/lara-dark-purple/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1438,6 +1438,15 @@
.p-password-panel .p-password-meter .p-password-strength.strong {
background: #93deac;
}
.p-password-panel .p-password-info.weak {
color: #eb9a9c;
}
.p-password-panel .p-password-info.medium {
color: #ffcf91;
}
.p-password-panel .p-password-info.strong {
color: #93deac;
}

.p-radiobutton {
width: 22px;
Expand Down
10 changes: 10 additions & 0 deletions public/themes/lara-dark-teal/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1438,6 +1438,16 @@
.p-password-panel .p-password-meter .p-password-strength.strong {
background: #93deac;
}
.p-password-panel .p-password-info.weak {
color: #eb9a9c;
}
.p-password-panel .p-password-info.medium {
color: #ffcf91;
}
.p-password-panel .p-password-info.strong {
color: #93deac;
}


.p-radiobutton {
width: 22px;
Expand Down
9 changes: 9 additions & 0 deletions public/themes/lara-light-blue/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1438,6 +1438,15 @@
.p-password-panel .p-password-meter .p-password-strength.strong {
background: #29c76f;
}
.p-password-panel .p-password-info.weak {
color: #ea5455;
}
.p-password-panel .p-password-info.medium {
color: #ff9f42;
}
.p-password-panel .p-password-info.strong {
color: #29c76f;
}

.p-radiobutton {
width: 22px;
Expand Down
9 changes: 9 additions & 0 deletions public/themes/lara-light-indigo/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1438,6 +1438,15 @@
.p-password-panel .p-password-meter .p-password-strength.strong {
background: #29c76f;
}
.p-password-panel .p-password-info.weak {
color: #ea5455;
}
.p-password-panel .p-password-info.medium {
color: #ff9f42;
}
.p-password-panel .p-password-info.strong {
color: #29c76f;
}

.p-radiobutton {
width: 22px;
Expand Down
9 changes: 9 additions & 0 deletions public/themes/lara-light-purple/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1438,6 +1438,15 @@
.p-password-panel .p-password-meter .p-password-strength.strong {
background: #29c76f;
}
.p-password-panel .p-password-info.weak {
color: #ea5455;
}
.p-password-panel .p-password-info.medium {
color: #ff9f42;
}
.p-password-panel .p-password-info.strong {
color: #29c76f;
}

.p-radiobutton {
width: 22px;
Expand Down
9 changes: 9 additions & 0 deletions public/themes/lara-light-teal/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1438,6 +1438,15 @@
.p-password-panel .p-password-meter .p-password-strength.strong {
background: #29c76f;
}
.p-password-panel .p-password-info.weak {
color: #ea5455;
}
.p-password-panel .p-password-info.medium {
color: #ff9f42;
}
.p-password-panel .p-password-info.strong {
color: #29c76f;
}

.p-radiobutton {
width: 22px;
Expand Down
10 changes: 9 additions & 1 deletion public/themes/luna-amber/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1442,7 +1442,15 @@
.p-password-panel .p-password-meter .p-password-strength.strong {
background: #AED581;
}

.p-password-panel .p-password-info.weak {
color: #E57373;
}
.p-password-panel .p-password-info.medium {
color: #FFB74D;
}
.p-password-panel .p-password-info.strong {
color: #AED581;
}
.p-radiobutton {
width: 20px;
height: 20px;
Expand Down
9 changes: 9 additions & 0 deletions public/themes/luna-blue/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1442,6 +1442,15 @@
.p-password-panel .p-password-meter .p-password-strength.strong {
background: #AED581;
}
.p-password-panel .p-password-info.weak {
color: #E57373;
}
.p-password-panel .p-password-info.medium {
color: #FFB74D;
}
.p-password-panel .p-password-info.strong {
color: #AED581;
}

.p-radiobutton {
width: 20px;
Expand Down
10 changes: 9 additions & 1 deletion public/themes/luna-green/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1442,7 +1442,15 @@
.p-password-panel .p-password-meter .p-password-strength.strong {
background: #AED581;
}

.p-password-panel .p-password-info.weak {
color: #E57373;
}
.p-password-panel .p-password-info.medium {
color: #FFB74D;
}
.p-password-panel .p-password-info.strong {
color: #AED581;
}
.p-radiobutton {
width: 20px;
height: 20px;
Expand Down
9 changes: 9 additions & 0 deletions public/themes/luna-pink/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1442,6 +1442,15 @@
.p-password-panel .p-password-meter .p-password-strength.strong {
background: #AED581;
}
.p-password-panel .p-password-info.weak {
color: #E57373;
}
.p-password-panel .p-password-info.medium {
color: #FFB74D;
}
.p-password-panel .p-password-info.strong {
color: #AED581;
}

.p-radiobutton {
width: 20px;
Expand Down
9 changes: 9 additions & 0 deletions public/themes/md-dark-deeppurple/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1462,6 +1462,15 @@
.p-password-panel .p-password-meter .p-password-strength.strong {
background: #C5E1A5;
}
.p-password-panel .p-password-info.weak {
color: #EF9A9A;
}
.p-password-panel .p-password-info.medium {
color: #FFF59D;
}
.p-password-panel .p-password-info.strong {
color: #C5E1A5;
}

.p-radiobutton {
width: 20px;
Expand Down
10 changes: 9 additions & 1 deletion public/themes/md-dark-indigo/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,15 @@
.p-password-panel .p-password-meter .p-password-strength.strong {
background: #C5E1A5;
}

.p-password-panel .p-password-info.weak {
color: #EF9A9A;
}
.p-password-panel .p-password-info.medium {
color: #FFF59D;
}
.p-password-panel .p-password-info.strong {
color: #C5E1A5;
}
.p-radiobutton {
width: 20px;
height: 20px;
Expand Down
Loading