mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
A11Y: add missing content description to the delete answer button.
This commit is contained in:
+1
-1
@@ -143,7 +143,7 @@ fun CreatePollView(
|
|||||||
trailingContent = ListItemContent.Custom {
|
trailingContent = ListItemContent.Custom {
|
||||||
Icon(
|
Icon(
|
||||||
imageVector = CompoundIcons.Delete(),
|
imageVector = CompoundIcons.Delete(),
|
||||||
contentDescription = null,
|
contentDescription = stringResource(R.string.screen_create_poll_delete_option_a11y, answer.text),
|
||||||
modifier = Modifier.clickable(answer.canDelete) {
|
modifier = Modifier.clickable(answer.canDelete) {
|
||||||
state.eventSink(CreatePollEvents.RemoveAnswer(index))
|
state.eventSink(CreatePollEvents.RemoveAnswer(index))
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
<string name="screen_create_poll_anonymous_headline">"Hide votes"</string>
|
<string name="screen_create_poll_anonymous_headline">"Hide votes"</string>
|
||||||
<string name="screen_create_poll_answer_hint">"Option %1$d"</string>
|
<string name="screen_create_poll_answer_hint">"Option %1$d"</string>
|
||||||
<string name="screen_create_poll_cancel_confirmation_content_android">"Your changes have not been saved. Are you sure you want to go back?"</string>
|
<string name="screen_create_poll_cancel_confirmation_content_android">"Your changes have not been saved. Are you sure you want to go back?"</string>
|
||||||
|
<string name="screen_create_poll_delete_option_a11y">"Delete option %1$s"</string>
|
||||||
<string name="screen_create_poll_question_desc">"Question or topic"</string>
|
<string name="screen_create_poll_question_desc">"Question or topic"</string>
|
||||||
<string name="screen_create_poll_question_hint">"What is the poll about?"</string>
|
<string name="screen_create_poll_question_hint">"What is the poll about?"</string>
|
||||||
<string name="screen_create_poll_title">"Create Poll"</string>
|
<string name="screen_create_poll_title">"Create Poll"</string>
|
||||||
|
|||||||
Reference in New Issue
Block a user