mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-25 16:11:19 +01:00
add aria-label to tag input
This commit is contained in:
@@ -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"
|
||||
}
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user