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

Carry styles from flattened components with withComponent #589

Merged
merged 2 commits into from
Mar 6, 2018

Conversation

emmatown
Copy link
Member

@emmatown emmatown commented Mar 5, 2018

What:

Carry styles from flattened components with withComponent

Why:

Closes #587
Closes #571

I changed this behavior when I was working on v9 because I thought it was unexpected and if you wrap a styled component in another component it won't work but people seem to like so ¯\_(ツ)_/¯

How:

Spread styles(which includes styles from flattened styled components) instead of args onto styled call in withComponent

Checklist:

  • Documentation N/A
  • Tests
  • Code complete

@codecov
Copy link

codecov bot commented Mar 5, 2018

Codecov Report

Merging #589 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted Files Coverage Δ
packages/create-emotion-styled/src/index.js 100% <ø> (ø) ⬆️
packages/babel-plugin-emotion/src/index.js 97.16% <0%> (+0.46%) ⬆️

@emmatown emmatown merged commit f88f228 into master Mar 6, 2018
@emmatown emmatown deleted the carry-styles-with-with-component branch March 6, 2018 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants