From 784ccdd9964e37cb27bf40935e6b0b3f788066a8 Mon Sep 17 00:00:00 2001 From: Bogdan Abaev Date: Mon, 22 Apr 2024 22:39:55 -0400 Subject: [PATCH] vpat 57/58: classic citation editor aria fixes - vpat 57: remove tabindex values, set tabindex=0 on all focusable fields. It allows mozilla to determine the best focus sequence for keyboard navigation and fixes wrong order where some inputs would go before the "Ok" and "Cancel" buttons and some - after - vpat 58: added labels to all inputs to be announced when focused. Added separate labels for locator menulist and for the locator input so that the locator type has a proper label. It is also better to have visible explicit labels when possible --- .../integration/addCitationDialog.xhtml | 20 +++++++++++-------- chrome/locale/en-US/zotero/zotero.ftl | 2 ++ 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/chrome/content/zotero/integration/addCitationDialog.xhtml b/chrome/content/zotero/integration/addCitationDialog.xhtml index c70b71a380..2cdc39c8d9 100644 --- a/chrome/content/zotero/integration/addCitationDialog.xhtml +++ b/chrome/content/zotero/integration/addCitationDialog.xhtml @@ -96,14 +96,14 @@ - - @@ -111,14 +111,18 @@ - - + + + - + + + + - + diff --git a/chrome/locale/en-US/zotero/zotero.ftl b/chrome/locale/en-US/zotero/zotero.ftl index 71da4302d8..0839777ea6 100644 --- a/chrome/locale/en-US/zotero/zotero.ftl +++ b/chrome/locale/en-US/zotero/zotero.ftl @@ -482,6 +482,8 @@ quickformat-aria-input = Type to search for an item to include in this citation. quickformat-aria-item = Press { return-or-enter } to add this item to the citation. Press Tab to go back to the search field. quickformat-accept = .tooltiptext = Save edits to this citation +quickformat-locator-type = Locator type: +quickformat-locator-value = Locator value: insert-note-aria-input = Type to search for a note. Press Tab to navigate the list of results. Press Escape to close the dialog. insert-note-aria-item = Press { return-or-enter } to select this note. Press Tab to go back to the search field. Press Escape to close the dialog.