Skip to content

London | 26-ITP-Sep | Hanna Bohlin | Sprint 1 | Form controls - #1497

Open
habohlin wants to merge 33 commits into
CodeYourFuture:mainfrom
habohlin:form-controls
Open

London | 26-ITP-Sep | Hanna Bohlin | Sprint 1 | Form controls#1497
habohlin wants to merge 33 commits into
CodeYourFuture:mainfrom
habohlin:form-controls

Conversation

@habohlin

Copy link
Copy Markdown

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

Task code

CYF-1004

Changelist

Create a form allowing users to request a t-shirt. The form asks for their name, email, t-shirt colour and size. The form uses sematntic html for structure, and css for styling.

@netlify

netlify Bot commented Sep 11, 2026

Copy link
Copy Markdown

Deploy Preview for cyf-onboarding-module ready!

Name Link
🔨 Latest commit 8038128
🔍 Latest deploy log https://app.netlify.com/projects/cyf-onboarding-module/deploys/6aa7f2833f2add0008f47735
😎 Deploy Preview https://deploy-preview-1497--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.

@habohlin habohlin 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 labels Sep 11, 2026

@abdishakoor-dev abdishakoor-dev 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.

All the requirements are met and the form works. Good commits too, small and clearly named.

One thing to sort before I mark this Complete: Prettier fails on both files. In index.html lines 52 to 88 are indented one level too deep, and styles.css uses a different indent width. Run npx prettier --write Form-Controls from the repo root and push.

I've left a few questions inline, none of them blockers. Add the Needs Review label again once you've pushed.

Comment thread Form-Controls/index.html Outdated
*I commit often and push regularly to GitHub
-->

<fieldset id="customer-info">

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.

Everything from here to line 88 is one indent level deeper than the rest of the form. That's what Prettier is flagging. Running the formatter will fix it.

Comment thread Form-Controls/index.html Outdated
</fieldset>
<fieldset id="tshirt-info">
<legend>T-shirt info</legend>
<p>Choose a colour:</p>

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.

A <p> doesn't connect this text to the three radio buttons for a screen reader. You've already used fieldset and legend above for the same job. Would that work here?

Comment thread Form-Controls/index.html Outdated
</div>
<label for="size">Choose a size:</label>
<select name="size" id="size" required>
<option label="choose"></option>

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.

Works, the value is empty so required kicks in. Why label="choose" rather than putting the text between the tags, like the MDN examples from the prep?

Comment thread Form-Controls/index.html Outdated
<!--
try writing out the requirements first as comments
this will also help you fill in your PR message later-->
<!-- Learning objectives

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.

This was a useful checklist while you worked, but it's the README pasted into the page. Does it need to be here now it's all done? Comments in the code are for whoever reads the code later. A checklist like this belongs in the PR description.

Comment thread Form-Controls/styles.css Outdated
margin: 7px;
}

section {

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.

There's no <section> in the page any more, you changed it to a div. What is this rule styling?

@abdishakoor-dev abdishakoor-dev 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 Sep 14, 2026
@habohlin habohlin added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Sep 14, 2026

@abdishakoor-dev abdishakoor-dev 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.

Prettier passes on both files now, the checklist comment is gone and the stylesheet rule matches the element. Marking this Complete.

The two questions I left on the colour heading and the size placeholder option are still worth a think for next time, but nothing more is needed here.

@abdishakoor-dev abdishakoor-dev 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. labels Sep 14, 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. 📅 Sprint 1 Assigned during Sprint 1 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants