Skip to content

London | 2-ITP-Sept | Hugh Mills| Sprint 1 | Form Controls - #1473

Open
HM-127BTY wants to merge 8 commits into
CodeYourFuture:mainfrom
HM-127BTY:feature/form-controls
Open

London | 2-ITP-Sept | Hugh Mills| Sprint 1 | Form Controls#1473
HM-127BTY wants to merge 8 commits into
CodeYourFuture:mainfrom
HM-127BTY:feature/form-controls

Conversation

@HM-127BTY

@HM-127BTY HM-127BTY commented Sep 7, 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

CYF-1004

Added in code as instructed in the readme.md for Form Control.
added requirements for Name, Email, Colour and Size.
Added input buttons for Submit and Reset
Changed text at end to have my name.

@netlify

netlify Bot commented Sep 7, 2026

Copy link
Copy Markdown

Deploy Preview for cyf-onboarding-module ready!

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

@github-actions

This comment has been minimized.

@HM-127BTY HM-127BTY added 📅 Sprint 1 Assigned during Sprint 1 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Sep 7, 2026
@Luro91 Luro91 added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Sep 10, 2026
Comment thread Form-Controls/index.html

@Luro91 Luro91 Sep 10, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The lighthouse Accessibility score is below 100. How can you achieve 100?

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.

I see, i didn't have the labels matching id's on it, fixed that now.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I see a different problem in lighthouse now: "Touch targets with sufficient size and spacing help users who may have difficulty targeting small controls to activate the targets"

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 this by spacing them out with
and spaced out the submit and reset buttons with text ---

Comment thread Form-Controls/index.html Outdated
<form>
<div>
<label for="name">Name:</label>
<input type="text" id="name" placeholder="Hugh Mills" pattern=".*\S.*\S.*." required>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The validation does not allow special characters like the German ä,ü,ö or Russian ед

@HM-127BTY HM-127BTY Sep 10, 2026

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.

I didn't use any of those, and I can't see any text input that matches those, can you point it out for me?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

When I enter this string Är as name then it does not pass the validation although it is 2 characters

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.

Är would not work as it is one word when the input needs at least 2, it does also accept special characters as inputting "Är Är" works.

When checking it if "Ä r" it wasn't taking that but was taking "Ä Ä", checked it and seen that the pattern=".\S.\S.*." had an extra . by mistake and removed that.

Comment thread Form-Controls/index.html Outdated
<label for="size">XL:</label>
<input type="radio" name="size" value="xl">
<label for="size">XXL:</label>
<input type="radio" name="size" value="xxl">

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 change 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)

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.

Thanks for the suggestion, ill have a look into that

@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 Sep 10, 2026
@HM-127BTY HM-127BTY added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 10, 2026
@Luro91 Luro91 removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 11, 2026
@HM-127BTY HM-127BTY added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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. 📅 Sprint 1 Assigned during Sprint 1 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants