Commit 65bc5fc3 authored by Almouhannad's avatar Almouhannad

(F) Edit error messages font weight

parent aab73747
...@@ -48,3 +48,7 @@ ...@@ -48,3 +48,7 @@
color: var(--accent-color); color: var(--accent-color);
background-color: white; background-color: white;
} }
.custom-errors {
font-weight: 700;
}
\ No newline at end of file
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
dir="ltr" [(ngModel)]="formModel.userName" name="userName" #userName="ngModel" required dir="ltr" [(ngModel)]="formModel.userName" name="userName" #userName="ngModel" required
maxlength="50"> maxlength="50">
<div *ngIf="(userName.touched || userName.dirty) && userName.errors" class="mt-2"> <div *ngIf="(userName.touched || userName.dirty) && userName.errors" class="mt-2 custom-errors">
<span class="text-danger"> <span class="text-danger">
{{ {{
userName.errors['required'] ? 'هذا الحقل مطلوب' userName.errors['required'] ? 'هذا الحقل مطلوب'
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
dir="ltr" [(ngModel)]="formModel.password" name="password" #password="ngModel" required dir="ltr" [(ngModel)]="formModel.password" name="password" #password="ngModel" required
maxlength="50"> maxlength="50">
<div *ngIf="(password.touched || password.dirty) && password.errors" class="mt-2"> <div *ngIf="(password.touched || password.dirty) && password.errors" class="mt-2 custom-errors">
<span class="text-danger"> <span class="text-danger">
{{ {{
password.errors['required'] ? 'هذا الحقل مطلوب' password.errors['required'] ? 'هذا الحقل مطلوب'
......
...@@ -48,3 +48,7 @@ ...@@ -48,3 +48,7 @@
color: var(--accent-color); color: var(--accent-color);
background-color: white; background-color: white;
} }
.custom-errors {
font-weight: 700;
}
\ No newline at end of file
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
dir="ltr" [(ngModel)]="formModel.serialNumber" name="serialNumber" #serialNumber="ngModel" required dir="ltr" [(ngModel)]="formModel.serialNumber" name="serialNumber" #serialNumber="ngModel" required
maxlength="50"> maxlength="50">
<div *ngIf="(serialNumber.touched || serialNumber.dirty) && serialNumber.errors" class="mt-2"> <div *ngIf="(serialNumber.touched || serialNumber.dirty) && serialNumber.errors" class="mt-2 custom-errors">
<span class="text-danger"> <span class="text-danger">
{{ {{
serialNumber.errors['required'] ? 'هذا الحقل مطلوب' serialNumber.errors['required'] ? 'هذا الحقل مطلوب'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment