Skip to content

Commit

Permalink
more aria tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed Jul 24, 2024
1 parent 5462bba commit 67f1a81
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ <h2 class="orc-font-body-large" i18n="@@side-bar.emailAddressesUppercase">
formControlName="email"
type="email"
appTrim
[attr.aria-label]="ariaLabelPrimaryEmail"
[attr.aria-label]="ariaLabelEmailAddress"
/>
</mat-form-field>
<div
Expand Down Expand Up @@ -254,7 +254,9 @@ <h2 class="orc-font-body-large" i18n="@@side-bar.emailAddressesUppercase">
>
<mat-select
outline="black"
[aria-label]="ariaLabelSelect"
[aria-label]="
ariaLabelNotificationsAreSentTo + ' ' + primaryEmail?.value
"
[attr.disabled]="hasOneEmailAddress()"
(selectionChange)="makePrimary($event.value)"
[ngClass]="{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ export class ModalEmailComponent implements OnInit, OnDestroy {
ariaLabelKnowledgeSupport = $localize`:@@side-bar.ariaLabelOrcidTermsSupport:ORCID support page (Opens in a new tab)`
ariaLabelOrcidTermsOfUseLink = $localize`:@@side-bar.ariaLabelOrcidTermsOfUseLink:ORCID terms of use (Opens in a new tab)`
ariaLabelSave = $localize`:@@side-bar.ariaLabelEmailSave:Save changes to Emails`
ariaLabelSelect = $localize`:@@side-bar.ariaLabelEmailSave:Select email to receive notifications`
ariaLabelNotificationsAreSentTo = $localize`:@@side-bar.notificationsAreSentTo:Notifications are sent to`
ariaLabelCancel = $localize`:@@side-bar.ariaLabelEmailCancel:Cancel changes and close Emails`
ariaLabelDelete = $localize`:@@side-bar.ariaLabelEmailDelete:Delete Email`
ariaLabelClose = $localize`:@@side-bar.ariaLabelEmailClose:Close Emails`
ariaLabelPrimaryEmail = $localize`:@@side-bar.primaryEmail:Primary email address`
ariaLabelEmailAddress = $localize`:@@side-bar.emailAddress:Email address`
ariaLabelOtherEmailAddresses = $localize`:@@side-bar.otherEmails:Other email addresses`
ariaLabelVisibilityPrimaryEmailPublic = $localize`:@@side-bar.ariaLabelPrimaryEmailPublic:Set primary email visibility to Everyone`
ariaLabelVisibilityPrimaryEmailTrustedParty = $localize`:@@side-bar.ariaLabelPrimaryEmailTrustedParties:Set primary email visibility to Trusted Parties`
Expand Down
1 change: 1 addition & 0 deletions src/locale/properties/side-bar/side-bar.en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ side-bar.pleaseVerifyWarning=Please verify your email addresses
side-bar.verifyToAccessOrcidFeatures=To access all of ORCID’s editing features you must verify at least one email address. Until then you will only be able to manage
side-bar.names=names
side-bar.and=and
side-bar.emailAddress=Email address
side-bar.emailAddresses=email addresses
side-bar.emailAddressesUppercase=Email addresses
side-bar.inYourOrcidRecord=in your ORCID record.
Expand Down

0 comments on commit 67f1a81

Please sign in to comment.