Skip to content

Commit

Permalink
fix: A11Y - make generic message
Browse files Browse the repository at this point in the history
  • Loading branch information
tille committed Aug 31, 2021
1 parent 05a7eb0 commit 0ef4025
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/i18n/en-US.properties
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ find_label=Search input
# Sidebar thumbnails aria-label attribute
thumbnail_label=Page thumbnails
# Document preview aria-label attribute
document_preview_label=Document preview
file_preview_label=File preview

# Error messages
# Default preview error message
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viewers/doc/DocBaseViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class DocBaseViewer extends BaseViewer {
}

if (this.containerEl) {
this.containerEl.setAttribute('aria-label', __('document_preview_label'));
this.containerEl.setAttribute('aria-label', __('file_preview_label'));
this.containerEl.setAttribute('role', 'region');
}

Expand Down

0 comments on commit 0ef4025

Please sign in to comment.