mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
[Editor] Fix the role of the different editors in order to make them interactive elements (bug 1953290)
Having some interactive elements forces the screen readers to switch to form mode and consequently they delegate the keyboard stuff to the browser. This patch sets an aria label on each editor in order to have a better description than just 'application'.
This commit is contained in:
parent
bec6287b0a
commit
7fce3eac93
9 changed files with 41 additions and 35 deletions
|
@ -361,9 +361,7 @@ describe("Stamp Editor", () => {
|
|||
await page.click(saveButtonSelector);
|
||||
|
||||
// Check that the canvas has an aria-describedby attribute.
|
||||
await page.waitForSelector(
|
||||
`${editorSelector} canvas[aria-describedby]`
|
||||
);
|
||||
await page.waitForSelector(`${editorSelector}[aria-describedby]`);
|
||||
|
||||
// Wait for the alt-text button to have the correct icon.
|
||||
await page.waitForSelector(`${buttonSelector}.done`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue