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:
@@ -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'}
|
||||
|
||||
Reference in New Issue
Block a user