Skip to content
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

Move remaining body styles to bodyStyles #76

Merged
merged 1 commit into from
Sep 11, 2019
Merged

Conversation

tmeasday
Copy link
Member

This isn't a complete fix for #54, but it is a step forward, as it allows users to safely do:

import { createGlobalStyle } from 'styled-components';
import { global } from '@storybook/design-system';

const CustomGlobalStyle = createGlobalStyle`
   body {
     ${global.bodyStyles}
   }
}`

In their own code to avoid the @import.

This isn't a complete fix for #54, but it is a step forward, as it allows users to safely do:

```js
import { createGlobalStyle } from 'styled-components';
import { global } from '@storybook/design-system';

const CustomGlobalStyle = createGlobalStyle`
   body {
     ${global.bodyStyles}
   }
}`
```

In their own code to avoid the `@import`.
Copy link
Contributor

@kylesuss kylesuss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what's up w/ the spacing difference:

https://www.chromaticqa.com/snapshot?appId=5ccbc373887ca40020446347&id=5d784a6ab8fa0400203c49cb

I just pulled the branch down and all seems well. Going to merge!

@kylesuss kylesuss merged commit eccc0ec into master Sep 11, 2019
@kylesuss kylesuss deleted the 54-fix-bodyStyles branch September 11, 2019 16:41
@kylesuss
Copy link
Contributor

🚀 PR was released in v1.0.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants