-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Accessibility: Add localized aria-label to Download button in viewer … #20534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| <!doctype html> | ||
| <!doctype html> | ||
| <!-- | ||
| Copyright 2012 Mozilla Foundation | ||
|
|
||
|
|
@@ -339,11 +339,18 @@ | |
| <!-- findbar --> | ||
| </div> | ||
| <div class="toolbarHorizontalGroup hiddenSmallView"> | ||
| <button class="toolbarButton" type="button" id="previous" tabindex="0" data-l10n-id="pdfjs-previous-button"> | ||
| <button | ||
| class="toolbarButton" | ||
| type="button" | ||
| id="previous" | ||
| tabindex="0" | ||
| data-l10n-id="pdfjs-previous-button" | ||
| data-l10n-attrs="title aria-label" | ||
| > | ||
| <span data-l10n-id="pdfjs-previous-button-label"></span> | ||
| </button> | ||
| <div class="splitToolbarButtonSeparator"></div> | ||
| <button class="toolbarButton" type="button" id="next" tabindex="0" data-l10n-id="pdfjs-next-button"> | ||
| <button class="toolbarButton" type="button" id="next" tabindex="0" data-l10n-attrs="title aria-label"> | ||
| <span data-l10n-id="pdfjs-next-button-label"></span> | ||
| </button> | ||
| </div> | ||
|
|
@@ -365,11 +372,25 @@ | |
| </div> | ||
| <div id="toolbarViewerMiddle" class="toolbarHorizontalGroup"> | ||
| <div class="toolbarHorizontalGroup"> | ||
| <button id="zoomOutButton" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-zoom-out-button"> | ||
| <button | ||
| id="zoomOutButton" | ||
| class="toolbarButton" | ||
| type="button" | ||
| tabindex="0" | ||
| data-l10n-id="pdfjs-zoom-out-button" | ||
| data-l10n-attrs="title aria-label" | ||
| > | ||
| <span data-l10n-id="pdfjs-zoom-out-button-label"></span> | ||
| </button> | ||
| <div class="splitToolbarButtonSeparator"></div> | ||
| <button id="zoomInButton" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-zoom-in-button"> | ||
| <button | ||
| id="zoomInButton" | ||
| class="toolbarButton" | ||
| type="button" | ||
| tabindex="0" | ||
| data-l10n-id="pdfjs-zoom-in-button" | ||
| data-l10n-attrs="title aria-label" | ||
| > | ||
| <span data-l10n-id="pdfjs-zoom-in-button-label"></span> | ||
| </button> | ||
| </div> | ||
|
|
@@ -607,11 +628,25 @@ | |
| <div id="editorModeSeparator" class="verticalToolbarSeparator"></div> | ||
|
|
||
| <div class="toolbarHorizontalGroup hiddenMediumView"> | ||
| <button id="printButton" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-print-button"> | ||
| <button | ||
| id="printButton" | ||
| class="toolbarButton" | ||
| type="button" | ||
| tabindex="0" | ||
| data-l10n-id="pdfjs-print-button" | ||
| data-l10n-attrs="title aria-label" | ||
| > | ||
| <span data-l10n-id="pdfjs-print-button-label"></span> | ||
| </button> | ||
|
|
||
| <button id="downloadButton" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-save-button"> | ||
| <button | ||
| id="downloadButton" | ||
| class="toolbarButton" | ||
| type="button" | ||
| tabindex="0" | ||
| data-l10n-id="pdfjs-save-button" | ||
| data-l10n-attrs="title aria-label" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not clear to me why the Download button is treated differently now compared to e.g. the Print button above. If we do this, shouldn't we do this consistently for all buttons instead? @calixteman Are you aware of any accessibility rules from the UI/UX team around this, since we recently changed the HTML to accomodate for that better?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the review! |
||
| > | ||
| <span data-l10n-id="pdfjs-save-button-label"></span> | ||
| </button> | ||
| </div> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be unrelated to the change at hand and should be reverted to keep the patch as small as possible (this is probably a UTF byte order mark added by an editor).