1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 14:48:08 +02:00

[Editor] Set an aria-description for an added signature (bug 1956513)

NVDA behaves differently depending if the user is hovering or focusing an added signature.
An aria-description is read in both cases while an aria-label is not.
This commit is contained in:
Calixte Denizet 2025-03-27 18:14:02 +01:00
parent 2da54ffb59
commit 7d8c64b2ff
3 changed files with 24 additions and 6 deletions

View file

@ -184,9 +184,9 @@ describe("Signature Editor", () => {
`.altText.editDescription[title="Hello World"]`
);
// Check the aria label.
// Check the aria description.
await page.waitForSelector(
`${editorSelector}[aria-description="Hello World"]`
`${editorSelector}[aria-description="Signature editor: \u2068Hello World\u2069"]`
);
// Edit the description.