Glasgow | 26-ITP-May | Chan Yat Long | Sprint 1 | Form Control - #1310
Glasgow | 26-ITP-May | Chan Yat Long | Sprint 1 | Form Control #1310Motorcycle-lab wants to merge 6 commits into
Conversation
✅ Deploy Preview for cyf-onboarding-module ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
| try writing out the requirements first as comments | ||
| this will also help you fill in your PR message later--> | ||
| <label for="user-name">Your Name:</label> | ||
| <input id="user-name" name="user-name" type="text" pattern="[A-Za-z\s\-]{2,}" title="Please enter at least 2 letters. Numbers and symbols are not allowed" required> |
There was a problem hiding this comment.
Pattern validation works for 2 or more names - good work
|
|
||
| <label for="colors">Choose your favorite color:</label> | ||
| <select id="colors" name="colour" required> | ||
| <option value="" disabled selected>Select a color...</option> |
There was a problem hiding this comment.
nice choice to disable the first option
| <option value="xxl">XXL</option> | ||
| </select> | ||
|
|
||
| <button id="go" type="submit"> Submit |
There was a problem hiding this comment.
I reckon the ID attribute could be something relating to the action like 'form-submit'
Poonam-raj
left a comment
There was a problem hiding this comment.
Accessibility is 100 ✅
Thank you for cleaning up this branch so it only contains form controls work 🎉
Great work - fulfilling the requirements, only one suggestion about the id of the submit button but this work is complete overall
|
Closing PR because the May ITP run has finished. Feel free to re-open if you're still working on it. |

Self checklist
Change list
I have put the button before the closing tag.
I have added a name
I have changed my branch of main into a different branch of form control to prevent polluting into the main branch in the future.
Questions
I am just correcting the code based on feedback.