Skip to content
This repository was archived by the owner on Oct 2, 2024. It is now read-only.

Commit a4ff50d

Browse files
authored
Merge pull request #120 from CodeYourFuture/syllabus/update-exercises
Adds task to Form exercise
2 parents 6b78f16 + 405fc97 commit a4ff50d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Form-Controls/README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ Writing that out as a series of questions to ask yourself:
2020

2121
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.
2222
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?
2526

2627
All fields are required.
2728
Do not write a form action for this project.
@@ -35,16 +36,16 @@ Let's write out our testable criteria:
3536
### HTML
3637

3738
- [ ] My form is semantic html.
38-
- [ ] My Lighthouse Accessibility score is 100.
3939
- [ ] All inputs have associated labels.
40+
- [ ] My Lighthouse Accessibility score is 100.
4041
- [ ] I require a valid name. I have defined a valid name as a text string of two characters or more.
4142
- [ ] 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.
4345
- [ ] I require one date from a constrained date range.
4446

4547
### CSS
4648

47-
- [ ] My form is usable at phone and desktop screen sizes.
4849
- [ ] I show which element is focused.
4950
- [ ] My Lighthouse Accessibility score is 100.
5051

0 commit comments

Comments
 (0)