Skip to content

Commit 9e86bc9

Browse files
committed
fix(package): adjusted the alignment in the info component #158
1 parent e2dd41a commit 9e86bc9

File tree

2 files changed

+9
-22
lines changed

2 files changed

+9
-22
lines changed

src/module/component/mat-password-strength-info/mat-password-strength-info.component.html

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
<ng-template #error>
1010
<mat-icon @negativeState color="warn">error</mat-icon>
1111
</ng-template>
12-
<div>
13-
<p>{{lowerCaseCriteriaMsg}}</p>
14-
</div>
12+
<span>{{lowerCaseCriteriaMsg}}</span>
1513
</div>
1614

1715
<div class="info-row" @items *ngIf="passwordComponent.enableUpperCaseLetterRule">
@@ -23,9 +21,7 @@
2321
<ng-template #error>
2422
<mat-icon @negativeState color="warn">error</mat-icon>
2523
</ng-template>
26-
<div>
27-
<p>{{upperCaseCriteriaMsg}}</p>
28-
</div>
24+
<span>{{upperCaseCriteriaMsg}}</span>
2925
</div>
3026

3127
<div class="info-row" @items *ngIf="passwordComponent.enableDigitRule">
@@ -37,9 +33,7 @@
3733
<ng-template #error>
3834
<mat-icon @negativeState color="warn">error</mat-icon>
3935
</ng-template>
40-
<div>
41-
<p>{{digitsCriteriaMsg}}</p>
42-
</div>
36+
<span>{{digitsCriteriaMsg}}</span>
4337
</div>
4438

4539
<div class="info-row" @items *ngIf="passwordComponent.enableSpecialCharRule">
@@ -51,9 +45,7 @@
5145
<ng-template #error>
5246
<mat-icon @negativeState color="warn">error</mat-icon>
5347
</ng-template>
54-
<div>
55-
<p>{{specialCharsCriteriaMsg}}</p>
56-
</div>
48+
<span>{{specialCharsCriteriaMsg}}</span>
5749
</div>
5850

5951
<div class="info-row" @items *ngIf="passwordComponent.enableLengthRule">
@@ -65,9 +57,7 @@
6557
<ng-template #error>
6658
<mat-icon @negativeState color="warn">error</mat-icon>
6759
</ng-template>
68-
<div>
69-
<p>{{minCharsCriteriaMsg}}</p>
70-
</div>
60+
<span>{{minCharsCriteriaMsg}}</span>
7161
</div>
7262

7363
<div class="info-row" @items *ngIf="passwordComponent.customValidator">
@@ -79,9 +69,7 @@
7969
<ng-template #error>
8070
<mat-icon @negativeState color="warn">error</mat-icon>
8171
</ng-template>
82-
<div>
83-
<p>{{customCharsCriteriaMsg}}</p>
84-
</div>
72+
<span>{{customCharsCriteriaMsg}}</span>
8573
</div>
8674

8775
<div *ngIf="enableScoreInfo" class="info-row" @items>
@@ -93,9 +81,7 @@
9381
<ng-template #error>
9482
<mat-icon @negativeState color="warn">error</mat-icon>
9583
</ng-template>
96-
<div>
97-
<p>Password's strength = {{passwordComponent.strength}} %100</p>
98-
</div>
84+
<span>Password's strength = {{passwordComponent.strength}} %100</span>
9985
</div>
10086

10187
</mat-card-content>

src/module/component/mat-password-strength-info/mat-password-strength-info.component.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ mat-card {
44
display: flex;
55
place-content: stretch center;
66
align-items: stretch;
7-
flex: 1 1 0%;
7+
flex: 1 1 0;
88

99
mat-card-content {
1010
flex-direction: column;
@@ -22,6 +22,7 @@ mat-card {
2222
flex-direction: row;
2323
box-sizing: border-box;
2424
display: flex;
25+
align-items: center;
2526
}
2627

2728
}

0 commit comments

Comments
 (0)