Skip to content

Commit 6e79bf3

Browse files
authored
Add back CSS class tags to challenge buttons (#101)
* Add back CSS class tags to challenge buttons
1 parent 4ecf9da commit 6e79bf3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

templates/challenges.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ <h3 x-text="category"></h3>
4747
<div class="col-sm-6 col-md-4 col-lg-3 my-3">
4848
<button
4949
class="challenge-button btn btn-dark w-100 h-100"
50-
:class="c.solved_by_me ? 'challenge-solved' : ''"
50+
:class="[
51+
c.solved_by_me ? 'challenge-solved' : '',
52+
...c.tags.map((tag) => `tag-${tag.value.replace(/ /g, '-')}`),
53+
];"
5154
:value="c.id" @click="loadChallenge(c.id)"
5255
>
5356

0 commit comments

Comments
 (0)