-
-
Notifications
You must be signed in to change notification settings - Fork 416
Sheffield | 26-ITP-Jan | Mahmoud Shaabo | Sprint 2 | Form Controls #1113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Sheffield | 26-ITP-Jan | Mahmoud Shaabo | Sprint 2 | Form Controls #1113
Conversation
✅ Deploy Preview for cyf-onboarding-module ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
cjyuan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks pretty solid. Just some minor changes needed.
- Currently Lighthouse Accessibility score is 93. Can you improve the score to 100?
Reason given by Lighthouse: Touch targets do not have sufficient size or spacing.
Feel free to use AI to help you figure out possible ways to tackle this issue.
| <input | ||
| id="customerName" | ||
| name="customerName" | ||
| type="text" | ||
| required | ||
| minlength="2" | ||
| autocomplete="name" | ||
| /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently a user can enter a name consisting of only space characters (e.g., " "). Can you enforce a stricter validation rule using the pattern attribute to disallow any name that contains only space characters?
Form-Controls/index.html
Outdated
| <input | ||
| id="colourBlack" | ||
| name="colour" | ||
| type="radio" | ||
| value="black" | ||
| required | ||
| /> | ||
| <label for="colourBlack">Black</label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: You could consider wrapping the radio button input element inside the label element. This way, you don't need to use id and for attributes.
|
Hi CJ, I have updated the code to address your feedback. I used semantic HTML to increase touch targets for accessibility (targeting score 100) and added the name validation pattern. Ready for your review! Thanks. |
|
Changes look great! Well done. Do you know what the regular expression |
|
"It ensures that the input contains at least one non-whitespace character, so the field cannot be submitted with just spaces."Sent from my iPhoneOn Feb 3, 2026, at 11:39, CJ Yuan ***@***.***> wrote:cjyuan left a comment (CodeYourFuture/Module-Onboarding#1113)
Changes look great! Well done.
Do you know what the regular expression .*\S.* means? Regular expressions are widely used in tech. Do explore the subject when you have spare time.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.
|

I have completed the Form Controls task for Sprint 2.
Work done:
Learners, PR Template