mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Improving accessibility on the new user registration page
(cherry picked from commit 0eb2d5ce58
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
303d59e699
commit
b041601006
@@ -14,13 +14,16 @@
|
|||||||
<label class="font-weight-bold"
|
<label class="font-weight-bold"
|
||||||
for="email">{{MESSAGE_PREFIX + '.email' | translate}}</label>
|
for="email">{{MESSAGE_PREFIX + '.email' | translate}}</label>
|
||||||
<input [className]="(email.invalid) && (email.dirty || email.touched) ? 'form-control is-invalid' :'form-control'"
|
<input [className]="(email.invalid) && (email.dirty || email.touched) ? 'form-control is-invalid' :'form-control'"
|
||||||
type="text" id="email" formControlName="email"/>
|
type="text" id="email" formControlName="email"
|
||||||
|
[attr.aria-label]="'register-email.aria.label'|translate"
|
||||||
|
aria-describedby="email-errors-required email-error-not-valid"
|
||||||
|
[attr.aria-invalid]="form.get('email')?.invalid"/>
|
||||||
<div *ngIf="email.invalid && (email.dirty || email.touched)"
|
<div *ngIf="email.invalid && (email.dirty || email.touched)"
|
||||||
class="invalid-feedback show-feedback">
|
class="invalid-feedback show-feedback">
|
||||||
<span *ngIf="email.errors && email.errors.required">
|
<span *ngIf="email.errors && email.errors.required" id="email-errors-required">
|
||||||
{{ MESSAGE_PREFIX + '.email.error.required' | translate }}
|
{{ MESSAGE_PREFIX + '.email.error.required' | translate }}
|
||||||
</span>
|
</span>
|
||||||
<span *ngIf="email.errors && ((email.errors.pattern && this.typeRequest === TYPE_REQUEST_REGISTER) || email.errors.email)">
|
<span *ngIf="email.errors && ((email.errors.pattern && this.typeRequest === TYPE_REQUEST_REGISTER) || email.errors.email)" id="email-error-not-valid">
|
||||||
{{ MESSAGE_PREFIX + '.email.error.not-email-form' | translate }}
|
{{ MESSAGE_PREFIX + '.email.error.not-email-form' | translate }}
|
||||||
<ng-container *ngIf="validMailDomains.length > 0">
|
<ng-container *ngIf="validMailDomains.length > 0">
|
||||||
{{ MESSAGE_PREFIX + '.email.error.not-valid-domain' | translate: { domains: validMailDomains.join(', ') } }}
|
{{ MESSAGE_PREFIX + '.email.error.not-valid-domain' | translate: { domains: validMailDomains.join(', ') } }}
|
||||||
|
@@ -6741,4 +6741,6 @@
|
|||||||
"item.page.cc.license.disclaimer": "Except where otherwised noted, this item's license is described as",
|
"item.page.cc.license.disclaimer": "Except where otherwised noted, this item's license is described as",
|
||||||
|
|
||||||
"browse.search-form.placeholder": "Search the repository",
|
"browse.search-form.placeholder": "Search the repository",
|
||||||
|
|
||||||
|
"register-email.aria.label": "Enter your e-mail address",
|
||||||
}
|
}
|
||||||
|
@@ -8152,5 +8152,8 @@
|
|||||||
//"browse.search-form.placeholder": "Search the repository",
|
//"browse.search-form.placeholder": "Search the repository",
|
||||||
"browse.search-form.placeholder": "Buscar en el repositorio",
|
"browse.search-form.placeholder": "Buscar en el repositorio",
|
||||||
|
|
||||||
|
// "register-email.aria.label": "Enter your e-mail address",
|
||||||
|
"register-email.aria.label": "Introduzca su dirección de correo electrónico",
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -10249,4 +10249,7 @@
|
|||||||
|
|
||||||
//"browse.search-form.placeholder": "Search the repository",
|
//"browse.search-form.placeholder": "Search the repository",
|
||||||
"browse.search-form.placeholder": "Buscar no repositório",
|
"browse.search-form.placeholder": "Buscar no repositório",
|
||||||
|
|
||||||
|
// "register-email.aria.label": "Enter your e-mail address",
|
||||||
|
"register-email.aria.label": "Digite seu e-mail",
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user