Label message edit field as such for screen readers

See https://github.com/vector-im/riot-web/issues/9747
This commit is contained in:
Travis Ralston 2019-05-21 20:00:15 -06:00
parent 68c4ee9374
commit a551ef1a72
2 changed files with 2 additions and 0 deletions

View file

@ -187,6 +187,7 @@ export default class MessageEditor extends React.Component {
onInput={this._onInput} onInput={this._onInput}
onKeyDown={this._onKeyDown} onKeyDown={this._onKeyDown}
ref={ref => this._editorRef = ref} ref={ref => this._editorRef = ref}
aria-label={_t("Edit message")}
></div> ></div>
<div className="mx_MessageEditor_buttons"> <div className="mx_MessageEditor_buttons">
<AccessibleButton kind="secondary" onClick={this._cancelEdit}>{_t("Cancel")}</AccessibleButton> <AccessibleButton kind="secondary" onClick={this._cancelEdit}>{_t("Cancel")}</AccessibleButton>

View file

@ -1052,6 +1052,7 @@
"%(oneUser)schanged their avatar %(count)s times|one": "%(oneUser)schanged their avatar", "%(oneUser)schanged their avatar %(count)s times|one": "%(oneUser)schanged their avatar",
"collapse": "collapse", "collapse": "collapse",
"expand": "expand", "expand": "expand",
"Edit message": "Edit message",
"Power level": "Power level", "Power level": "Power level",
"Custom level": "Custom 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.", "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.",