Manchester | 25-ITP-Sep | Fatima Rouchi | Sprint 1 | Form Controls - #1492
fatimarouchi wants to merge 12 commits into
Conversation
✅ Deploy Preview for cyf-onboarding-module ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
cjyuan
left a comment
There was a problem hiding this comment.
Note: You don't have to include the PR title in the PR description.
| <legend>T-Shirt Color</legend> | ||
| <label><input type="radio" id="red" name="tshirt-color" value="red" required>Red</label><br> | ||
| <label><input type="radio" id="blue" name="tshirt-color" value="blue" required>Blue</label><br> | ||
| <label><input type="radio" id="green" name="tshirt-color" value="green" required>Green</label><br> | ||
| </fieldset><br> | ||
|
|
||
| <!-- fieldset for tshirt size--> | ||
| <fieldset> | ||
| <legend>T-Shirt Size</legend> | ||
| <label><input type="checkbox" id="extra-small" name="tshirt-size" value="extra-small" required>XS</label><br> | ||
| <label><input type="checkbox" id="small" name="tshirt-size" value="small" required>S</label><br> | ||
| <label><input type="checkbox" id="medium" name="tshirt-size" value="medium" required>M</label><br> | ||
| <label><input type="checkbox" id="large" name="tshirt-size" value="large" required>L</label><br> | ||
| <label><input type="checkbox" id="extra-large" name="tshirt-size" value="extra-large" required>XL</label><br> | ||
| </fieldset><br> |
There was a problem hiding this comment.
-
Why use
type="radio"for T-Shirt color, andtype="checkbox"for T-Shirt size? -
Also, try using AI to find out how we could simplify the markup for radio buttons.
There was a problem hiding this comment.
Thank you for your feedback, hopefully I managed to correct the mistakes.
| <label for="name">Name:</label> | ||
| <input type="text" id="name" name="name" required pattern=".*\S.*\S.*"><br><br> | ||
|
|
||
| <!-- label for the email input --> | ||
| <label for="email">Email:</label> | ||
| <input type="email" id="email" name="email" required><br><br> |
There was a problem hiding this comment.
| <legend>T-Shirt Color</legend> | ||
| <label><input type="radio" id="red" name="tshirt-color" value="red" required>Red</label><br> | ||
| <label><input type="radio" id="blue" name="tshirt-color" value="blue" required>Blue</label><br> | ||
| <label><input type="radio" id="green" name="tshirt-color" value="green" required>Green</label><br> |
There was a problem hiding this comment.
Indentation is slightly off.
Suggestion:
- Look up the benefits of using a code formatter.
- Install the Prettier extension for VS Code, then:
- Use VS Code's Format Document feature to format your code.
- Optionally, enable Format On Save and Format On Paste to keep your code consistently formatted.
Resource: Visual Studio Code - Formatting
Note: The formatter may not work correctly if your code contains syntax errors.
| <!-- | ||
| try writing out the requirements first as comments | ||
| this will also help you fill in your PR message later--> | ||
| <form method="get"> |
There was a problem hiding this comment.
Why introduce the method="get" attribute explicitly?
There was a problem hiding this comment.
GET is useful to search or view information, VS code made me add it and then later I realised it wasn't needed.


Self checklist
CYF-1004
Changelist