Skip to content

Birmingham|26-ITP-May|Yonas Gebre|Sprint 1|Form Control#1264

Open
yonasdesbelegebre wants to merge 12 commits into
CodeYourFuture:mainfrom
yonasdesbelegebre:yonas-form
Open

Birmingham|26-ITP-May|Yonas Gebre|Sprint 1|Form Control#1264
yonasdesbelegebre wants to merge 12 commits into
CodeYourFuture:mainfrom
yonasdesbelegebre:yonas-form

Conversation

@yonasdesbelegebre

Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • [x ] I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • [ x] My changes meet the requirements of the task
  • [ x] I have tested my changes
  • [ x] My changes follow the style guide

Changelist

The form collects customer names and email addresses, as well as t-shirt sizes and colors.
The inputs are all required.
For customer names, it is only possible to use characters.
For the email, I use a regular expression.
For t-shirt colors, there are 3 available choices as radio type with colors black, red, and blue.
For T-shirt , i use select one from the list of 6 sizes.
Styles for the form and elements.

@netlify

netlify Bot commented May 14, 2026

Copy link
Copy Markdown

Deploy Preview for cyf-onboarding-module ready!

Name Link
🔨 Latest commit af88358
🔍 Latest deploy log https://app.netlify.com/projects/cyf-onboarding-module/deploys/6a27bbd72d7c1800083760f8
😎 Deploy Preview https://deploy-preview-1264--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
🤖 Make changes Run an agent on this branch

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

yonasdesbelegebre

This comment was marked as resolved.

@yonasdesbelegebre yonasdesbelegebre added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label May 22, 2026
@Luro91 Luro91 added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label May 24, 2026
Comment thread Form-Controls/index.html Outdated
Comment thread Form-Controls/index.html Outdated
Comment thread Form-Controls/style.css

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good job that you separated the CSS into its own file—that’s an excellent best practice and will make your code much easier to read, debug, and maintain as it grows.

Comment thread Form-Controls/README.md

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why are there changes in this file? How is it related to the task?

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.

sorry, could you make it clear. Did you need more explanation about the code.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You commited some change to Form-Controls/README.md which I don't understand.

Comment thread Form-Controls/index.html Outdated
Comment thread Form-Controls/index.html Outdated
@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 May 24, 2026

@yonasdesbelegebre yonasdesbelegebre left a comment

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 have learned more about how to validate and clean my code, thank you for your feedback.

@yonasdesbelegebre yonasdesbelegebre added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Jun 5, 2026

@Luro91 Luro91 left a comment

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 get an Accessibility score of 89 in Lighthouse. How can you get it to 100?

Image

Comment thread Form-Controls/index.html Outdated
<div>
<label for="customername">Customer name *: </label>
<input type="text" id="customername" name="customername" required
pattern="^[A-Za-z]{2,}$"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

Comment thread Form-Controls/README.md

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You commited some change to Form-Controls/README.md which I don't understand.

@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. labels Jun 6, 2026

@yonasdesbelegebre yonasdesbelegebre left a comment

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 hope fixed the issues now.

@yonasdesbelegebre yonasdesbelegebre added 🏕 Priority Mandatory This work is expected Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Jun 6, 2026
Comment thread Form-Controls/style.css Outdated
@@ -0,0 +1,74 @@
/* body style */
input:valid{

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 indentation is a bit off here

Comment thread Form-Controls/index.html Outdated
<div>
<label for="customername">Customer name *: </label>
<input type="text" id="customername" name="customername" required
pattern="^[\p{Latin}\p{Ll}]$" minlength="2" maxlength="50"

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 the following error in the browser console when I enter characters:

index.html?customername=a%C3%A4&customeremail=a%40tes.com&color=Black&sizes=xs:1 Pattern attribute value ^[\p{Latin}\p{Ll}]$ is not a valid regular expression: Uncaught SyntaxError: Invalid regular expression: /^[\p{Latin}\p{Ll}]$/v: Invalid property name in character class

@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. labels Jun 8, 2026
@yonasdesbelegebre yonasdesbelegebre added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Onboarding The name of the module. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Jun 8, 2026
Comment thread Form-Controls/index.html Outdated
<div>
<label for="customername">Customer name *: </label>
<input type="text" id="customername" name="customername" required
pattern="^[A-Za-zÀ-ÖØ-öø-ÿĀ-ž\s'-]+$" minlength="2" maxlength="50"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This still shows an error in the browser console. Also how can you ensure that all characters can be entered. For example Asian characters. Get a hint in the Readme document

Pattern attribute value ^[A-Za-zÀ-ÖØ-öø-ÿĀ-ž\s'-]+$ is not a valid regular expression: Uncaught SyntaxError: Invalid regular expression: /^[A-Za-zÀ-ÖØ-öø-ÿĀ-ž\s'-]+$/v: Invalid character in character class

Comment thread Form-Controls/index.html Outdated
<div>
<label for="customeremail">Customer email: </label>
<input type="email" id="customeremail" name="customeremail" required
pattern="^[\p{L}\p{N}._%+-]+@[\p{L}\p{N}.-]+\.[\p{L}]{2,}$"

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 also get an error on the browser console for this:

Pattern attribute value ^[\p{L}\p{N}.%+-]+@[\p{L}\p{N}.-]+.[\p{L}]{2,}$ is not a valid regular expression: Uncaught SyntaxError: Invalid regular expression: /^[\p{L}\p{N}.%+-]+@[\p{L}\p{N}.-]+.[\p{L}]{2,}$/v: Invalid character in character class

@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. labels Jun 9, 2026
@yonasdesbelegebre yonasdesbelegebre added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Jun 9, 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. Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 🏕 Priority Mandatory This work is expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants