-
-
Notifications
You must be signed in to change notification settings - Fork 419
WestMidlands | 26-ITP-Jan | Adedolapo Bamiduro | Sprint 2 | Form Controls #1127
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?
WestMidlands | 26-ITP-Jan | Adedolapo Bamiduro | Sprint 2 | Form Controls #1127
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.
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.
-
According to https://validator.w3.org/, there are some warnings in your code. Can you address them?
-
Currently a user can submit the form without filling in all input.
-
Common practice is to keep the label of a radio button on the right (instead of at the bottom)
- Note: Embedded CSS is still CSS. Supposedly the requirement says "No CSS", but you can keep them.
Form-Controls/index.html
Outdated
| <select name="size" id="size"> | ||
| <option value="XS">Extra Small</option> | ||
| <option value="S">Small</option> | ||
| <option value="M">Medium</option> | ||
| <option value="L">Large</option> | ||
| <option value="XL">Extra Large</option> | ||
| <option value="XXL">Extra Extra Large</option> | ||
| </select> |
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.
There is a way to configure a <select> element so that no option is selected by default, allowing the user to make an explicit choice.
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.
done @cjyuan
Form-Controls/index.html
Outdated
| <input type="radio" name="color" id="color-blue" value="Blue"> | ||
| <label for="color-blue">Blue</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.
We won't need to use id and for if we encode this as:
<label>
<input type="radio" name="color" value="Blue">
Blue
</label>
Form-Controls/index.html
Outdated
| <div class="form-row"> | ||
| <label for="password">Password</label> | ||
| <input type="password" name="password" id="password" required aria-required="true"> | ||
| </div> |
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.
I am glad that you are trying different things, but I think it is weird to include a password input field in a T-shirt ordering form. :)
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.
1
Can you improve the Lighthouse Accessibility score to 100?

You may find a way to overcome this issue in #cyf-questions-support channel on Slack.
2
According to https://validator.w3.org/, there are errors in your code. Can you fix them?
|
i think i have successfully updated the lighthouse @cjyuan |
|
Changes look good. Well done. According to https://validator.w3.org/, there are some warnings in your code. Can you address them? I will mark this PR "Complete" first. |
|
Hello, i have been trying to find the error in the code, but i cant seem to find it. |
|
I mentioned "warnings", not "errors". |

Learners, PR Template
Self checklist
Changelist
added the needed answers to form controls