Skip to content

Commit d806945

Browse files
authored
Fix Add-ItemTag FAB accessibility label (#58)
The Add-ItemTag FAB in ItemTagListView used R.string.add_shop ("Add Shop") as its contentDescription, so screen readers announced the wrong action. Use the existing R.string.label_add_item_tag ("Add Item Tag"). The Shops list FAB keeps add_shop, which is correct there.
1 parent a362d9e commit d806945

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • app/src/main/kotlin/com/nativeapptemplate/nativeapptemplatefree/ui/shop_settings/item_tag_list

app/src/main/kotlin/com/nativeapptemplate/nativeapptemplatefree/ui/shop_settings/item_tag_list/ItemTagListView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ private fun ItemTagListContentView(
163163
onAddItemTagClick(viewModel.shopId)
164164
},
165165
) {
166-
Icon(Icons.Filled.Add, stringResource(id = R.string.add_shop))
166+
Icon(Icons.Filled.Add, stringResource(id = R.string.label_add_item_tag))
167167
}
168168
},
169169
modifier = Modifier.fillMaxSize(),

0 commit comments

Comments
 (0)