Skip to content

Commit

Permalink
Use buttons instead of links for badges in leaderboard.
Browse files Browse the repository at this point in the history
  • Loading branch information
somiaj committed Dec 17, 2024
1 parent 104efda commit a672901
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/ContentGenerator/AchievementsLeaderboard.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@
% }
<td>
% for my $badge (@$badges) {
<a class="help-popup" role="button" tabindex="0"
<button class="btn btn-sm btn-link help-popup p-0" type="button" tabindex="0"
data-bs-placement="top" data-bs-toggle="popover" data-bs-html="true"
data-bs-content="<strong><%= $badge->{name} %></strong><br><%= $badge->{description} %>">
<%= image $badge->{icon}
? "$ce->{courseURLs}{achievements}/$badge->{icon}"
: "$ce->{webworkURLs}{htdocs}/images/defaulticon.png",
alt => $c->maketext('[_1] Icon', $badge->{name}),
width => 50 %>
</a>
</button>
% }
</td>
</tr>
Expand Down

0 comments on commit a672901

Please sign in to comment.