Manchester | 26-ITP-Sep | Rahana Suleiman | Sprint 1 | Form Controls - #1508
rahanasuleiman8-ship-it wants to merge 11 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.
8 similar comments
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.
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.
| try writing out the requirements first as comments | ||
| this will also help you fill in your PR message later--> | ||
|
|
||
| <!-- TODO1: Customer name --> |
There was a problem hiding this comment.
It's good to write out your TODOs in comments as you're going along, but anything that is used as a tool for development can be removed once that development is done! Same applies to the other comments too 🙂
| required | ||
| pattern=".*\S.*\S.*" | ||
| /> | ||
| <br><br> |
There was a problem hiding this comment.
I can see you've used br a lot here to create space between the different form elements. This is a neat trick, but is actually not what it is supposed to be used for. To quote MDN:
The
<br>element has a single, well-defined purpose — to create a line break in a block of text.
If you are adding spacing between elements on a page, that's exactly what CSS is for. Shortcuts like this can seem useful but they run the risk of causing unexpected confusion for assistive technologies when used out of place!
Note: styling is not required for this task. I'm not going to require you to change anything on this point, but bear in mind for future that you should avoid using br tags for this reason 🙂
| <option value="navy">Navy</option> | ||
| <option value="sage green">Sage Green</option> | ||
| <option value="charcoal">Charcoal</option> |
There was a problem hiding this comment.
I love the creative choices of colours! 😄
|
Hey @rahanasuleiman8-ship-it! Good work on this first PR. All the form validation works exactly as intended, and I like the good practice of your git commit history too: avoiding committing everything in one go and writing meaningful messages! A very minor point: using commit messages are written in the future tense - you can imagine saying the words "this commit will..." followed by your message. So instead of The only change I want you to make before I mark it as complete is getting rid of the TODO comments in the HTML. It's no longer todo - it's done! You may also want to explore the CSS alternatives to using |

Learners, PR Template
Self checklist
[x] I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
[x] My changes meet the requirements of the task
[x] I have tested my changes
[x] My changes follow the style guide
Task code
CYF-1004
Changelist
Built a semantic HTML form to collect T-shirt order details without using JavaScript.
Added a required name input featuring the regex pattern
.*\S.*\S.*to enforce a minimum of two non-space characters.Included a required email input field.
Added a required colour dropdown with the 3 required colour options.
Added a required size dropdown with the 6 required sizes: XS, S, M, L, XL, and XXL.