-
Notifications
You must be signed in to change notification settings - Fork 578
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
Update CounterLabel to use Styled System & Emotion #196
Conversation
export default function CounterLabel({theme, children, ...rest}) { | ||
const {className} = mapWhitespaceProps(rest) | ||
return <span className={classnames(className, 'Counter', theme && `Counter--${theme}`)}>{children}</span> | ||
function CounterLabel({scheme, children, className}) { |
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.
theme
needed to be changed to scheme
to get it to work, must be conflicting with emotion 🤷♀️
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.
Yep, works for me! We should start a draft of the release notes and add this to the breaking changes.
This looks good, @emplums. Are there any instances of |
@shawnbot nice catch, just updated! |
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.
🚀
This PR updates CounterLabel to use Styled System + Emotion ✨