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

[babel-plugin] Component name in className dosnt work when use CreateStyled #2001

Closed
Erwin0917 opened this issue Sep 7, 2020 · 1 comment

Comments

@Erwin0917
Copy link

Current behavior:
When extend EmotionTheme via CreateStyled plugin doesn't add an correct className. ClassName is like without plug => class="css-t0lbh8" instead class="css-t0lbh8-MyComponentName"
I styled files I import styled from my own config file. When i import from "@emotion/styled" plugin works correct.

Expected behavior:

Plugin search for all styled files.

Environment information:

  • react version: 16.13.0
  • emotion version: 10.0.27
@Erwin0917 Erwin0917 changed the title Component name in className dosnt work when use CreateStyled [babel-plugin] Component name in className dosnt work when use CreateStyled Sep 7, 2020
@Andarist
Copy link
Member

Andarist commented Sep 8, 2020

The feature allowing for that has been implemented here: #1220 . It's already released in our v11 prereleases (available on npm) - there are no plans to ship this in v10. Please try out the v11 or just wait until we ship it as latest on npm.

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

No branches or pull requests

2 participants