Allow tags to be removed with the keyboard
We improved accessibility by overwriting the setIcon method in the library. Now we render a button and add the aria-label attribute.
This commit is contained in:
@@ -18,6 +18,11 @@
|
||||
}
|
||||
};
|
||||
|
||||
amsify_suggestags.setIcon = function() {
|
||||
var remove_tag_text = $(".sdg-related-list-selector .input").data("remove-tag-text");
|
||||
return '<button aria-label="' + remove_tag_text + '" class="remove-tag ' + this.classes.removeTag.substring(1) + '">✖</button>';
|
||||
};
|
||||
|
||||
amsify_suggestags._settings({
|
||||
suggestions: $(".sdg-related-list-selector .input").data("suggestions-list"),
|
||||
whiteList: true,
|
||||
|
||||
Reference in New Issue
Block a user