Skip to content

London | 26-ITP-Sep | Bartosz Kawiak | Sprint 1 | Form Controls - #1493

Open
bartoszkawiak wants to merge 4 commits into
CodeYourFuture:mainfrom
bartoszkawiak:feature
Open

bartoszkawiak wants to merge 4 commits into
CodeYourFuture:mainfrom
bartoszkawiak:feature

Conversation

@bartoszkawiak

@bartoszkawiak bartoszkawiak commented Sep 10, 2026

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

Added a responsive T-shirt order form using HTML and CSS, It includes validation for email and name, required color dropdown menu and size selection, also scored 100 on a lighthouse and checked HTML semantics using validator.

@netlify

netlify Bot commented Sep 10, 2026

Copy link
Copy Markdown

Deploy Preview for cyf-onboarding-module ready!

Name Link
🔨 Latest commit 39e4995
🔍 Latest deploy log https://app.netlify.com/projects/cyf-onboarding-module/deploys/6aa92cbe78b56700088dd4d2
😎 Deploy Preview https://deploy-preview-1493--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: 87 (🟢 up 1 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.

@bartoszkawiak bartoszkawiak added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 10, 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 Sep 10, 2026
@bartoszkawiak bartoszkawiak changed the title CYF-1004 | London | 01-ITP-Sep | Bartosz Kawiak | Sprint 1 | Form-Controls London | 01-ITP-Sep | Bartosz Kawiak | Sprint 1 | Form-Controls Sep 10, 2026
@bartoszkawiak bartoszkawiak added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 10, 2026
@bartoszkawiak bartoszkawiak changed the title London | 01-ITP-Sep | Bartosz Kawiak | Sprint 1 | Form-Controls London | 26-ITP-Sep | Bartosz Kawiak | Sprint 1 | Form-Controls Sep 10, 2026
@bartoszkawiak bartoszkawiak changed the title London | 26-ITP-Sep | Bartosz Kawiak | Sprint 1 | Form-Controls London | 26-ITP-Sep | Bartosz Kawiak | Sprint 1 | Form Controls Sep 10, 2026
@bartoszkawiak bartoszkawiak changed the title London | 26-ITP-Sep | Bartosz Kawiak | Sprint 1 | Form Controls London | 26-ITP-Sep | Bartosz Kawiak | Sprint 1 | Form Controls Sep 10, 2026
@bartoszkawiak bartoszkawiak added the 📅 Sprint 1 Assigned during Sprint 1 of this module label Sep 12, 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.

Most of this is in place. Name, email and size validation all work, there's a submit button, and the comment above each section saying which requirement it covers is a good habit.

Things to sort before it can be marked Complete:

  1. On the deploy preview, fill in everything else, leave the colour on "Choose here" and submit. It goes through. This is also the one error the HTML validator from the README checklist (https://validator.w3.org/) reports, on line 28. See the comment there.
  2. The stylesheet doesn't load on the deploy preview. Open it and the page is unstyled. See line 9.
  3. Formatting. Prettier fails on both files. Run npx prettier --write Form-Controls from the repo root and push.

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

Comment thread Form-Controls/index.html Outdated
<!--Color 3 options with select NO multiselect-->
<label for="colorOptions">Color</label>
<select id="colorOptions" name="color" required>
<option hidden>Choose here</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.

This option has no value attribute, so its value is its text, "Choose here". That's a non-empty value, so the browser treats it as a real choice and required is satisfied before the user does anything. Read the validator's message for this line. What does it say the placeholder option needs?

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.

Fixed. Empty value, so the browser insists on a choice now.

Comment thread Form-Controls/index.html Outdated
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="T-shirt order form, pick your product." >
<meta name="viewport" content="width=device-width, initial-scale=1" >
<link rel="stylesheet" href="/styles.css">

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.

/styles.css with a leading slash means "from the root of the site". On the deploy preview this page lives at /Form-Controls/, so the browser asks for a file that isn't there and gets a 404. How would you write the path relative to this HTML file?

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.

Loads on the preview now. Good.

Comment thread Form-Controls/index.html Outdated
</select>

<!--SIZE 6 options XS,S,M,L,XL,XXL-->
<p>Choose Size:</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> as the heading for the size radios doesn't connect the text to the buttons for a screen reader. You've used fieldset and legend for the form as a whole. Would a second one work here?

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.

Nested fieldset with its own legend, that's the one.

Comment thread Form-Controls/styles.css Outdated
}

select:focus{
/* scale: 1.1; */

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.

Commented-out code, here and on line 56. The style guide asks for these to be removed rather than left in. Git keeps the history if you want it back.

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.

Gone, good.

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

All three sorted, and you did the two optional ones as well. That's everything. Complete.

@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