You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 2, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: Form-Controls/README.md
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -20,8 +20,9 @@ Writing that out as a series of questions to ask yourself:
20
20
21
21
1. What is the customer's name? I must collect this data, and validate it. But what is a valid name? I must decide something.
22
22
2. What is the customer's email? I must make sure the email is valid. Email addresses have a consistent pattern.
23
-
3. What colour should this t-shirt be? I must give three options. How will I make sure they don't pick other colours?
24
-
4. When do they want the t-shirt to be delivered? I must collect a date and make sure that date is in the next four weeks. How will I do this? How will I make sure there are no mistakes about the date?
23
+
3. What colour should this t-shirt be? I must give 3 options. How will I make sure they don't pick other colours?
24
+
4. What size does the customer want? I must give the following 6 options: XS, S, M, L, XL, XXL
25
+
5. When do they want the t-shirt to be delivered? I must collect a date and make sure that date is in the next four weeks. How will I do this? How will I make sure there are no mistakes about the date?
25
26
26
27
All fields are required.
27
28
Do not write a form action for this project.
@@ -35,16 +36,16 @@ Let's write out our testable criteria:
35
36
### HTML
36
37
37
38
-[ ] My form is semantic html.
38
-
-[ ] My Lighthouse Accessibility score is 100.
39
39
-[ ] All inputs have associated labels.
40
+
-[ ] My Lighthouse Accessibility score is 100.
40
41
-[ ] I require a valid name. I have defined a valid name as a text string of two characters or more.
41
42
-[ ] I require a valid email.
42
-
-[ ] I require one colour from a defined set of three colours.
43
+
-[ ] I require one colour from a defined set of 3 colours.
44
+
-[ ] I require one size from a defined set of 6 sizes.
43
45
-[ ] I require one date from a constrained date range.
44
46
45
47
### CSS
46
48
47
-
-[ ] My form is usable at phone and desktop screen sizes.
0 commit comments