-
Notifications
You must be signed in to change notification settings - Fork 83
Bugfix/box shadow #60
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
Bugfix/box shadow #60
Conversation
985f20e
to
3a24ed9
Compare
3a24ed9
to
fad1039
Compare
src/transforms/boxShadow.js
Outdated
tokenStream.matchesFunction() || tokenStream.matches(WORD) | ||
)) { | ||
color = String(tokenStream.lastValue); | ||
} else if (tokenStream.matches(COLOR)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to check color === undefined
to stop box-shadow: 0 0 0 red yellow green blue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, should I add a test case for that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a test case and a fix for that. :)
Thank you so much for helping us improve styled-components! Based on our Community Guidelines every person that has a PR of any kind merged is offered an invitation to the styled-components organization—that is you right now! Should you accept, you'll get write access to the main repository. (and a fancy |
Perfect! Thanks a lot! 😀 |
Great :) Would it be possible to get a new patch release with these changes? |
I’ll do it tonight. I wanna get some token stream perf improvements in too |
fixes #59