Skip to content

Conversation

@asaniDev
Copy link

@asaniDev asaniDev commented Oct 4, 2025

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

Sprint 2 task, created a form to given specifications with only html and ran it in lighthouse then made adjustments as suggested by lighthouse to make accessibility 100%.

@netlify
Copy link

netlify bot commented Oct 4, 2025

Deploy Preview for cyf-onboarding-module ready!

Name Link
🔨 Latest commit 4b89c84
🔍 Latest deploy log https://app.netlify.com/projects/cyf-onboarding-module/deploys/68e46e6e65ca93000835484c
😎 Deploy Preview https://deploy-preview-889--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

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

@github-actions
Copy link

github-actions bot commented Oct 4, 2025

Your PR's title isn't in the expected format.

Please check the expected title format, and update yours to match.

Reason: Wrong number of parts separated by |s

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

@asaniDev asaniDev added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Oct 4, 2025
@github-actions
Copy link

github-actions bot commented Oct 4, 2025

Your PR's title isn't in the expected format.

Please check the expected title format, and update yours to match.

Reason: Wrong number of parts separated by |s

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

@asaniDev asaniDev changed the title West-Midlands | September-2025 | Mustaf Asani | Form-Controls West-Midlands | ITP-September-2025 | Mustaf Asani | Sprint-2 | Form-Controls Oct 4, 2025
@github-actions
Copy link

github-actions bot commented Oct 4, 2025

Your PR's title isn't in the expected format.

Please check the expected title format, and update yours to match.

Reason: Sprint part (Sprint-2) doesn't match expected format (example: 'Sprint 2', without quotes)

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

@asaniDev asaniDev changed the title West-Midlands | ITP-September-2025 | Mustaf Asani | Sprint-2 | Form-Controls West Midlands | ITP-September-2025 | Mustaf Asani | Sprint 2 | Form-Controls Oct 4, 2025
@github-actions
Copy link

github-actions bot commented Oct 4, 2025

Your PR description contained template fields which weren't filled in.

Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed.

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

@tenzyns tenzyns added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Oct 5, 2025
@tenzyns tenzyns self-requested a review October 5, 2025 14:19
try writing out the requirements first as comments
this will also help you fill in your PR message later-->
<fieldset>
<legend><h2>Personal Information</h2></legend>
Copy link

@tenzyns tenzyns Oct 5, 2025

Choose a reason for hiding this comment

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

do you think the legend tag can just have the text string without the h2 tag or have another inline tag like strong to replace h2 to make it bold?

</p>
</fieldset>
<fieldset>
<legend><h2>Product Information</h2></legend>
Copy link

@tenzyns tenzyns Oct 5, 2025

Choose a reason for hiding this comment

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

strong tag is useful here instead of h2 inside legend tag.

Copy link
Author

Choose a reason for hiding this comment

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

took off the h2 tag as it turns out it was not doing anything for accessibility or semantics.

<option value="xxlarge">XX-Large</option>
</select>
</p>
</fieldset>
Copy link

Choose a reason for hiding this comment

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

Is the form missing a submit button? could be useful in testing field validation, even without form action?

Copy link
Author

Choose a reason for hiding this comment

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

added a submit button to test the validation and prompts are given if the validation parameters are not met.

<label for="firstname">Firstname:</label>
<input type="text" id="firstname" pattern=".*\S.*" title="firstname must not be only spaces" name="firstname" required minlength="2" />
<Label for="lastname">Lastname:</Label>
<input type="text" id="lastname" pattern=".*\S.*" title="lastname must not be only spaces" name="lastname" required minlength="2" />
Copy link

Choose a reason for hiding this comment

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

Do you think each input element can have its own p tag or div tag, for layout flexibility and accessibility?

Copy link
Author

Choose a reason for hiding this comment

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

used a div tag to separate the layout for the 2 input sections name and email.

<label for="firstname">Firstname:</label>
<input type="text" id="firstname" pattern=".*\S.*" title="firstname must not be only spaces" name="firstname" required minlength="2" />
<Label for="lastname">Lastname:</Label>
<input type="text" id="lastname" pattern=".*\S.*" title="lastname must not be only spaces" name="lastname" required minlength="2" />
Copy link

Choose a reason for hiding this comment

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

Nice one with the pattern and title. 👍

@tenzyns tenzyns added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Oct 5, 2025
@asaniDev asaniDev added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Oct 7, 2025
@tenzyns tenzyns 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 Oct 7, 2025
@tenzyns tenzyns added the Complete Volunteer to add when work is complete and all review comments have been addressed. label Oct 7, 2025
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants