Skip to content

London | 26-ITP-Jan | Ebrahim Moqbel | Sprint 2 | Form Controls#1119

Open
Ebrahim-Moqbel wants to merge 9 commits intoCodeYourFuture:mainfrom
Ebrahim-Moqbel:Features/Form-Controls
Open

London | 26-ITP-Jan | Ebrahim Moqbel | Sprint 2 | Form Controls#1119
Ebrahim-Moqbel wants to merge 9 commits intoCodeYourFuture:mainfrom
Ebrahim-Moqbel:Features/Form-Controls

Conversation

@Ebrahim-Moqbel
Copy link

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

I have made a form controls and made all the field required and for the color I made radio labels and named them the same to be at least one selected required.

Questions

@Ebrahim-Moqbel Ebrahim-Moqbel added 📅 Sprint 2 Assigned during Sprint 2 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Feb 2, 2026
@netlify
Copy link

netlify bot commented Feb 2, 2026

Deploy Preview for cyf-onboarding-module ready!

Name Link
🔨 Latest commit 270dbee
🔍 Latest deploy log https://app.netlify.com/projects/cyf-onboarding-module/deploys/6980dd040745cf00087fa53a
😎 Deploy Preview https://deploy-preview-1119--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: 82 (🔴 down 4 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.

@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 2, 2026
@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@Ebrahim-Moqbel Ebrahim-Moqbel changed the title London \ 26-ITP-Jan | Ebrahim Moqbel | Sprint 2 | Form Controls London | 26-ITP-Jan | Ebrahim Moqbel | Sprint 2 | Form Controls Feb 2, 2026
@github-actions

This comment has been minimized.

@Ebrahim-Moqbel Ebrahim-Moqbel added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 2, 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 2, 2026
@Ebrahim-Moqbel Ebrahim-Moqbel added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Onboarding The name of the module. labels Feb 2, 2026
@jenny-alexander jenny-alexander self-requested a review February 6, 2026 05:06
@jenny-alexander jenny-alexander 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 Feb 6, 2026
Copy link
Contributor

@jenny-alexander jenny-alexander left a comment

Choose a reason for hiding this comment

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

Hi @Ebrahim-Moqbel - nice effort with the form controls exercise 👏. Along with some comments in the code, here are additional suggestions that will strengthen your code.

  • When naming HTML attributes, it's best practice to use 'kebab-case'. Therefore, for name="T-shirtColor", it would be name="t-shirt-color".
    Can you look through your html file and make those adjustments?
    👀 https://developer.mozilla.org/en-US/docs/Glossary/Kebab_case
  • I think the code comments can be removed since their intention was to help you complete the exercise. Comments in the code can be useful for:
    • Describing complex logic or workarounds
    • Explaining "why," not "what"
    • TODO notes for incomplete work

<footer>
<!-- change to your name-->
<h2>By HOMEWORK SOLUTION</h2>
<h2>By Ebraim Moqbel</h2>
Copy link
Contributor

Choose a reason for hiding this comment

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

<h2> announces a major section in the footer. Since your name is the only thing in the footer, a different tag should be used. Can you think of a more appropriate tag?

<!-- provide three options for the T-shirts color,
make sure that they don't pick other colors-->
<fieldset>
<legend required>T-shirt Color</legend>
Copy link
Contributor

Choose a reason for hiding this comment

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

For the T-shirt color radio buttons:

  • I'm able to submit the form without choosing a colour. The colour is required.
  • Does the <legend> tag support required? Try researching online or asking AI to tell you what attributes are allowed for <legend>.
  • Currently, the name is placed before the radio button input. For better UX, try placing the radio button before the label.

<!-- provide 6 options XS, S, M, L, XL, XXL
for the customer to chose the color -->
<div>
<label for="T-shirtSize"></label>
Copy link
Contributor

Choose a reason for hiding this comment

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

The label doesn't have text that is rendered on the UI.

Image

@jenny-alexander jenny-alexander 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 Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Onboarding The name of the module. Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 2 Assigned during Sprint 2 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants