From 91bc1a3e2dfc70f6995c39c6f7399fd641a22268 Mon Sep 17 00:00:00 2001 From: abaevbog Date: Fri, 12 Apr 2024 04:53:35 -0400 Subject: [PATCH] vpat 6: aria labels for buttons in item/context panes (#3957) Added aria labels and button roles for buttons in the item/Collection pane. This includes buttons in the header as well as rows from notes, related, collections, and attachments section that act as buttons. Also added missing aria-labelledby for mini-itembox rows below attachment preview to have filename, dateModified and etc. properly labelled. This also covers most of vpat 16. This does not affect how tags/header/itemBox entries are announced. There is a separate issue with NVDA and JAWS sometimes struggling with announcing text inside of `editable-text` component, so this will be handled separately. --- .../content/zotero/elements/attachmentBox.js | 10 ++++----- .../zotero/elements/attachmentPreviewBox.js | 2 +- .../content/zotero/elements/attachmentRow.js | 6 +++-- .../content/zotero/elements/attachmentsBox.js | 2 +- .../zotero/elements/collapsibleSection.js | 3 +++ .../elements/librariesCollectionsBox.js | 5 ++++- chrome/content/zotero/elements/notesBox.js | 3 +++ chrome/content/zotero/elements/relatedBox.js | 3 +++ chrome/locale/en-US/zotero/zotero.ftl | 22 +++++++++++++++++++ 9 files changed, 46 insertions(+), 10 deletions(-) diff --git a/chrome/content/zotero/elements/attachmentBox.js b/chrome/content/zotero/elements/attachmentBox.js index 8ecf27fd8e..819240c5ff 100644 --- a/chrome/content/zotero/elements/attachmentBox.js +++ b/chrome/content/zotero/elements/attachmentBox.js @@ -32,7 +32,7 @@ content = MozXULElement.parseXULToFragment(` - +