mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
[Editor] Improve a11y for newly added element (#15109)
- In the annotationEditorLayer, reorder the editors in the DOM according the position of the elements on the screen; - add an aria-owns attribute on the "nearest" element in the text layer which points to the added editor.
This commit is contained in:
parent
ad15532235
commit
624b26e1de
15 changed files with 467 additions and 96 deletions
|
@ -83,6 +83,9 @@ const DEFAULT_L10N_STRINGS = {
|
|||
"Web fonts are disabled: unable to use embedded PDF fonts.",
|
||||
|
||||
free_text_default_content: "Enter text…",
|
||||
editor_free_text_aria_label: "FreeText Editor",
|
||||
editor_ink_aria_label: "Ink Editor",
|
||||
editor_ink_canvas_aria_label: "User-created image",
|
||||
};
|
||||
|
||||
function getL10nFallback(key, args) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue