-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[ProgressBar] Add animated prop
#4251
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
a523294 to
1ef800e
Compare
size-limit report
|
| it('sets the progress element to 80 when the progress is 80', () => { | ||
| const progress = mountWithAppProvider(<ProgressBar progress={80} />); | ||
| expect(progress.find('progress').prop('value')).toBe(80); | ||
| const progress = mountWithApp(<ProgressBar progress={80} />); |
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.
Just updating to not use the legacy test suite
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.
You're a gentleman and a scholar!
1ef800e to
462eada
Compare
pedrodurek
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.
LGTM 🎉
| it('sets the progress element to 80 when the progress is 80', () => { | ||
| const progress = mountWithAppProvider(<ProgressBar progress={80} />); | ||
| expect(progress.find('progress').prop('value')).toBe(80); | ||
| const progress = mountWithApp(<ProgressBar progress={80} />); |
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.
You're a gentleman and a scholar!
WHY are these changes introduced?
We have a use case in the admin app to render a
ProgressBarwithout the load-in animation: https://github.com/Shopify/taxes/issues/2184WHAT is this pull request doing?
Sets the
animatedprop to default to true, which conditionally includes the.Animatedclass.How to 🎩
Copy-paste this code in
playground/Playground.tsx:🎩 checklist
README.mdwith documentation changes