From daa34230b3fae339c40a53a8cae4a75640ad4056 Mon Sep 17 00:00:00 2001 From: andrej romanov <50377758+auumgn@users.noreply.github.com> Date: Tue, 10 Sep 2024 12:13:53 +0300 Subject: [PATCH] fix domain and email aria labels --- .../modals/modal-email/modal-email.component.html | 10 +++++----- .../modals/modal-email/modal-email.component.ts | 3 +++ src/locale/properties/side-bar/side-bar.en.properties | 3 +++ 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/app/cdk/side-bar/modals/modal-email/modal-email.component.html b/src/app/cdk/side-bar/modals/modal-email/modal-email.component.html index 15ecc86ac..7badc5956 100644 --- a/src/app/cdk/side-bar/modals/modal-email/modal-email.component.html +++ b/src/app/cdk/side-bar/modals/modal-email/modal-email.component.html @@ -128,8 +128,8 @@

formControlName="visibility" id="cy-domain-visibility" [itemTitle]="domain.value" - [ariaLabelPrivate]="ariaLabelVisibilityEmailTrustedParty" - [ariaLabelPublic]="ariaLabelVisibilityEmailTrustedParty" - [ariaLabelTrustedParty]="ariaLabelVisibilityEmailTrustedParty" + [ariaLabelPrivate]="ariaLabelVisibilityDomainPrivate" + [ariaLabelPublic]="ariaLabelVisibilityDomainPublic" + [ariaLabelTrustedParty]="ariaLabelVisibilityDomainTrustedParty" [mobile]="isMobile" [privacy]="domain.visibility" > diff --git a/src/app/cdk/side-bar/modals/modal-email/modal-email.component.ts b/src/app/cdk/side-bar/modals/modal-email/modal-email.component.ts index b3533cd0c..66f6bca98 100644 --- a/src/app/cdk/side-bar/modals/modal-email/modal-email.component.ts +++ b/src/app/cdk/side-bar/modals/modal-email/modal-email.component.ts @@ -69,6 +69,9 @@ export class ModalEmailComponent implements OnInit, OnDestroy { ariaLabelVisibilityEmailPublic = $localize`:@@side-bar.ariaLabelEmailPublic:Set email visibility to Everyone` ariaLabelVisibilityEmailTrustedParty = $localize`:@@side-bar.ariaLabelEmailTrustedParties:Set email visibility to Trusted Parties` ariaLabelVisibilityEmailPrivate = $localize`:@@side-bar.ariaLabelEmailPrivate:Set email visibility to Only Me` + ariaLabelVisibilityDomainPublic = $localize`:@@side-bar.ariaLabelDomainVisibilityPublic:Set domain visibility to Everyone` + ariaLabelVisibilityDomainTrustedParty = $localize`:@@side-bar.ariaLabelDomainVisibilityTrustedParties:Set domain visibility to Trusted Parties` + ariaLabelVisibilityDomainPrivate = $localize`:@@side-bar.ariaLabelDomainVisibilityPrivate:Set domain visibility to Only Me` ariaOpenAccountSettings = $localize`:@@side-bar.ariaOpenAccountSettings:Open your ORCID account settings` deleteTooltip = $localize`:@@side-bar.deleteTooltip:You can't delete the only email address in your account` visibilityTooltip = $localize`:@@side-bar.visibilityTooltip:Visibility set to Only me` diff --git a/src/locale/properties/side-bar/side-bar.en.properties b/src/locale/properties/side-bar/side-bar.en.properties index 0b39a9313..ebc2cf3c5 100644 --- a/src/locale/properties/side-bar/side-bar.en.properties +++ b/src/locale/properties/side-bar/side-bar.en.properties @@ -103,5 +103,8 @@ side-bar.ariaLabelOtherEmailPrivate=Set other email visibility to Only Me side-bar.ariaLabelEmailPublic=Set email visibility to Everyone side-bar.ariaLabelEmailTrustedParties=Set email visibility to Trusted Parties side-bar.ariaLabelEmailPrivate=Set email visibility to Only Me +side-bar.ariaLabelDomainVisibilityPublic=Set domain visibility to Everyone +side-bar.ariaLabelDomainVisibilityTrustedParties=Set domain visibility to Trusted Parties +side-bar.ariaLabelDomainVisibilityPrivate=Set domain visibility to Only Me side-bar.ariaOpenAccountSettings=Open your ORCID account settings side-bar.notificationsAreSentToEmail=Notifications are sent to