fix: remove alert role from the loading indicator (#2238)

...so it no longer interferes with screen readers. Fixes "Loading more" alert creates extraneous verbosity for screen reader users

Fixes #2226
announce-1000
Marco Zehe 2022-11-24 18:16:18 +01:00 zatwierdzone przez GitHub
rodzic 53803db5be
commit fa41fe7649
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 0 dodań i 1 usunięć

Wyświetl plik

@ -1,7 +1,6 @@
<div class="loading-footer {shown ? '' : 'hidden'}">
<div class="loading-wrapper {showLoading ? 'shown' : ''}"
aria-hidden={!showLoading}
role="alert"
>
<!-- Sapper's mousemove event listener schedules style recalculations for the loading spinner in
Chrome because it's always animating, even when hidden. So disable animations when not visible