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

Update CounterLabel to use Styled System & Emotion #196

Merged
merged 4 commits into from
Aug 8, 2018

Conversation

emplums
Copy link

@emplums emplums commented Aug 7, 2018

This PR updates CounterLabel to use Styled System + Emotion ✨

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}) {
Copy link
Author

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 🤷‍♀️

Copy link
Contributor

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.

@emplums emplums requested a review from shawnbot August 7, 2018 20:11
@shawnbot
Copy link
Contributor

shawnbot commented Aug 7, 2018

This looks good, @emplums. Are there any instances of <CounterLabel theme="..."> in the examples that should be updated in this PR?

@shawnbot shawnbot mentioned this pull request Aug 7, 2018
36 tasks
@emplums
Copy link
Author

emplums commented Aug 7, 2018

@shawnbot nice catch, just updated!

Copy link
Contributor

@shawnbot shawnbot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@emplums emplums merged commit 6f1af4a into release-1.0.0-beta Aug 8, 2018
@emplums emplums mentioned this pull request Aug 8, 2018
12 tasks
@shawnbot shawnbot deleted the counter-label branch August 8, 2018 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants