-
Notifications
You must be signed in to change notification settings - Fork 881
fix: Workspace schedule button on responsive #3264
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
export const SmallViewport = Template.bind({}) | ||
SmallViewport.args = WorkspaceOffShort.args | ||
SmallViewport.parameters = { | ||
chromatic: { viewports: [320] }, |
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.
This looks useful, how does it work?
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 basically are saying to chromatic to test this snapshot using the 320px viewport. Unfortunately, looks like a Chromatic thing not a Storybook native option.
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 like maybe Chromatic isn't registering this one?
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! Great job 👏
site/src/components/WorkspaceScheduleButton/WorkspaceScheduleButton.stories.tsx
Outdated
Show resolved
Hide resolved
…utton.stories.tsx Co-authored-by: Abhineet Jain <AbhineetJain@users.noreply.github.com>
Fixes #3267 |
After:

With + and - buttons:

Before:
