Skip to content

London | 26-ITP-MAY | Chinwe Chukwuma | Sprint 1 | Form Controls#1392

Open
ChinweP wants to merge 17 commits into
CodeYourFuture:mainfrom
ChinweP:feature/form-controls
Open

London | 26-ITP-MAY | Chinwe Chukwuma | Sprint 1 | Form Controls#1392
ChinweP wants to merge 17 commits into
CodeYourFuture:mainfrom
ChinweP:feature/form-controls

Conversation

@ChinweP
Copy link
Copy Markdown

@ChinweP ChinweP commented Jun 1, 2026

Learners, PR Template

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

I created a branch for this project called (features/form-controls). I built an HTML form for ordering T‑shirts that collects the customer’s full name, email address, colour choice, and size. I ensured the form meets the assignment requirements for form controls and validation by adding labels to all inputs to improve accessibility and using semantic structure such as fieldset and legend for grouped inputs. I styled the form and moved the style block into the head to pass W3C validation and Lighthouse accessibility checks. I also made several adjustments to the name and email labels to ensure the form's Lighthouse accessibility check is a 100.

@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 1, 2026

Deploy Preview for cyf-onboarding-module ready!

Name Link
🔨 Latest commit f45878f
🔍 Latest deploy log https://app.netlify.com/projects/cyf-onboarding-module/deploys/6a1de42012a0690008743a4b
😎 Deploy Preview https://deploy-preview-1392--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: 91 (🟢 up 5 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.

@github-actions

This comment has been minimized.

@ChinweP ChinweP added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 1, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 1, 2026
@ChinweP ChinweP changed the title London | 26-ITP-MAY | Chinwe Chukwuma | Sprint | Form Controls London | 26-ITP-MAY | Chinwe Chukwuma | Sprint 1 | Form Controls Jun 1, 2026
@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@ChinweP ChinweP added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 1, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 1, 2026
@ChinweP ChinweP added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 1, 2026
@Luro91 Luro91 added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Jun 3, 2026
Copy link
Copy Markdown

@Luro91 Luro91 left a comment

Choose a reason for hiding this comment

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

Well done. The functionality is correct. I have a minor comment about separating the styles

Comment thread Form-Controls/index.html
<meta name="description" content="Form for ordering T-Shirts" />
<meta name="viewport" content="width=device-width, initial-scale=1" />

<style>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

How could you separate the code for the styling from the HTML to make it easier to review (because of smaller files with separate responsibilities)

Comment thread Form-Controls/index.html
name="name"
type="text"
required
pattern=".*\S.*\S.*"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Well done on the validation

Comment thread Form-Controls/index.html
Comment on lines +70 to +75
<select id="colour" name="colour" required>
<option value="">Select Your Colour</option>
<option value="Burgundy">Burgundy</option>
<option value="Purple">Purple</option>
<option value="Yellow">Yellow</option>
</select>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

FYI: I would switch around the form types. Radio buttons are good if there are not to many options to choose from. Space on a web page is precious and for inputs with a lot of options a dropdown can save a lot of space. (You don't need to change anything. This is just an information on the different input types)

@Luro91 Luro91 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. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants