From 16a5b5b6bc122a69eb161f72648c3ba65025fa47 Mon Sep 17 00:00:00 2001 From: Bogdan Abaev Date: Tue, 18 Jun 2024 10:17:27 -0400 Subject: [PATCH] add aria-label to tag edit fields (#4231) --- chrome/content/zotero/elements/tagsBox.js | 1 + chrome/locale/en-US/zotero/zotero.ftl | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/chrome/content/zotero/elements/tagsBox.js b/chrome/content/zotero/elements/tagsBox.js index 892697d487..b7e6974923 100644 --- a/chrome/content/zotero/elements/tagsBox.js +++ b/chrome/content/zotero/elements/tagsBox.js @@ -264,6 +264,7 @@ valueElement.setAttribute('flex', 1); valueElement.setAttribute('nowrap', true); valueElement.setAttribute('tight', true); + document.l10n.setAttributes(valueElement, "tag-field"); valueElement.className = 'zotero-box-label'; valueElement.readOnly = !this.editable; valueElement.value = valueText; diff --git a/chrome/locale/en-US/zotero/zotero.ftl b/chrome/locale/en-US/zotero/zotero.ftl index 55ee8cd382..b6567ca795 100644 --- a/chrome/locale/en-US/zotero/zotero.ftl +++ b/chrome/locale/en-US/zotero/zotero.ftl @@ -11,6 +11,7 @@ general-remind-me-later = Remind Me Later general-choose-file = Choose File… general-open-settings = Open Settings general-help = Help +general-tag = Tag menu-file-show-in-finder = .label = Show in Finder @@ -516,6 +517,9 @@ expand-all-sections = abstract-field = .placeholder = Add abstract… +tag-field = + .aria-label = { general-tag } + tagselector-search = .placeholder = Filter Tags