Skip to content

Commit 2d20c24

Browse files
Merge pull request #348 from SisiVero/label-feature
Label Check Feature Added to `all.html` Inputs and Associated Labels
2 parents ba00e35 + e631755 commit 2d20c24

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/_pages/all.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,15 @@ <h2>Topic</h2>
3434
<li>
3535
<input
3636
type="checkbox"
37+
id="topic-{{ forloop.index }}"
3738
onclick="window.location.search += '&topic={{ topic.string }}';"
3839
/>
39-
<label>{{ topic.name }}</label>
40+
<label for="topic-{{ forloop.index }}">{{ topic.name }}</label>
4041
</li>
4142
{% endfor %}
4243
</ul>
4344
</article>
45+
4446

4547
<article class="resourcenav resourcenavmediumknown">
4648
<h2>Medium</h2>
@@ -65,9 +67,10 @@ <h2>Medium</h2>
6567
<li>
6668
<input
6769
type="checkbox"
70+
id="medium-{{ forloop.index }}"
6871
onclick="window.location.search += '&medium={{ medium.string }}';"
6972
/>
70-
<label>{{ medium.name }}</label>
73+
<label for="medium-{{ forloop.index }}">{{ medium.name }}</label>
7174
</li>
7275
{% endfor %}
7376
</ul>
@@ -97,9 +100,10 @@ <h2>Language</h2>
97100
<li>
98101
<input
99102
type="checkbox"
103+
id="language-{{ forloop.index }}"
100104
onclick="window.location.search += '&language={{ language.string }}';"
101105
/>
102-
<label>{{ language.name }}</label>
106+
<label for="language-{{ forloop.index }}">{{ language.name }}</label>
103107
</li>
104108
{% endfor %}
105109
</ul>

0 commit comments

Comments
 (0)