-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Accept objects as className in styled components #1545
Conversation
🦋 Changeset is good to goLatest 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 Report
|
Seems like you have uncovered a mistake in tests. This line: emotion/packages/styled/__tests__/styled.js Line 395 in a07f8a7
should use css prop and not className .
|
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>
Thanks! |
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: