-
-
Notifications
You must be signed in to change notification settings - Fork 413
London | 26-ITP-Jan | Johnny Vargas | Sprint 2 | Form-Controls #1029
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for cyf-onboarding-module ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
cjyuan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codes looks great.
Currently a user can enter a name consisting of only space characters (e.g., " "). Can you enforce a stricter validation rule using the pattern attribute to disallow any name that contains only space characters?
|
@cjyuan Thank you for the review. I have made the change, is it good now? |
|
I believe the current validation error is due to #1099 and is not my fault? |
|
Changes look good. With that pattern, can a user enter a name with one letter follows by one space? (Just checking your understanding, no change needed) |
|
@cjyuan Thanks again! And yes, they can since I understand no change was needed but I did it anyway and seems to work well on my end. |
|
Good work. The next challenge would be to understand the meaning of the regular expression To further improve the accessibility and user friendliness on the form, we can provide a custom description of the rule imposed on the input field (e.g., name must contains at least two letters). Without this custom message, the browser will only show something like "Please match the requested format". I am just suggesting possible directions. No change needed. |

Learners, PR Template
Self checklist
Changelist
Added form to collect the user's name, email, desired colour of t-shirt and size.
It validates the information that is submitted into it and all fields are required as requested.
Changed footer to my name.
Questions
None at this time.