From be3408a49c77cb16b0331a2f01f283424664d353 Mon Sep 17 00:00:00 2001 From: oruburos Date: Tue, 25 Aug 2020 12:27:52 +0100 Subject: [PATCH] Adding Keys in QuickAddList Component Renaming thoseKeys to follow naming conventions for ARIA labels. --- client/modules/IDE/components/QuickAddList/QuickAddList.jsx | 2 +- translations/locales/en-US/translations.json | 4 ++-- translations/locales/es-419/translations.json | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/modules/IDE/components/QuickAddList/QuickAddList.jsx b/client/modules/IDE/components/QuickAddList/QuickAddList.jsx index 322642305f..b79e70fb44 100644 --- a/client/modules/IDE/components/QuickAddList/QuickAddList.jsx +++ b/client/modules/IDE/components/QuickAddList/QuickAddList.jsx @@ -8,7 +8,7 @@ import Icons from './Icons'; const Item = ({ isAdded, onSelect, name, url, t }) => { - const buttonLabel = isAdded ? 'Remove from collection' : 'Add to collection'; + const buttonLabel = isAdded ? t('QuickAddList.ButtonRemoveARIA') : t('QuickAddList.ButtonAddToCollectionARIA'); return (
  • { /* eslint-disable-line */ }