Skip to content

Commit

Permalink
fix public email section aria labels
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed Oct 17, 2024
1 parent cb3d35c commit 70c02e2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class AppPanelsCollapseAriaLabelPipe implements PipeTransform {
} else if (panelType === 'side-bar' && args) {
// emails-panel, websites-panel, personal-identifiers-panel, keywords-panel, countries-panel
if (args === 'emails-panel') {
return $localize`:@@shared.emailsCollapseAriaLabel:Collapse Emails`
return $localize`:@@shared.hideEmailDetailsAriaLabel:Hide email details`
} else if (args === 'websites-panel') {
return $localize`:@@shared.websiteCollapseAriaLabel:Collapse Website & Social links`
} else if (args === 'personal-identifiers-panel') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class AppPanelsExpandAriaLabelPipe implements PipeTransform {
}
} else if (panelType === 'side-bar' && args) {
if (args === 'emails-panel') {
return $localize`:@@shared.emailsExpandAriaLabel:Expand Emails`
return $localize`:@@shared.showEmailDetailsAriaLabel:Show email details`
} else if (args === 'websites-panel') {
return $localize`:@@shared.websiteExpandAriaLabel:Expand Website & Social links`
} else if (args === 'personal-identifiers-panel') {
Expand Down
2 changes: 2 additions & 0 deletions src/locale/properties/shared/shared.en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -529,11 +529,13 @@ shared.dialogAriaLabeledByPeerReview=Manage peer review dialog
shared.dialogAriaLabeledByExternalIdentifier=Manage external identifier dialog
shared.dialogAriaLabeledByBibtex=Manage bibtex dialog
shared.emailsCollapseAriaLabel=Collapse Emails
shared.hideEmailDetailsAriaLabel=Hide email details
shared.websiteCollapseAriaLabel=Collapse Website & Social links
shared.personalIdsCollapseAriaLabel=Collapse Personal identifiers
shared.keywordsCollapseAriaLabel=Collapse Keywords
shared.countriesCollapseAriaLabel=Collapse Countries
shared.emailsExpandAriaLabel=Expand Emails
shared.showEmailDetailsAriaLabel=Show email details
shared.websiteExpandAriaLabel=Expand Website & Social links
shared.personalIdsExpandAriaLabel=Expand Personal identifiers
shared.keywordsExpandAriaLabel=Expand Keywords
Expand Down

0 comments on commit 70c02e2

Please sign in to comment.