1
0
mirror of https://github.com/flarum/core.git synced 2025-08-04 15:37:51 +02:00

fix(a11y): present post streams as feeds, setting busy when loading new pages (#3522)

This commit is contained in:
David Wheatley
2022-07-14 12:02:20 +01:00
committed by GitHub
parent 9c825aaa2b
commit 759f7ef327

View File

@@ -104,7 +104,11 @@ export default class PostStream extends Component {
);
}
return <div className="PostStream">{items}</div>;
return (
<div className="PostStream" role="feed" aria-live="off" aria-busy={this.stream.pagesLoading ? 'true' : 'false'}>
{items}
</div>
);
}
onupdate(vnode) {