Skip to content

WestMidlands | 26-ITP-Jan | Adedolapo Bamiduro | Sprint 2 | Form Controls#1127

Open
codebydolz wants to merge 1 commit intoCodeYourFuture:mainfrom
codebydolz:form-controls-adedolapo2
Open

WestMidlands | 26-ITP-Jan | Adedolapo Bamiduro | Sprint 2 | Form Controls#1127
codebydolz wants to merge 1 commit intoCodeYourFuture:mainfrom
codebydolz:form-controls-adedolapo2

Conversation

@codebydolz
Copy link

@codebydolz codebydolz commented Feb 3, 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

added the needed answers to form controls

@netlify
Copy link

netlify bot commented Feb 3, 2026

Deploy Preview for cyf-onboarding-module ready!

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

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

@github-actions

This comment has been minimized.

@codebydolz codebydolz added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 3, 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 Feb 3, 2026
@codebydolz codebydolz changed the title WestMidlands | 26-ITP-Jan | Adedolapo Bamiduro | Form Controls WestMidlands | 26-ITP-Jan | Adedolapo Bamiduro | Sprint 2 | Form Controls Feb 3, 2026
@github-actions

This comment has been minimized.

@Poonam-raj Poonam-raj added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 3, 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 Feb 3, 2026
@codebydolz codebydolz added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 3, 2026
Copy link
Contributor

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

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

  • According to https://validator.w3.org/, there are some warnings in your code. Can you address them?

  • Currently a user can submit the form without filling in all input.

  • Common practice is to keep the label of a radio button on the right (instead of at the bottom)

Image
  • Note: Embedded CSS is still CSS. Supposedly the requirement says "No CSS", but you can keep them.

try writing out the requirements first as comments
this will also help you fill in your PR message later-->
<main id="main-content">
<form action="results.html" method="get">
Copy link
Contributor

Choose a reason for hiding this comment

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

For testing, we could set the action value to "#" so that the form data is sent to the URL of this page.

Comment on lines +51 to +58
<select name="size" id="size">
<option value="XS">Extra Small</option>
<option value="S">Small</option>
<option value="M">Medium</option>
<option value="L">Large</option>
<option value="XL">Extra Large</option>
<option value="XXL">Extra Extra Large</option>
</select>
Copy link
Contributor

Choose a reason for hiding this comment

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

There is a way to configure a <select> element so that no option is selected by default, allowing the user to make an explicit choice.

Comment on lines +64 to +65
<input type="radio" name="color" id="color-blue" value="Blue">
<label for="color-blue">Blue</label>
Copy link
Contributor

Choose a reason for hiding this comment

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

We won't need to use id and for if we encode this as:

<label>
  <input type="radio" name="color" value="Blue">
  Blue
</label>

Comment on lines +77 to +80
<div class="form-row">
<label for="password">Password</label>
<input type="password" name="password" id="password" required aria-required="true">
</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

I am glad that you are trying different things, but I think it is weird to include a password input field in a T-shirt ordering form. :)

@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 Feb 6, 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.

3 participants