mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
a11y: improve content description of the close formatting button. Change from "Close" to "Cancel and close text formatting"
This commit is contained in:
+5
-3
@@ -178,7 +178,8 @@ fun TextComposer(
|
|||||||
remember(state.richTextEditorState, composerMode, onResetComposerMode, onError) {
|
remember(state.richTextEditorState, composerMode, onResetComposerMode, onError) {
|
||||||
@Composable {
|
@Composable {
|
||||||
TextInputBox(
|
TextInputBox(
|
||||||
modifier = Modifier.clickable(
|
modifier = Modifier
|
||||||
|
.clickable(
|
||||||
interactionSource = remember { MutableInteractionSource() },
|
interactionSource = remember { MutableInteractionSource() },
|
||||||
indication = null,
|
indication = null,
|
||||||
) {
|
) {
|
||||||
@@ -186,7 +187,8 @@ fun TextComposer(
|
|||||||
state.requestFocus()
|
state.requestFocus()
|
||||||
view.showKeyboard()
|
view.showKeyboard()
|
||||||
}
|
}
|
||||||
}.semantics {
|
}
|
||||||
|
.semantics {
|
||||||
hideFromAccessibility()
|
hideFromAccessibility()
|
||||||
},
|
},
|
||||||
composerMode = composerMode,
|
composerMode = composerMode,
|
||||||
@@ -317,7 +319,7 @@ fun TextComposer(
|
|||||||
IconColorButton(
|
IconColorButton(
|
||||||
onClick = onDismissTextFormatting,
|
onClick = onDismissTextFormatting,
|
||||||
imageVector = CompoundIcons.Close(),
|
imageVector = CompoundIcons.Close(),
|
||||||
contentDescription = stringResource(CommonStrings.action_close),
|
contentDescription = stringResource(R.string.rich_text_editor_close_formatting_options),
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
textFormatting = textFormattingOptions,
|
textFormatting = textFormattingOptions,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||||
<string name="rich_text_editor_a11y_add_attachment">"Add attachment"</string>
|
<string name="rich_text_editor_a11y_add_attachment">"Add attachment"</string>
|
||||||
<string name="rich_text_editor_bullet_list">"Toggle bullet list"</string>
|
<string name="rich_text_editor_bullet_list">"Toggle bullet list"</string>
|
||||||
<string name="rich_text_editor_close_formatting_options">"Close formatting options"</string>
|
<string name="rich_text_editor_close_formatting_options">"Cancel and close text formatting"</string>
|
||||||
<string name="rich_text_editor_code_block">"Toggle code block"</string>
|
<string name="rich_text_editor_code_block">"Toggle code block"</string>
|
||||||
<string name="rich_text_editor_composer_caption_placeholder">"Add a caption"</string>
|
<string name="rich_text_editor_composer_caption_placeholder">"Add a caption"</string>
|
||||||
<string name="rich_text_editor_composer_encrypted_placeholder">"Encrypted message…"</string>
|
<string name="rich_text_editor_composer_encrypted_placeholder">"Encrypted message…"</string>
|
||||||
|
|||||||
Reference in New Issue
Block a user