Skip to content

Commit

Permalink
fix(package): override the color of the mat-password-strength bar #162
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyNahas committed Apr 26, 2019
1 parent 0da93aa commit f312dac
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions demo/src/app/home/home.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ <h1>@angular-material-extensions/password-strength</h1>

<!--@angular-material-extensions/password-strength's main component-->
<mat-password-strength #passwordComponentWithValidation
[greenStrongPassword]="true"
(onStrengthChanged)="onStrengthChanged($event)"
[password]="passwordWithValidation.value">
</mat-password-strength>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<mat-progress-bar mode="determinate"
class="green"
[color]="color"
[value]="strength">
</mat-progress-bar>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
::ng-deep .mat-progress-bar.mat-primary .mat-progress-bar-fill::after {
background-color: blue;
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export class MatPasswordStrengthComponent implements OnInit, OnChanges {
@Input() password: string;
@Input() customValidator: RegExp;
@Input() externalError: boolean;
@Input() greenStrongPassword: boolean;

@Input() enableLengthRule = true;
@Input() enableLowerCaseLetterRule = true;
Expand Down

0 comments on commit f312dac

Please sign in to comment.