-
Notifications
You must be signed in to change notification settings - Fork 33
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
Update Animation stories #674
base: main
Are you sure you want to change the base?
Conversation
This is the component which is required for all animations, so is an appropriate name for the group of stories relating to animation.
Also removes the component from the story meta - this shows the props of AnimationProvider in the controls panel which cannot be edited in example or feature stories and may cause confusion.
|
🟢 No design token changes found |
|
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.
These look like the animation didn't complete before the screenshot was taken. Might be worth increasing the timeout or regenerating these to see if it fixes itself.
</LogoSuite> | ||
</AnimationProvider> | ||
) | ||
IntersectionObserver.argTypes = { |
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.
Do argTypes need to be declared per story here? Usually they can be set in the default export at the top of the file to keep the individual stories shorter and reduce duplication. Could we do that here?
</Stack> | ||
</AnimationProvider> | ||
) | ||
export const AdvancedAnimation = args => ( |
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.
Is advanced referring to the use of multiple parameters like delay, duration etc at the same time? I feel like this example is quite similar to Playground or might be better served in our docs tbh.
<ProgressBar width="70%" /> | ||
<ProgressBar width="50%" /> | ||
<ProgressBar width="25%" /> | ||
export const IntersectionObserver = ({variant, ...args}) => ( |
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.
Cool example 👍
Changes are looking good @pouretrebelle 👍, thanks. Some additional feedback that doesn't fit inline...
|
Summary
Part of https://github.com/github/primer/issues/3635
List of notable changes:
What should reviewers focus on?
Steps to test:
https://primer-91b141f773-26139705.drafts.github.io/storybook/?path=/story/components-animationprovider--default
Contributor checklist:
Reviewer checklist: