-
Notifications
You must be signed in to change notification settings - Fork 26
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
feat(selects): make selects inputs themable #727
Conversation
: base.borderTop, | ||
}, | ||
}); | ||
const singleValueStyles = (props, theme) => (base, state) => { |
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 was the styles I added, because we weren't setting the input font color
showOptionGroupDivider: this.props.showOptionGroupDivider, | ||
menuPortalZIndex: this.props.menuPortalZIndex, | ||
})} | ||
styles={createSelectStyles( |
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.
don't have access to emotion here, so don't have the theme
object without injecting it
Summary
Use the
withTheme
HOC fromemotion-theming
to pass our theme to the createSelectStyles functions to theme ourSelectInputs
.