Skip to content

Media uses CSS modules instead of styled-system#83

Merged
mdespuits merged 3 commits intomasterfrom
media-use-css-modules
Aug 5, 2019
Merged

Media uses CSS modules instead of styled-system#83
mdespuits merged 3 commits intomasterfrom
media-use-css-modules

Conversation

@mdespuits
Copy link
Copy Markdown
Contributor

This way, CSS classes from the main application can override any default styles since styled-components injects CSS later in the load process.

Matthew Wells added 2 commits August 5, 2019 11:50
This way, CSS classes from the main application can override any default
styles since styled-components injects CSS later in the load process.

const Body = StyledBody;
Body.displayName = 'Media.Body';
const FlexSpacer = withDefaultTheme(styled.div(flex, space));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this going to have similar issues to what we were seeing before?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No, this only provides the component props that would allow us to set those values when we want. These don't add any styles by default

Comment thread src/components/Media/style.css
Copy link
Copy Markdown
Contributor

@chelshaw chelshaw left a comment

Choose a reason for hiding this comment

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

the min-width thing is the only blocker

@mdespuits mdespuits requested a review from chelshaw August 5, 2019 17:24
@mdespuits mdespuits merged commit 1f4afbe into master Aug 5, 2019
@mdespuits mdespuits deleted the media-use-css-modules branch August 5, 2019 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants