-
Notifications
You must be signed in to change notification settings - Fork 87
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
fix!: Label is mandatory for TimePicker component #2629
Conversation
Hello @shkeating, I have worked on this issue can you kindly review it? |
@m7adeel please update the tests for TimePicker to include a label, now that label is mandatory on this branch tests are failing as a result |
Updated title to |
Hello. I will do a design review on this. |
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.
Looks good to me! Great work. I do have some feedback on the PR instructions, particularly the how to test section. I humbly suggest adding a sentence or two about how the PR relates to the design of the component. It's a great way to get new design contributors in the door.
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.
LGTM
I did notice the time picker component label is using Start Case where it should be using sentence case. |
Noticing the lockfiles got corrupted on this branch. Gonna try to resolve to move this along |
Ah right, I'd have to make a fork of your fork for those updates to display in github. @m7adeel can you resolve the issues with the lock files? Looks like maybe an npm command was issued? My recommendation:
|
@brandonlenz I have fixed the issues |
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 did notice the time picker component label is using Start Case where it should be using sentence case.
This Sentence Is Called A Start Case.
This sentence is called a sentence case.
The USWDS website uses sentence case & it’s better for accessibility.
@AnnaGingle I'm seeing this PR updated to sentence case. Can you confirm? |
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.
Looks good to me!
Summary
Resolved mandatory label prop requirement for the time picker component, enhancing compliance with USWDS documentation.
Related Issues or PRs
Closes #2611
How To Test
The developer can try to add a TimePicker component without a label prop which would result in a typescript error with a msg of (Property 'label' is missing)
Screenshots