From a551ef1a7256d2aec2169d83fc3ac7ed2ffa8f29 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 21 May 2019 20:00:15 -0600 Subject: [PATCH] Label message edit field as such for screen readers See https://github.com/vector-im/riot-web/issues/9747 --- src/components/views/elements/MessageEditor.js | 1 + src/i18n/strings/en_EN.json | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/views/elements/MessageEditor.js b/src/components/views/elements/MessageEditor.js index 1f3440d740..24b22b4ca2 100644 --- a/src/components/views/elements/MessageEditor.js +++ b/src/components/views/elements/MessageEditor.js @@ -187,6 +187,7 @@ export default class MessageEditor extends React.Component { onInput={this._onInput} onKeyDown={this._onKeyDown} ref={ref => this._editorRef = ref} + aria-label={_t("Edit message")} >
{_t("Cancel")} diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index c2e633d566..8e10d276d3 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -1052,6 +1052,7 @@ "%(oneUser)schanged their avatar %(count)s times|one": "%(oneUser)schanged their avatar", "collapse": "collapse", "expand": "expand", + "Edit message": "Edit message", "Power level": "Power level", "Custom level": "Custom level", "Unable to load event that was replied to, it either does not exist or you do not have permission to view it.": "Unable to load event that was replied to, it either does not exist or you do not have permission to view it.",