fix(a11y): set aria-busy when editing a post stream item (#3521)

* fix(a11y): add `aria-busy="true"` to posts being edited

* fix(a11y): add `aria-busy="true"` to reply placeholder
This commit is contained in:
David Wheatley 2022-07-14 12:02:12 +01:00 committed by GitHub
parent 952a5891bb
commit 9c825aaa2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -107,6 +107,8 @@ export default class CommentPost extends Post {
editing: this.isEditing(),
});
if (this.isEditing()) attrs['aria-busy'] = 'true';
return attrs;
}

View File

@ -18,7 +18,7 @@ export default class ReplyPlaceholder extends Component {
view() {
if (app.composer.composingReplyTo(this.attrs.discussion)) {
return (
<article className="Post CommentPost editing">
<article className="Post CommentPost editing" aria-busy="true">
<header className="Post-header">
<div className="PostUser">
<h3>