Skip to content

Commit 02c65fe

Browse files
committed
fix aria-label
1 parent a1e35b4 commit 02c65fe

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

web_src/js/features/repo-home.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ export function initRepoTopicBar() {
2222
};
2323

2424
function addLabelDeleteIconAria($el) {
25-
$el.removeAttr('aria-hidden').attr({
26-
'aria-label': topicPrompts.removeTopic.replace('%s', $el.parent().attr('data-value')),
27-
'role': 'button',
25+
$el.removeAttr('aria-hidden').each(function() {
26+
$(this).attr({
27+
'aria-label': topicPrompts.removeTopic.replace('%s', $(this).parent().attr('data-value')),
28+
'role': 'button',
29+
});
2830
});
2931
}
3032

0 commit comments

Comments
 (0)