This repository was archived by the owner on Apr 8, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ describe("withWorkaround", () => {
34
34
35
35
it ( "should have default style" , ( ) => {
36
36
const style = wrapper . childAt ( 0 ) . props ( ) . style ;
37
- assert . deepEqual ( style , { transform : "scale(0.99)" } ) ;
37
+ assert . deepEqual ( style , { opacity : 0.9 } ) ;
38
38
} ) ;
39
39
40
40
describe ( "during a transition" , ( ) => {
@@ -52,12 +52,12 @@ describe("withWorkaround", () => {
52
52
53
53
it ( "should perform a second transition" , ( ) => {
54
54
const style = wrapper . childAt ( 0 ) . props ( ) . style ;
55
- assert . deepEqual ( style , { transform : "scale( 1.0)" , transition : "transform 1ms linear 10ms" } ) ;
55
+ assert . deepEqual ( style , { opacity : 1.0 , transition : "opacity 1ms linear 10ms" } ) ;
56
56
} ) ;
57
57
58
58
describe ( "when second transition ends" , ( ) => {
59
59
before ( ( ) => {
60
- wrapper . childAt ( 0 ) . simulate ( "transitionEnd" , { propertyName : "transform " } ) ;
60
+ wrapper . childAt ( 0 ) . simulate ( "transitionEnd" , { propertyName : "opacity " } ) ;
61
61
} ) ;
62
62
63
63
it ( "should call onTransitionStart" , ( ) => {
Original file line number Diff line number Diff line change @@ -35,11 +35,11 @@ export const withWorkaround = combine(
35
35
) => {
36
36
const workaroundProps : React . HTMLProps < HTMLSpanElement > = {
37
37
key : "workaround" ,
38
- style : { transform : "scale(0.99)" } ,
38
+ style : { opacity : 0.9 } ,
39
39
} ;
40
40
if ( inTransition ) {
41
41
workaroundProps . onTransitionEnd = workaroundHandler ;
42
- workaroundProps . style = { transform : "scale( 1.0)" , transition : `transform 1ms linear ${ firstPropertyDelay } ms` } ;
42
+ workaroundProps . style = { opacity : 1.0 , transition : `opacity 1ms linear ${ firstPropertyDelay } ms` } ;
43
43
}
44
44
return {
45
45
children : [ < span { ...workaroundProps } /> , ...Children . toArray ( children ) ] ,
You can’t perform that action at this time.
0 commit comments