Material-ui: transition css broken in beta 28 -- zeros parsed as false

Created on 16 Jan 2018  路  6Comments  路  Source: mui-org/material-ui

I'm not really sure how to create a plunkr for this... but when i roll back to beta 27 the issue is not there.

I can tell you that this create function:

    contentShift: {
      transition: theme.transitions.create('margin', {
        easing: theme.transitions.easing.easeOut,
        duration: theme.transitions.duration.enteringScreen,
      }),
    }

will return valid looking transition css: margin 225ms cubic-bezier(0.0, 0, 0.2, 1) 0ms

however inspecting the target css shows messed up transition css:

.App-contentShift-15 {
    transition: margin 225ms cubic-bezier(0.0, false, false.2, false) 0ms;
}

image

bug 馃悰

Most helpful comment

CSS Transitions are broken on Inputs.

screen shot 2018-01-16 at 2 44 15 pm

When this will be fixed? In next release ?

All 6 comments

An example of broken components is the label and colored bars of TextFields which lost their transitions.

I can reproduce the issue in the create-react-app example.

It seems that the root cause is [email protected] released 2018-01-15T20:24:49.992Z. I'm reverting jss-vendor-prefixer from ^8.0.0 to ^7.0.0. cc @kof

It's deeply linked to this other issue: #9903.

CSS Transitions are broken on Inputs.

screen shot 2018-01-16 at 2 44 15 pm

When this will be fixed? In next release ?

Yeah, the problems seems to be in css-vendor
export default function supportedValue(property, value)
https://github.com/cssinjs/css-vendor/blob/master/src/supported-value.js

if you call that with ('transition', 'margin 225ms cubic-bezier(0.0, 0, 0.2, 0) 0ms,width 225ms cubic-bezier(0.0, 0, 0.2, 0) 0ms') it returns "margin 225ms cubic-bezier(0.0, false, false.2, false) 0ms,width 225ms cubic-bezier(0.0, false, false.2, false) 0ms"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tleunen picture tleunen  路  59Comments

aranw picture aranw  路  95Comments

sjstebbins picture sjstebbins  路  71Comments

kybarg picture kybarg  路  164Comments

gndplayground picture gndplayground  路  54Comments