Merge pull request #7135 from element-hq/fix/a11y-message-composer

Fix accessibility for message composer input and read receipts button
This commit is contained in:
Benoit Marty
2026-07-02 15:30:09 +02:00
committed by GitHub
2 changed files with 7 additions and 9 deletions
@@ -93,6 +93,7 @@ fun MarkdownTextInput(
setText(text)
setHint(placeholder)
setHintTextColor(ColorStateList.valueOf(placeholderColor.toArgb()))
contentDescription = placeholder
inputType = InputType.TYPE_CLASS_TEXT or
InputType.TYPE_TEXT_FLAG_CAP_SENTENCES or
InputType.TYPE_TEXT_FLAG_MULTI_LINE or
@@ -129,6 +130,7 @@ fun MarkdownTextInput(
}
},
update = { editText ->
editText.contentDescription = placeholder
editText.applyStyleInCompose(richTextEditorStyle)
val text = state.text.value()
mentionSpanUpdater.updateMentionSpans(text)