Skip to content
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

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

Samunta
Copy link

@Samunta Samunta commented Jan 26, 2025

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Copy link

netlify bot commented Jan 26, 2025

Deploy Preview for cyf-onboarding-module ready!

Name Link
🔨 Latest commit f72b481
🔍 Latest deploy log https://app.netlify.com/sites/cyf-onboarding-module/deploys/679a261211de1100087e1598
😎 Deploy Preview https://deploy-preview-218--cyf-onboarding-module.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 100 (no change from production)
Accessibility: 93 (🔴 down 7 from production)
Best Practices: 100 (no change from production)
SEO: 90 (🟢 up 4 from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@Samunta Samunta added the Needs Review Participant to add when requesting review label Jan 26, 2025
@Samunta
Copy link
Author

Samunta commented Jan 26, 2025

Screenshot 2025-01-26 at 20 30 28

</select>
</p>
<p>
<label for="number">Please input quantity you would like to order:<strong><a aria-label="required">*</a></strong></label>

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.

Copy link
Author

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

<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>

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.

Copy link
Author

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.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

As an example it should look like this.

You can give each field a title, to communicate with users.

Copy link
Author

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.

</p>
<p>
<label for="email">Email:<strong><a aria-label="required">*</a></strong>
<input type="email" id="email" name="email" placeholder="Email Address" required>

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.

Copy link
Author

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.

@Waldo-Strydom
Copy link

Please add your cohort name e.g South Africa to your PR Titles.

@Waldo-Strydom Waldo-Strydom added 👀 Review Requirements Changes requested to meet requirements Reviewed Volunteer to add when completing a review and removed Needs Review Participant to add when requesting review labels Jan 28, 2025
@Samunta Samunta changed the title ITP Jan 2025| Samunta Sunuwar |Module Onboarding | Form Controls|WEEK 2 ITP London Jan 2025| Samunta Sunuwar |Module Onboarding | Form Controls|WEEK 2 Jan 28, 2025
@Samunta Samunta added Needs Review Participant to add when requesting review and removed Reviewed Volunteer to add when completing a review labels Jan 28, 2025
@Samunta Samunta linked an issue Jan 28, 2025 that may be closed by this pull request
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👀 Review Requirements Changes requested to meet requirements Needs Review Participant to add when requesting review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

03 Form Controls 03 Form Controls
2 participants