Skip to content

Commit

Permalink
Merge pull request mozilla#17281 from calixteman/delete_button_tooltip
Browse files Browse the repository at this point in the history
[Editor] Add a tooltip to the delete button
  • Loading branch information
calixteman authored Nov 15, 2023
2 parents 1df6487 + b7d28a3 commit ffbfd68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions l10n/en-US/viewer.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,8 @@ pdfjs-editor-ink-button-label = Draw
pdfjs-editor-stamp-button =
.title = Add or edit images
pdfjs-editor-stamp-button-label = Add or edit images
pdfjs-editor-remove-button =
.title = Remove
# Editor Parameters
pdfjs-editor-free-text-color-input = Color
Expand Down
1 change: 1 addition & 0 deletions src/display/editor/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ class EditorToolbar {
const button = document.createElement("button");
button.className = "delete";
button.tabIndex = 0;
button.setAttribute("data-l10n-id", "pdfjs-editor-remove-button");
this.#addListenersToElement(button);
button.addEventListener("click", e => {
this.#editor._uiManager.delete();
Expand Down

0 comments on commit ffbfd68

Please sign in to comment.