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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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>
|
||||||
|
Reference in New Issue
Block a user