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

feat(selects): make selects inputs themable #727

Merged
merged 6 commits into from
May 3, 2019
Merged

Conversation

montezume
Copy link
Contributor

@montezume montezume commented May 3, 2019

Summary

Use the withTheme HOC from emotion-theming to pass our theme to the createSelectStyles functions to theme our SelectInputs.

@montezume montezume marked this pull request as ready for review May 3, 2019 11:40
@montezume montezume requested review from islam3zzat and vidurar May 3, 2019 11:41
@montezume montezume self-assigned this May 3, 2019
: base.borderTop,
},
});
const singleValueStyles = (props, theme) => (base, state) => {
Copy link
Contributor Author

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(
Copy link
Contributor Author

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

@montezume montezume merged commit 65d953f into master May 3, 2019
@montezume montezume deleted the ml-select-styles branch May 3, 2019 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants