1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

[Editor] Add an aria label to an added signature (bug 1952571)

This commit is contained in:
Calixte Denizet 2025-03-10 19:09:02 +01:00
parent febf59ce75
commit b5a7b827b5
2 changed files with 6 additions and 0 deletions

View file

@ -259,6 +259,7 @@ class SignatureEditor extends DrawingEditor {
const { outline } = (this.#signatureData = data);
this.#isExtracted = outline instanceof ContourDrawOutline;
this.#description = description;
this.div.setAttribute("aria-label", description);
let drawingOptions;
if (this.#isExtracted) {
drawingOptions = SignatureEditor.getDefaultDrawingOptions();