-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Addon-viewports: Add back default viewports #7448
Conversation
…wports larger then main area ADD migration guide to get old defaults again
This pull request is automatically deployed with Now. Latest deployment for this branch: https://monorepo-git-fix-viewport.storybook.now.sh |
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.
@ndelangen Why does this need to be a breaking change? Let's not remove withViewport
until 6.0? And what's the problem with just using INITIAL_VIEWPORTS
?
withViewport is already not exported... Might have happened in the TS migration? |
@@ -195,12 +196,15 @@ export const ViewportTool: FunctionComponent<{}> = React.memo( | |||
}, | |||
[`#${wrapperId}`]: { | |||
padding: theme.layoutMargin, | |||
display: 'flex', | |||
alignContent: 'center', | |||
alignItems: 'center', | |||
justifyContent: 'center', |
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.
if its not a flex container do we still need justify content and align items?
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.
display: grid
Issue:
What I did