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

Allow styling from props in withStyles #1

Closed
jschr opened this issue Jan 29, 2017 · 0 comments
Closed

Allow styling from props in withStyles #1

jschr opened this issue Jan 29, 2017 · 0 comments

Comments

@jschr
Copy link
Owner

jschr commented Jan 29, 2017

function createStyles(theme, props) {
  insertGlobal('html', {
    fontSize: `${theme.baseFontSize}px`
  })

  insertGlobal(props.rootSelector, {
    height: '100%'
  }
}

export default withStyles(createStyles)(Global)
@jschr jschr mentioned this issue Mar 12, 2017
Merged
@jschr jschr closed this as completed in #2 Mar 12, 2017
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

No branches or pull requests

1 participant