Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 42 additions & 7 deletions web/viewer.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html>
<!doctype html>
Copy link
Contributor

@timvandermeij timvandermeij Jan 6, 2026

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).

<!--
Copyright 2012 Mozilla Foundation

Expand Down Expand Up @@ -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>
Expand All @@ -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>
Expand Down Expand Up @@ -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"
Copy link
Contributor

Choose a reason for hiding this comment

The 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?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review!
I reverted the unintended BOM/doctype change and updated the patch so data-l10n-attrs="title aria-label" is applied consistently across icon-only toolbar buttons.
Please let me know if any further adjustments are needed.

>
<span data-l10n-id="pdfjs-save-button-label"></span>
</button>
</div>
Expand Down