-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
ITP London Jan 2025| Samunta Sunuwar |Module Onboarding | Form Controls|WEEK 2 #218
base: main
Are you sure you want to change the base?
Conversation
…h due to lighthouse score
✅ Deploy Preview for cyf-onboarding-module ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Form-Controls/index.html
Outdated
</select> | ||
</p> | ||
<p> | ||
<label for="number">Please input quantity you would like to order:<strong><a aria-label="required">*</a></strong></label> |
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.
Quantity is not on the brief. Please remove it.
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.
Hi Waldo, thank you for your feedback, I have removed this
Form-Controls/index.html
Outdated
<legend>Customer Details</legend> | ||
<p> | ||
<label for="name">Name:<strong><a aria-label="required">*</a></strong> | ||
<input type="text" id="name" name="name" placeholder="Full Name" minlength="3" required> |
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.
You need to require at least 2 characters for the name field.
You also need to inform the user that their input is incorrect.
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.
@Waldo-Strydom Hi, thank you for the feedback. I have set the minlength to 2.
Please could you elaborate your second feedback "You also need to inform the user that their input is incorrect." I believe I have used correct validation for the form type="text" for Name and type="email" for email address. I am not sure how I can inform user their input is incorrect apart from using validation with HTML. Can you please point me in the direction of how I can achieve this.
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.
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.
Thank you for your advice, I have added the title attribute now. Please could you review.
Form-Controls/index.html
Outdated
</p> | ||
<p> | ||
<label for="email">Email:<strong><a aria-label="required">*</a></strong> | ||
<input type="email" id="email" name="email" placeholder="Email Address" required> |
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.
You also need to inform the user that their input is incorrect.
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.
Thank you for your advice, I have added the title attribute now. Please could you review.
Please add your cohort name e.g South Africa to your PR Titles. |
Self checklist