Skip to content

Commit ffbfd68

Browse files
authored
Merge pull request #17281 from calixteman/delete_button_tooltip
[Editor] Add a tooltip to the delete button
2 parents 1df6487 + b7d28a3 commit ffbfd68

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

l10n/en-US/viewer.ftl

+2
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ pdfjs-editor-ink-button-label = Draw
323323
pdfjs-editor-stamp-button =
324324
.title = Add or edit images
325325
pdfjs-editor-stamp-button-label = Add or edit images
326+
pdfjs-editor-remove-button =
327+
.title = Remove
326328
327329
# Editor Parameters
328330
pdfjs-editor-free-text-color-input = Color

src/display/editor/toolbar.js

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ class EditorToolbar {
8282
const button = document.createElement("button");
8383
button.className = "delete";
8484
button.tabIndex = 0;
85+
button.setAttribute("data-l10n-id", "pdfjs-editor-remove-button");
8586
this.#addListenersToElement(button);
8687
button.addEventListener("click", e => {
8788
this.#editor._uiManager.delete();

0 commit comments

Comments
 (0)