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

React 15.1.0 warning about unitless css properties #4488

Closed
adamtal3 opened this issue Jun 13, 2016 · 1 comment
Closed

React 15.1.0 warning about unitless css properties #4488

adamtal3 opened this issue Jun 13, 2016 · 1 comment
Labels
support: question Community support but can be turned into an improvement

Comments

@adamtal3
Copy link

adamtal3 commented Jun 13, 2016

Problem description

React 15.1.0 writes the following warning to the console when using an :

Warning: a button tag (owner: EnhancedButton) was passed a numeric string value for CSS property margin (value: 0) which will be treated as a unitless number in a future version of React.

Need to change all '0' css values to '0px' to avoid those annoying warning.

Or am I missing something?

Versions

  • Material-UI: 0.15.0
  • React: 15.1.0
  • Browser: Any
@mbrookes mbrookes changed the title React 15.1.0 warning about unitless css properties (a button tag (owner: EnhancedButton) was passed a numeric string value for CSS property margin (value: 0) which will be treated as a unitless number in a future version of React) React 15.1.0 warning about unitless css properties Jun 13, 2016
@mpontikes mpontikes mentioned this issue Aug 5, 2016
13 tasks
@oliviertassinari oliviertassinari added the support: question Community support but can be turned into an improvement label Feb 12, 2017
@oliviertassinari
Copy link
Member

Need to change all '0' css values to '0px' to avoid those annoying warning.

That's correct. I guess you are overriding internal style of the EnhancedButton with an invalid value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support: question Community support but can be turned into an improvement
Projects
None yet
Development

No branches or pull requests

2 participants