Skip to content

Commit 23190bc

Browse files
authored
Update index.html
1 parent 1e71eea commit 23190bc

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

Form-Controls/index.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ <h2 id="order-form">T-shirt Order Form</h2>
2727
minlength="2"
2828
autocomplete="name"
2929
required
30+
pattern="^(?!\s*$).+"
31+
title="Name must be at least 2 characters and not just spaces."
32+
style="min-height:48px; min-width:200px;"
3033
/>
3134
</div>
3235

@@ -39,22 +42,23 @@ <h2 id="order-form">T-shirt Order Form</h2>
3942
name="email"
4043
autocomplete="email"
4144
required
45+
style="min-height:48px; min-width:200px;"
4246
/>
4347
</div>
4448

4549
<!-- REQUIREMENT 3: Colour -->
4650
<fieldset>
4751
<legend>Choose your t-shirt colour:</legend>
4852
<div>
49-
<input type="radio" id="red" name="colour" value="red" required />
53+
<input type="radio" id="red" name="colour" value="red" required style="min-height:24px; min-width:24px;" />
5054
<label for="red">Red</label>
5155
</div>
5256
<div>
53-
<input type="radio" id="blue" name="colour" value="blue" />
57+
<input type="radio" id="blue" name="colour" value="blue" style="min-height:24px; min-width:24px;" />
5458
<label for="blue">Blue</label>
5559
</div>
5660
<div>
57-
<input type="radio" id="black" name="colour" value="black" />
61+
<input type="radio" id="black" name="colour" value="black" style="min-height:24px; min-width:24px;" />
5862
<label for="black">Black</label>
5963
</div>
6064
</fieldset>
@@ -63,7 +67,7 @@ <h2 id="order-form">T-shirt Order Form</h2>
6367
<fieldset>
6468
<legend>Choose your t-shirt size:</legend>
6569
<label for="size" class="visually-hidden">T-shirt size</label>
66-
<select id="size" name="size" required>
70+
<select id="size" name="size" required style="min-height:48px; min-width:200px;">
6771
<option value="" disabled selected>Select a size</option>
6872
<option value="XS">XS</option>
6973
<option value="S">S</option>
@@ -76,7 +80,7 @@ <h2 id="order-form">T-shirt Order Form</h2>
7680

7781
<!-- Submit button -->
7882
<div>
79-
<button type="submit" aria-label="Submit your t-shirt order">
83+
<button type="submit" aria-label="Submit your t-shirt order" style="min-height:48px; min-width:150px;">
8084
Place Order
8185
</button>
8286
</div>

0 commit comments

Comments
 (0)