SES-2249 fix contentDescriptions

This commit is contained in:
bemusementpark 2024-07-12 00:08:42 +09:30
parent e3b4636b42
commit cb8b9d63ac
2 changed files with 4 additions and 1 deletions

View File

@ -49,17 +49,20 @@ internal fun StartConversationScreen(
ItemButton( ItemButton(
textId = R.string.messageNew, textId = R.string.messageNew,
icon = R.drawable.ic_message, icon = R.drawable.ic_message,
modifier = Modifier.contentDescription(R.string.AccessibilityId_new_direct_message),
onClick = delegate::onNewMessageSelected) onClick = delegate::onNewMessageSelected)
Divider(startIndent = LocalDimensions.current.dividerIndent) Divider(startIndent = LocalDimensions.current.dividerIndent)
ItemButton( ItemButton(
textId = R.string.activity_create_group_title, textId = R.string.activity_create_group_title,
icon = R.drawable.ic_group, icon = R.drawable.ic_group,
modifier = Modifier.contentDescription(R.string.AccessibilityId_create_group),
onClick = delegate::onCreateGroupSelected onClick = delegate::onCreateGroupSelected
) )
Divider(startIndent = LocalDimensions.current.dividerIndent) Divider(startIndent = LocalDimensions.current.dividerIndent)
ItemButton( ItemButton(
textId = R.string.dialog_join_community_title, textId = R.string.dialog_join_community_title,
icon = R.drawable.ic_globe, icon = R.drawable.ic_globe,
modifier = Modifier.contentDescription(R.string.AccessibilityId_join_community),
onClick = delegate::onJoinCommunitySelected onClick = delegate::onJoinCommunitySelected
) )
Divider(startIndent = LocalDimensions.current.dividerIndent) Divider(startIndent = LocalDimensions.current.dividerIndent)

View File

@ -49,7 +49,7 @@
<string name="AccessibilityId_new_conversation_button">New conversation button</string> <string name="AccessibilityId_new_conversation_button">New conversation button</string>
<string name="AccessibilityId_new_direct_message">New direct message</string> <string name="AccessibilityId_new_direct_message">New direct message</string>
<string name="AccessibilityId_create_group">Create group</string> <string name="AccessibilityId_create_group">Create group</string>
<string name="AccessibilityId_join_community">Join community button</string> <string name="AccessibilityId_join_community">Join community</string>
<!-- Join community pop up --> <!-- Join community pop up -->
<string name="AccessibilityId_community_input_box">Community input</string> <string name="AccessibilityId_community_input_box">Community input</string>
<string name="AccessibilityId_join_community_button">Join community button</string> <string name="AccessibilityId_join_community_button">Join community button</string>