Skip to content

Commit b0acd57

Browse files
fixed some accessiblity issues
1 parent 4ac2403 commit b0acd57

2 files changed

Lines changed: 25 additions & 25 deletions

File tree

Form-Controls/index.html

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -28,61 +28,61 @@ <h1>Product Pick</h1>
2828
<div class="colorSelection">
2929
<label>Please pick a color:</label> <br>
3030
<div class="colorOption">
31-
<label>Blue</label>
32-
<div class="square" id="blueOption">
33-
<input type="radio" name="color" value="blue">
31+
<label for="blueOption">Blue</label>
32+
<div class="square" id="blueOptions">
33+
<input type="radio" name="color" id="blueOption" value="blue">
3434
</div>
3535
</div>
3636
<div class="colorOption">
37-
<label>Green</label>
38-
<div class="square" id="greenOption">
39-
<input type="radio" name="color" value="green">
37+
<label for="greenOption">Green</label>
38+
<div class="square" id="greenOptions">
39+
<input type="radio" name="color" id="greenOption"value="green">
4040
</div>
4141
</div>
4242
<div class="colorOption">
43-
<label>Red</label>
44-
<div class="square" id="redOption">
45-
<input type="radio" name="color" value="red" required>
43+
<label for="redOption">Red</label>
44+
<div class="square" id="redOptions">
45+
<input type="radio" name="color" id="redOption" value="red" required>
4646
</div>
4747
</div>
4848
</div>
4949
<div id="sizediv">
50-
<label>Please select the t-shirt size:</label> <br>
50+
<label>Please select the t-shirt size:</label> <br> .
5151
<div class="colorSelection">
5252
<div class="sizeOption">
53-
<label>XS</label>
53+
<label for="xs">XS</label>
5454
<div>
55-
<input type="radio" name="size" value="xs">
55+
<input type="radio" name="size" value="xs" id="xs">
5656
</div>
5757
</div>
5858
<div class="sizeOption">
59-
<label>S</label>
59+
<label for="s">S</label>
6060
<div>
61-
<input type="radio" name="size" value="s">
61+
<input type="radio" name="size" id="s" value="s">
6262
</div>
6363
</div>
6464
<div class="sizeOption">
65-
<label>M</label>
65+
<label for="m">M</label>
6666
<div>
67-
<input type="radio" name="size" value="m">
67+
<input type="radio" name="size" id="m" value="m">
6868
</div>
6969
</div>
7070
<div class="sizeOption">
71-
<label>L</label>
71+
<label for="l">L</label>
7272
<div>
73-
<input type="radio" name="size" value="l">
73+
<input type="radio" id="l" name="size" value="l">
7474
</div>
7575
</div>
7676
<div class="sizeOption">
77-
<label>XL</label>
77+
<label for="xl">XL</label>
7878
<div>
79-
<input type="radio" name="size" value="xl">
79+
<input type="radio" id="xl" name="size" value="xl">
8080
</div>
8181
</div>
8282
<div class="sizeOption">
83-
<label>XXL</label>
83+
<label for="sizexxl">XXL</label>
8484
<div>
85-
<input type="radio" name="size" value="xxl">
85+
<input type="radio" id ="sizexxl" name="size" value="xxl">
8686
</div>
8787
</div>
8888
</div>

Form-Controls/styles.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
width: 25px;
1818
}
1919

20-
#blueOption {
20+
#blueOptions {
2121
background-color: #180fcb;
2222
}
2323

24-
#greenOption {
24+
#greenOptions {
2525
background-color: green;
2626
}
2727

28-
#redOption {
28+
#redOptions {
2929
background-color: red;
3030
}
3131

0 commit comments

Comments
 (0)