-
Notifications
You must be signed in to change notification settings - Fork 47.2k
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
CSS property values that are strings shouldn't have 'px' appended #1357
Comments
I'll just chime in with what I mentioned in the chat last time, I think it's a great solution. Just as However, I don't mind making |
This reverts commit 3176377.
Fix #1357. Don't append "px" suffix to CSS string values.
Note: this isn't actually fixed, just have a warning in place. |
Yep, was autoclosed by the PR. |
… unitless string values see react(v15) issue facebook/react#1357
should we add a version in the warning message to this behavior be removed? |
So just to clarify, is passing a number value as string type the only thing that will no longer have |
@SEAPUNK As I understood, only string type. The example you gave, will still be supported. |
@gaearon we still have this warning in place, should we consider acting on for 16 or wait until 17? |
@aweary Too late for breaking changes for 16, let's look at doing it in 17. Can probably land soon after the release behind a flag. |
Hmm. I neither see a warning, nor do I see it apply the style. |
It's weird that
style={{margin: '42'}}
gets turned intomargin: 42px;
. I think we should only addpx
if the value is an actual number.The text was updated successfully, but these errors were encountered: