Skip to content

Commit

Permalink
fix aria-label
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang committed Mar 8, 2023
1 parent a1e35b4 commit 02c65fe
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions web_src/js/features/repo-home.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ export function initRepoTopicBar() {
};

function addLabelDeleteIconAria($el) {
$el.removeAttr('aria-hidden').attr({
'aria-label': topicPrompts.removeTopic.replace('%s', $el.parent().attr('data-value')),
'role': 'button',
$el.removeAttr('aria-hidden').each(function() {
$(this).attr({
'aria-label': topicPrompts.removeTopic.replace('%s', $(this).parent().attr('data-value')),
'role': 'button',
});
});
}

Expand Down

0 comments on commit 02c65fe

Please sign in to comment.