add aria-label to tag input

This commit is contained in:
Barış Soner Uşaklı
2024-02-26 13:45:18 -05:00
parent 00421e3c9c
commit e9b00e448e
2 changed files with 4 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
{
"post-sort-option": "Post sort option, %1",
"topic-sort-option": "Topic sort option, %1",
"user-avatar-for": "User avatar for %1"
"user-avatar-for": "User avatar for %1",
"user-watched-tags": "User watched tags"
}

View File

@@ -11,11 +11,12 @@ define('forum/account/tags', [
const tagEl = $('[component="tags/watch"]');
tagEl.tagsinput({
tagClass: 'badge bg-info',
tagClass: 'badge text-bg-info',
confirmKeys: [13, 44],
trimValue: true,
});
const input = tagEl.siblings('.bootstrap-tagsinput').find('input');
input.translateAttr('aria-label', '[[aria:user-watched-tags]]');
autocomplete.tag(input);
ajaxify.data.tags.forEach(function (tag) {