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

Accept objects as className in styled components #1545

Merged
merged 7 commits into from
Oct 11, 2019

Conversation

jgroszko
Copy link
Contributor

What: Accept objects as className in styled components

Why: Matches react behavior per issue #1495

How: Add a special case for objects that don't already have a 'styles' property

Checklist:

  • [ N/A ] Documentation
  • Tests
  • Code complete
  • Changeset

@changeset-bot
Copy link

changeset-bot bot commented Oct 11, 2019

🦋 Changeset is good to go

Latest commit: 4ad7e99

We got this.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov
Copy link

codecov bot commented Oct 11, 2019

Codecov Report

Merging #1545 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted Files Coverage Δ
packages/styled-base/src/index.js 100% <100%> (ø) ⬆️

@Andarist
Copy link
Member

Seems like you have uncovered a mistake in tests. This line:


should use css prop and not className.

jgroszko and others added 2 commits October 11, 2019 16:07
Co-Authored-By: Mateusz Burzyński <mateuszburzynski@gmail.com>
Co-Authored-By: Mateusz Burzyński <mateuszburzynski@gmail.com>
Co-Authored-By: Mateusz Burzyński <mateuszburzynski@gmail.com>
@Andarist Andarist merged commit c3f0bc1 into emotion-js:master Oct 11, 2019
@Andarist
Copy link
Member

Thanks!

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.

None yet

2 participants