@@ -9,7 +9,6 @@ import Dialog, { DialogProperties } from '../../index';
99import Icon from '../../../icon/index' ;
1010import * as css from '../../../theme/dialog.m.css' ;
1111import * as fixedCss from '../../styles/dialog.m.css' ;
12- import * as animations from '../../../common/styles/animations.m.css' ;
1312import { Keys } from '../../../common/util' ;
1413import { GlobalEvent } from '../../../global-event/index' ;
1514import {
@@ -46,16 +45,16 @@ const expected = function(open = false, closeable = false, children: any[] = [])
4645 } ) ,
4746 v ( 'div' , {
4847 classes : [ null , fixedCss . underlay ] ,
49- enterAnimation : animations . fadeIn ,
50- exitAnimation : animations . fadeOut ,
48+ enterAnimation : css . underlayEnter ,
49+ exitAnimation : css . underlayExit ,
5150 key : 'underlay' ,
5251 onclick : noop
5352 } ) ,
5453 v ( 'div' , {
5554 'aria-labelledby' : '' ,
5655 classes : css . main ,
57- enterAnimation : animations . fadeIn ,
58- exitAnimation : animations . fadeOut ,
56+ enterAnimation : css . enter ,
57+ exitAnimation : css . exit ,
5958 key : 'main' ,
6059 role : 'dialog' ,
6160 tabIndex : - 1
@@ -120,8 +119,8 @@ registerSuite('Dialog', {
120119 } ) ,
121120 v ( 'div' , {
122121 classes : [ css . underlayVisible , fixedCss . underlay ] ,
123- enterAnimation : animations . fadeIn ,
124- exitAnimation : animations . fadeOut ,
122+ enterAnimation : css . underlayEnter ,
123+ exitAnimation : css . underlayExit ,
125124 key : 'underlay' ,
126125 onclick : noop
127126 } ) ,
@@ -174,17 +173,17 @@ registerSuite('Dialog', {
174173 } ) ,
175174 v ( 'div' , {
176175 classes : [ null , fixedCss . underlay ] ,
177- enterAnimation : animations . fadeIn ,
178- exitAnimation : animations . fadeOut ,
176+ enterAnimation : css . underlayEnter ,
177+ exitAnimation : css . underlayExit ,
179178 key : 'underlay' ,
180179 onclick : noop
181180 } ) ,
182181 v ( 'div' , {
183182 role : 'dialog' ,
184183 'aria-labelledby' : '' ,
185184 classes : css . main ,
186- enterAnimation : animations . fadeIn ,
187- exitAnimation : animations . fadeOut ,
185+ enterAnimation : css . enter ,
186+ exitAnimation : css . exit ,
188187 key : 'main' ,
189188 tabIndex : - 1
190189 } , [
0 commit comments