add aria-label to tag edit fields (#4231)

This commit is contained in:
Bogdan Abaev 2024-06-18 10:17:27 -04:00 committed by Dan Stillman
parent a73035c848
commit 16a5b5b6bc
2 changed files with 5 additions and 0 deletions

View file

@ -264,6 +264,7 @@
valueElement.setAttribute('flex', 1); valueElement.setAttribute('flex', 1);
valueElement.setAttribute('nowrap', true); valueElement.setAttribute('nowrap', true);
valueElement.setAttribute('tight', true); valueElement.setAttribute('tight', true);
document.l10n.setAttributes(valueElement, "tag-field");
valueElement.className = 'zotero-box-label'; valueElement.className = 'zotero-box-label';
valueElement.readOnly = !this.editable; valueElement.readOnly = !this.editable;
valueElement.value = valueText; valueElement.value = valueText;

View file

@ -11,6 +11,7 @@ general-remind-me-later = Remind Me Later
general-choose-file = Choose File… general-choose-file = Choose File…
general-open-settings = Open Settings general-open-settings = Open Settings
general-help = Help general-help = Help
general-tag = Tag
menu-file-show-in-finder = menu-file-show-in-finder =
.label = Show in Finder .label = Show in Finder
@ -516,6 +517,9 @@ expand-all-sections =
abstract-field = abstract-field =
.placeholder = Add abstract… .placeholder = Add abstract…
tag-field =
.aria-label = { general-tag }
tagselector-search = tagselector-search =
.placeholder = Filter Tags .placeholder = Filter Tags