-
Notifications
You must be signed in to change notification settings - Fork 538
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 Caret with emotion #184
Conversation
@@ -24,15 +29,20 @@ exports[`Caret renders cardinal directions 1`] = ` | |||
<path | |||
d="M-8,0L0,8L8,0" | |||
fill="none" | |||
stroke="#e1e4e8" | |||
stroke="#000" |
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.
Not sure why this changed 🤔
src/Caret.js
Outdated
@@ -120,4 +120,4 @@ Caret.propTypes = { | |||
/* eslint-enable */ | |||
} | |||
|
|||
export default withDefaultTheme(Caret) | |||
export default withSystemProps(withDefaultTheme(Caret)) |
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.
FYI: withSystemProps()
calls withDefaultTheme()
for us ✨
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.
ahh ok!
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.
Hey! So I removed withSystemProps
and now it's just withDefaultTheme(Caret, COMMON)
and the toImplementSystemProps
test is failing 🤔
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.
Oh wow I see what I did there 😂 Ignore me, I'm drinking coffee as we speak hahaha
We decided it's silly to add system props to Caret since it should only be used in CaretBox, closing! |
This PR gives the system props to the Caret component.
I started making this PR, but once I was done I realized that maybe Caret doesn't need system props, since it's only supposed to be an internal component used by CaretBox? Thoughts?