Skip to content

Commit 0cf97d1

Browse files
committed
feat(sign-up-design): changed regexp, added autocomplete input attributes
1 parent 1ecfbbf commit 0cf97d1

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

src/app/features/auth/sign-up/sign-up.component.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ <h2>Create A Free Account</h2>
3535
pInputText
3636
formControlName="fullName"
3737
placeholder="John Doe"
38+
autocomplete="full-name"
3839
/>
3940
</div>
4041

@@ -46,6 +47,7 @@ <h2>Create A Free Account</h2>
4647
pInputText
4748
formControlName="email"
4849
placeholder="email@example.com"
50+
autocomplete="off"
4951
/>
5052
</div>
5153

@@ -56,6 +58,7 @@ <h2>Create A Free Account</h2>
5658
formControlName="password"
5759
[toggleMask]="true"
5860
[feedback]="false"
61+
autocomplete="new-password"
5962
></p-password>
6063
@if (
6164
signUpForm.controls["password"].errors &&
@@ -76,6 +79,7 @@ <h2>Create A Free Account</h2>
7679
formControlName="confirmPassword"
7780
[toggleMask]="true"
7881
[feedback]="false"
82+
autocomplete="new-password"
7983
></p-password>
8084
@if (
8185
signUpForm.get("confirmPassword")?.errors?.["passwordMismatch"] &&

src/app/features/auth/sign-up/sign-up.helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';
22

33
export const PASSWORD_REGEX =
4-
/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/;
4+
/^(?=.*[A-Z])(?=.*[a-z])(?=.*\d)(?=.*[^\w\s]).{8,}$/;
55

66
export function passwordMatchValidator(
77
passwordField = 'password',

src/assets/icons/dist/icons.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
-webkit-border-radius: 0 0 3px 3px;
4646
-moz-border-radius: 0 0 3px 3px;
4747
border-radius: 0 0 3px 3px;
48-
color: #666;
4948
}
5049
</style>
5150

src/assets/styles/overrides/input.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,3 @@ p-password.ng-touched.ng-invalid {
3333
.p-inputtext.ng-dirty.ng-invalid::placeholder {
3434
color: var.$grey-1;
3535
}
36-
37-
input:-internal-autofill-selected {
38-
background-color: white !important;
39-
}

0 commit comments

Comments
 (0)