1
0
mirror of https://github.com/flarum/core.git synced 2025-08-02 06:30:53 +02:00

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
2 changed files with 3 additions and 1 deletions

View File

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

View File

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