Skip to content

Commit

Permalink
Merge pull request #2203 from ORCID/feature/9060-qa-investigation-aff…
Browse files Browse the repository at this point in the history
…iliation-found-notice-panel-not-announced-to-assistive-tech-users

Feature/9060 qa investigation affiliation found notice panel not announced to assistive tech users
  • Loading branch information
leomendoza123 authored Mar 18, 2024
2 parents 6b65c9d + 78a428c commit 4654a07
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ <h3 class="orc-font-body" i18n="@@register.affiliationFoud">

<div class="row">
<label
for="organization-input"
id="organization-label"
class="mat-caption"
[ngClass]="{
Expand All @@ -76,6 +75,11 @@ <h3 class="orc-font-body" i18n="@@register.affiliationFoud">
<input
aria-labelledby="organizationLabel"
[readonly]="organizationIsValidAndTouched"
[attr.aria-label]="
rorIdHasBeenMatched
? ariaLabelPrefilledOrganization
: ariaLabelOrganization
"
id="organization-input"
matInput
formControlName="organization"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ export class FormCurrentEmploymentComponent extends BaseForm implements OnInit {
ariaLabelStartDate = $localize`:@@shared.startDate:Start date`
ngOrcidYear = $localize`:@@shared.year:Year`
ngOrcidMonth = $localize`:@@shared.month:Month`
ariaLabelOrganization = $localize`:@@register.organization:Organization`
ariaLabelPrefilledOrganization = $localize`:@@register.prefilledOrganization:Organization - We've added an organization based on your email domain`

years = Array(110)
.fill(0)
Expand Down Expand Up @@ -247,6 +249,7 @@ export class FormCurrentEmploymentComponent extends BaseForm implements OnInit {
}

clearForm() {
this.rorIdHasBeenMatched = false
this.form.patchValue({
organization: '',
})
Expand Down
2 changes: 2 additions & 0 deletions src/locale/properties/register/register.en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -225,3 +225,5 @@ register.accesibilityOnlyTheNumberConstrainIsNotMet=Your password must include a
register.accesibilityOnlyTheLetterOrSymbolConstrainIsNotMet=Your password must include at least 1 letter or symbol
register.accesibilityOnlyThe8OrMoreCharactersConstrainIsNotMet=Your password must be 8 or more characters
register.allPasswordContrainsArMet=All password constraints are met
register.organization=Organization
register.prefilledOrganization=Organization - We've added an organization based on your email domain

0 comments on commit 4654a07

Please sign in to comment.