@@ -5,22 +5,27 @@ exports[`Modal render correctly 1`] = `
5
5
<div >
6
6
<div >
7
7
<div class = " ant-modal-root" >
8
- <div class = " ant-modal-mask" ></div >
9
- <div tabindex = " -1" role = " dialog" class = " ant-modal-wrap " >
10
- <div role = " document" class = " ant-modal" style = " width: 520px;" >
11
- <div tabindex = " 0" aria-hidden = " true" style = " width: 0px; height: 0px; overflow: hidden;" ></div >
12
- <div class = " ant-modal-content" ><button type = " button" aria-label = " Close" class = " ant-modal-close" ><span class = " ant-modal-close-x" ><span role = " img" aria-label = " close" class = " anticon anticon-close ant-modal-close-icon" ><svg viewBox = " 64 64 896 896" focusable = " false" data-icon = " close" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" class = " " ><path d = " M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" ></path ></svg ></span ></span ></button >
8
+ <div class = " ant-modal-mask fade-enter" ></div >
9
+ <div tabindex = " -1" class = " ant-modal-wrap" role = " dialog" >
10
+ <div role = " document" style = " width: 520px;" class = " ant-modal zoom-enter" >
11
+ <div tabindex = " 0" style = " width: 0px; height: 0px; overflow: hidden;" aria-hidden = " true" ></div >
12
+ <div class = " ant-modal-content" ><button type = " button" aria-label = " Close" class = " ant-modal-close" ><span class = " ant-modal-close-x" ><span role = " img" aria-label = " close" class = " anticon anticon-close ant-modal-close-icon" ><svg class = " " data-icon = " close" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" viewBox = " 64 64 896 896" focusable = " false" ><path d = " M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" ></path ></svg ></span ></span ></button >
13
+ <!---->
13
14
<div class = " ant-modal-body" >Here is content of Modal</div >
14
15
<div class = " ant-modal-footer" >
15
- <div ><button type = " button" class = " ant-btn" ><span >Cancel</span ></button ><button type = " button" class = " ant-btn ant-btn-primary" ><span >OK</span ></button ></div >
16
+ <div ><button class = " ant-btn" type = " button" >
17
+ <!----><span >Cancel</span ></button ><button class = " ant-btn ant-btn-primary" type = " button" >
18
+ <!----><span >OK</span ></button ></div >
16
19
</div >
17
20
</div >
18
- <div tabindex = " 0" aria-hidden = " true " style = " width: 0px; height: 0px; overflow: hidden;" ></div >
21
+ <div tabindex = " 0" style = " width: 0px; height: 0px; overflow: hidden;" aria-hidden = " true " ></div >
19
22
</div >
20
23
</div >
21
24
</div >
22
25
</div >
23
26
</div >
27
+ <!--teleport start-->
28
+ <!--teleport end-->
24
29
</div >
25
30
` ;
26
31
@@ -29,22 +34,27 @@ exports[`Modal render correctly 2`] = `
29
34
<div >
30
35
<div >
31
36
<div class = " ant-modal-root" >
32
- <div class = " ant-modal-mask" ></div >
33
- <div tabindex = " -1" role = " dialog" class = " ant-modal-wrap " >
34
- <div role = " document" class = " ant-modal" style = " width: 520px;" >
35
- <div tabindex = " 0" aria-hidden = " true" style = " width: 0px; height: 0px; overflow: hidden;" ></div >
36
- <div class = " ant-modal-content" ><button type = " button" aria-label = " Close" class = " ant-modal-close" ><span class = " ant-modal-close-x" ><span role = " img" aria-label = " close" class = " anticon anticon-close ant-modal-close-icon" ><svg viewBox = " 64 64 896 896" focusable = " false" data-icon = " close" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" class = " " ><path d = " M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" ></path ></svg ></span ></span ></button >
37
+ <div class = " ant-modal-mask fade-enter" ></div >
38
+ <div tabindex = " -1" class = " ant-modal-wrap" role = " dialog" >
39
+ <div role = " document" style = " width: 520px;" class = " ant-modal zoom-enter" >
40
+ <div tabindex = " 0" style = " width: 0px; height: 0px; overflow: hidden;" aria-hidden = " true" ></div >
41
+ <div class = " ant-modal-content" ><button type = " button" aria-label = " Close" class = " ant-modal-close" ><span class = " ant-modal-close-x" ><span role = " img" aria-label = " close" class = " anticon anticon-close ant-modal-close-icon" ><svg class = " " data-icon = " close" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" viewBox = " 64 64 896 896" focusable = " false" ><path d = " M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" ></path ></svg ></span ></span ></button >
42
+ <!---->
37
43
<div class = " ant-modal-body" >Here is content of Modal</div >
38
44
<div class = " ant-modal-footer" >
39
- <div ><button type = " button" class = " ant-btn" ><span >Cancel</span ></button ><button type = " button" class = " ant-btn ant-btn-primary" ><span >OK</span ></button ></div >
45
+ <div ><button class = " ant-btn" type = " button" >
46
+ <!----><span >Cancel</span ></button ><button class = " ant-btn ant-btn-primary" type = " button" >
47
+ <!----><span >OK</span ></button ></div >
40
48
</div >
41
49
</div >
42
- <div tabindex = " 0" aria-hidden = " true " style = " width: 0px; height: 0px; overflow: hidden;" ></div >
50
+ <div tabindex = " 0" style = " width: 0px; height: 0px; overflow: hidden;" aria-hidden = " true " ></div >
43
51
</div >
44
52
</div >
45
53
</div >
46
54
</div >
47
55
</div >
56
+ <!--teleport start-->
57
+ <!--teleport end-->
48
58
</div >
49
59
` ;
50
60
@@ -53,18 +63,22 @@ exports[`Modal render without footer 1`] = `
53
63
<div >
54
64
<div >
55
65
<div class = " ant-modal-root" >
56
- <div class = " ant-modal-mask" ></div >
57
- <div tabindex = " -1" role = " dialog" class = " ant-modal-wrap " >
58
- <div role = " document" class = " ant-modal" style = " width: 520px;" >
59
- <div tabindex = " 0" aria-hidden = " true" style = " width: 0px; height: 0px; overflow: hidden;" ></div >
60
- <div class = " ant-modal-content" ><button type = " button" aria-label = " Close" class = " ant-modal-close" ><span class = " ant-modal-close-x" ><span role = " img" aria-label = " close" class = " anticon anticon-close ant-modal-close-icon" ><svg viewBox = " 64 64 896 896" focusable = " false" data-icon = " close" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" class = " " ><path d = " M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" ></path ></svg ></span ></span ></button >
66
+ <div class = " ant-modal-mask fade-enter" ></div >
67
+ <div tabindex = " -1" class = " ant-modal-wrap" role = " dialog" >
68
+ <div role = " document" style = " width: 520px;" class = " ant-modal zoom-enter" >
69
+ <div tabindex = " 0" style = " width: 0px; height: 0px; overflow: hidden;" aria-hidden = " true" ></div >
70
+ <div class = " ant-modal-content" ><button type = " button" aria-label = " Close" class = " ant-modal-close" ><span class = " ant-modal-close-x" ><span role = " img" aria-label = " close" class = " anticon anticon-close ant-modal-close-icon" ><svg class = " " data-icon = " close" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" viewBox = " 64 64 896 896" focusable = " false" ><path d = " M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" ></path ></svg ></span ></span ></button >
71
+ <!---->
61
72
<div class = " ant-modal-body" >Here is content of Modal</div >
73
+ <!---->
62
74
</div >
63
- <div tabindex = " 0" aria-hidden = " true " style = " width: 0px; height: 0px; overflow: hidden;" ></div >
75
+ <div tabindex = " 0" style = " width: 0px; height: 0px; overflow: hidden;" aria-hidden = " true " ></div >
64
76
</div >
65
77
</div >
66
78
</div >
67
79
</div >
68
80
</div >
81
+ <!--teleport start-->
82
+ <!--teleport end-->
69
83
</div >
70
84
` ;
0 commit comments