From d8e6c7047957d07d810fa206c7557719e9b2b1d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arda=20Sentu=CC=88rk?= Date: Wed, 14 Jun 2023 16:25:22 +0200 Subject: [PATCH] refactor: fix accessibility labels - added `menuItem` instead of tabs `AccessibilityLabel` in `ListSettingsItem` to make it more understandable - replaced `a11yLabel.drop` in `IndexFilterWrapperAndList` with `a11yLabel.tabs` because it was `undefined` SBB-55 --- src/components/IndexFilterWrapperAndList.js | 2 +- src/components/ListSettingsItem.js | 4 ++-- src/config/texts.js | 4 ++++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/IndexFilterWrapperAndList.js b/src/components/IndexFilterWrapperAndList.js index ed65a1f9d..a3f7cac5e 100644 --- a/src/components/IndexFilterWrapperAndList.js +++ b/src/components/IndexFilterWrapperAndList.js @@ -21,7 +21,7 @@ export const IndexFilterWrapperAndList = ({ filter, setFilter }) => { data={filter} renderItem={({ item }) => ( { {Object.values(LIST_TYPES).map((listType) => { const activeTabAccessibilityLabel = listType === listTypeForQuery - ? texts.accessibilityLabels.tabs.active - : texts.accessibilityLabels.tabs.inactive; + ? texts.accessibilityLabels.menuItem.active + : texts.accessibilityLabels.menuItem.inactive; return (