Skip to content

London | 26-ITP-MAY | Khaliun Baatarkhuu | Sprint 1 | Form Controls #1431

Open
khaliun-dev wants to merge 6 commits into
CodeYourFuture:mainfrom
khaliun-dev:feature/form-controls
Open

London | 26-ITP-MAY | Khaliun Baatarkhuu | Sprint 1 | Form Controls #1431
khaliun-dev wants to merge 6 commits into
CodeYourFuture:mainfrom
khaliun-dev:feature/form-controls

Conversation

@khaliun-dev

@khaliun-dev khaliun-dev commented Jun 8, 2026

Copy link
Copy Markdown

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

  • wrote a form that requires name, email, sizes and colours
  • tested my commits with Devtools
  • indented the code properly for easier reading

Questions

None so far

Added form fields for customer name and email with validation requirements.
Updated T-shirt size selection options and footer name.
Added CSS styles for form layout and elements.
@netlify

netlify Bot commented Jun 8, 2026

Copy link
Copy Markdown

Deploy Preview for cyf-onboarding-module ready!

Name Link
🔨 Latest commit 141e0bc
🔍 Latest deploy log https://app.netlify.com/projects/cyf-onboarding-module/deploys/6a27bc69d2f4d40007f2c192
😎 Deploy Preview https://deploy-preview-1431--cyf-onboarding-module.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
2 paths audited
Performance: 100 (no change from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 86 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

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

@khaliun-dev khaliun-dev added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 📅 Sprint 1 Assigned during Sprint 1 of this module Module-Onboarding The name of the module. labels Jun 8, 2026
@khaliun-dev khaliun-dev marked this pull request as draft June 8, 2026 21:01
@khaliun-dev khaliun-dev marked this pull request as ready for review June 8, 2026 21:09

@cjyuan cjyuan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Form looks good. Code is well formatted and error free. Well done.

Can you address the comments left on the name input field?

Comment thread Form-Controls/index.html
Comment on lines +55 to +61
<input
type="text"
id="name"
name="name"
pattern=".*\S{2,}.*"
required
/>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

  • When the user input is rejected, the browser shows "Please match the requested format" but it is not clear what the requested format is. Can you make it clearer to the user what format should a name be?

  • Should a name such as "C J" (with a space between two alphabets) be considered a name containing at least two non-space characters?

Comment thread Form-Controls/index.html
<legend>Choose a Colour</legend>

<input type="radio" id="red" name="colour" value="red" required>
<label for="red">Red</label>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Note: Here's is an alternate markup that does not involve "id" and "for" attributes.

        <label>
          <input type="radio" name="colour" value="red" required>
          Red
        </label>

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Ok, understood. The input is inside the label attribute, making it easier to read and needing less code.

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jun 8, 2026
- Added "title" attribute to make it clearer for the user.

- Changed  "pattern=".*\S{2,}.*" to "pattern=".*\S.*\S.*", because the former might not accept C J due to it being non consecutive.
@khaliun-dev khaliun-dev added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 9, 2026
@cjyuan

cjyuan commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Changes look good. Well done.

@cjyuan cjyuan added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Reviewed Volunteer to add when completing a review with trainee action still to take. labels Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed. Module-Onboarding The name of the module. 📅 Sprint 1 Assigned during Sprint 1 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants