fix(a11y): add aria-live to OcrProgress page counter

Screen readers did not announce page-by-page OCR progress updates.
Wrapping the counter text in a span with aria-live=polite ensures
assistive technology announces each page completion without
interrupting the user.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-13 23:02:25 +02:00
parent 287920a982
commit fdba3211aa

View File

@@ -72,7 +72,9 @@ $effect(() => {
></div>
</div>
<p class="mt-2 text-right text-sm text-gray-500">
{m.ocr_progress_page({ current: String(currentPage), total: String(totalPages) })}
<span aria-live="polite" aria-atomic="true">
{m.ocr_progress_page({ current: String(currentPage), total: String(totalPages) })}
</span>
</p>
</div>
{:else if status === 'error'}