Skip to content

London | 26-ITP-Sep | Diana Ausiejute | Sprint 1 | Form Controls - #1523

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

ausiejute wants to merge 6 commits into
CodeYourFuture:mainfrom
ausiejute:feature/form-controls

Conversation

@ausiejute

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

Task Code

CYF-1004

Changelist

I created an HTML form for ordering a T-shirt. It collects the following data: customer's name, email, t-shirt colour and size.

@netlify

netlify Bot commented Sep 14, 2026

Copy link
Copy Markdown

Deploy Preview for cyf-onboarding-module ready!

Name Link
🔨 Latest commit 22f5729
🔍 Latest deploy log https://app.netlify.com/projects/cyf-onboarding-module/deploys/6aa927893f47f20008f94d40
😎 Deploy Preview https://deploy-preview-1523--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: 84 (🔴 down 2 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.

@ausiejute ausiejute 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 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.

Nearly there.

What you did well: name, email and size are all validated the way the task asks, the colour radios sit in a fieldset with a legend, the validator is clean and Prettier passes. Tidy commits too, one per section.

One thing to sort before I mark this Complete: on the deploy preview, fill in everything except a colour and press Submit. It goes through. See line 29.

Add the Needs Review label again once you've pushed.

Comment thread Form-Controls/index.html Outdated

<fieldset>
<legend>T-shirt Color</legend>
<input type="radio" id="blue" name="color" value="B" />

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.

Pick no colour and submit: the form goes through. You've already handled this on the size dropdown on line 41. What's different about these three radios?

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.

fixed it

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.

That's it. One required covers the whole group of radios that share the name.

Comment thread Form-Controls/index.html
name="name"
pattern=".*\S.*\S.*"
required
/><br /><br />

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.

Not a blocker: the <br /> tags are only here for spacing. What would you reach for instead of line breaks to control spacing, once the form works?

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.

Definitely CSS margin or padding

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.

Yes. Margin or padding in CSS, whenever you next style a form.

@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 15, 2026
@ausiejute ausiejute added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 15, 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.

The form no longer submits without a colour, so all four fields are validated. Nothing left to do, marking this Complete. Well done Diana.

@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. Reviewed Volunteer to add when completing a review with trainee action still to take. labels Sep 15, 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