Skip to content

Commit 5172794

Browse files
committed
♿️(frontend) announce search loading state for screen readers
Add live region announcement when document search is in progress.
1 parent 0219515 commit 5172794

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ and this project adheres to
4040
### Changed
4141

4242
- ♻️(backend) reset collaboration connection in cascade for all children #2507
43+
- ♿️(frontend) announce search loading state for screen readers #2526
4344

4445
### Fixed
4546

src/frontend/apps/impress/src/features/docs/doc-search/components/DocSearchContent.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ export const DocSearchContent = ({
6565

6666
useEffect(() => {
6767
if (loading) {
68+
if (search || isSearchNotMandatory) {
69+
announce(t('Loading documents...'), 'polite');
70+
}
6871
return;
6972
}
7073

0 commit comments

Comments
 (0)