Skip to content

Commit

Permalink
Merge pull request #845 from smart-village-solutions/refactor/SBB-55-…
Browse files Browse the repository at this point in the history
…fix-accessibility-labels

refactor: fix accessibility labels
  • Loading branch information
ardasnturk authored Jun 15, 2023
2 parents 5abcbe8 + d8e6c70 commit b908a8f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/IndexFilterWrapperAndList.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const IndexFilterWrapperAndList = ({ filter, setFilter }) => {
data={filter}
renderItem={({ item }) => (
<Touchable
accessibilityLabel={`(${item.title}) ${a11yLabel.drop} (${
accessibilityLabel={`(${item.title}) ${a11yLabel.tabs} (${
item.selected
? texts.accessibilityLabels.tabs.active
: texts.accessibilityLabels.tabs.inactive
Expand Down
4 changes: 2 additions & 2 deletions src/components/ListSettingsItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ export const ListSettingsItem = ({ 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 (
<ListItem
Expand Down
4 changes: 4 additions & 0 deletions src/config/texts.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ export const texts = {
closed: 'geschlossen',
open: 'geöffnet'
},
menuItem: {
active: 'aktiviert',
inactive: 'nicht aktiviert'
},
searchInputIcons: {
delete: 'Suche löschen',
search: 'Suche'
Expand Down

0 comments on commit b908a8f

Please sign in to comment.