Skip to content

Conversation

@enterayush
Copy link

Summary

Adds a localized aria-label to the Download button in the viewer toolbar to improve accessibility for screen
reader users.

Details

Previously, only the title attribute was localized, so the button did not expose an accessible name. By adding
data-l10n-attrs="title aria-label", both title and aria-label are now populated by the localization system,
consistent with other toolbar buttons.

Result

Screen readers can now correctly announce the purpose of the Download button.

Fixes: #20473

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add aria-label to "Download" button in PDF.js viewer

3 participants