Skip to content

Problem with CSS pseudo-element with "-" (first-child, last-child etc.) #14

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

Closed
KacperKozak opened this issue Jul 27, 2016 · 4 comments · Fixed by #15
Closed

Problem with CSS pseudo-element with "-" (first-child, last-child etc.) #14

KacperKozak opened this issue Jul 27, 2016 · 4 comments · Fixed by #15

Comments

@KacperKozak
Copy link
Contributor

Pseudo-element with - don't work properly.

eg.:

Label:first-child {
    border-left: none;
}

In transpiled file looks like this:

// ...
var className = styles.Label + (variant.first-child ? ' ' + styles.Label__first-child : '');
// ...

And selector will be: .Label__first-child---36X92.

@KacperKozak
Copy link
Contributor Author

@andreypopp Do you know how to fix it?

@andreypopp
Copy link
Owner

@andreypopp
Copy link
Owner

Would be happy if you can submit a PR with a failing test and a fix! Feel free to ask me questions if any!

@KacperKozak
Copy link
Contributor Author

@andreypopp Ok I'll try to fix it.

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

Successfully merging a pull request may close this issue.

2 participants