From 84164b3cbd988c7f0e439863764c5d6d039b7268 Mon Sep 17 00:00:00 2001 From: Chris Beer <cabeer@stanford.edu> Date: Sat, 20 Jun 2020 07:15:37 -0700 Subject: [PATCH] Add a aria-label to the mirador icon and i18n it --- src/components/Branding.js | 2 +- src/locales/en/translation.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Branding.js b/src/components/Branding.js index 05439c85f..6c9b2b15f 100644 --- a/src/components/Branding.js +++ b/src/components/Branding.js @@ -26,7 +26,7 @@ export class Branding extends Component { target="_blank" rel="noopener" > - <MiradorIcon titleAccess="About Project Mirador" fontSize="large" /> + <MiradorIcon aria-label={t('aboutMirador')} titleAccess={t('aboutMirador')} fontSize="large" /> </IconButton> </Typography> </div> diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index b7310b784..9d133c569 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -1,5 +1,6 @@ { "translation": { + "aboutMirador": "About Project Mirador", "aboutThisItem": "About this item", "addedFromUrl": "(Added from URL)", "addManifestUrl": "Resource location", -- GitLab