mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 01:35:43 +02:00
Add landmark region and aria-label for each page.
Allows screen readers to jump landmarks and announce the page. Since landmarks must have content, I also added aria labels for the loading images.
This commit is contained in:
parent
a164941351
commit
9fb0f3b0da
3 changed files with 13 additions and 6 deletions
|
@ -45,7 +45,7 @@ const DEFAULT_L10N_STRINGS = {
|
|||
"Toggle Sidebar (document contains outline/attachments/layers)",
|
||||
|
||||
additional_layers: "Additional Layers",
|
||||
page_canvas: "Page {{page}}",
|
||||
page_landmark: "Page {{page}}",
|
||||
thumb_page_title: "Page {{page}}",
|
||||
thumb_page_canvas: "Thumbnail of Page {{page}}",
|
||||
|
||||
|
@ -70,6 +70,7 @@ const DEFAULT_L10N_STRINGS = {
|
|||
page_scale_actual: "Actual Size",
|
||||
page_scale_percent: "{{scale}}%",
|
||||
|
||||
loading: "Loading…",
|
||||
loading_error: "An error occurred while loading the PDF.",
|
||||
invalid_file_error: "Invalid or corrupted PDF file.",
|
||||
missing_file_error: "Missing PDF file.",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue