Remove alert role from the loading indicator so it no longer interferes with screen readers. Fixes "Loading more" alert creates extraneous verbosity for screen reader users #2226.

This commit is contained in:
Marco Zehe 2022-11-24 11:34:54 +01:00
parent 53803db5be
commit 9389e1bf96
1 changed files with 0 additions and 1 deletions

View File

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