mirror of
https://github.com/flarum/framework.git
synced 2025-04-25 06:04:04 +08: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:
parent
952a5891bb
commit
9c825aaa2b
@ -107,6 +107,8 @@ export default class CommentPost extends Post {
|
||||
editing: this.isEditing(),
|
||||
});
|
||||
|
||||
if (this.isEditing()) attrs['aria-busy'] = 'true';
|
||||
|
||||
return attrs;
|
||||
}
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user