-
Notifications
You must be signed in to change notification settings - Fork 377
chore(Progress) convert examples to TypeScript #7837
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
Conversation
|
Preview: https://patternfly-react-pr-7837.surge.sh A11y report: https://patternfly-react-pr-7837-a11y.surge.sh |
thatblindgeye
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.
Looks good! Had a couple quick suggested edits and a nitpick below, let me know what you think!
| ```ts file="./ProgressFiniteStep.tsx" | ||
| ``` | ||
|
|
||
| ### Progress (step instruction) |
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.
More of a nitpick, so not a blocker if the example title is kept as-is:
| ### Progress (step instruction) | |
| ### Progress with step instruction |
| export const ProgressTitleOutsideOfProgressBar: React.FunctionComponent = () => ( | ||
| <DescriptionList> | ||
| <DescriptionListGroup> | ||
| <DescriptionListTerm id="progress-label">Title outside of progress bar</DescriptionListTerm> |
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.
More of an "in case" thing, but just to prevent any issues in the future with duplicate IDs:
| <DescriptionListTerm id="progress-label">Title outside of progress bar</DescriptionListTerm> | |
| <DescriptionListTerm id="title-outside-progress-example-label">Title outside of progress bar</DescriptionListTerm> |
| <DescriptionListGroup> | ||
| <DescriptionListTerm id="progress-label">Title outside of progress bar</DescriptionListTerm> | ||
| <DescriptionListDescription> | ||
| <Progress value={33} measureLocation={ProgressMeasureLocation.outside} aria-labelledby="progress-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.
| <Progress value={33} measureLocation={ProgressMeasureLocation.outside} aria-labelledby="progress-label" /> | |
| <Progress value={33} measureLocation={ProgressMeasureLocation.outside} aria-labelledby="title-outside-progress-example-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.
Thanks for the feedback! All the required changes have been made. Let me know if there is anything more that needs to be done!
d6b0f01 to
9c1520a
Compare
thatblindgeye
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.
Thanks for making the updates! 🎉
What: Closes #7836