File tree Expand file tree Collapse file tree 3 files changed +13
-11
lines changed Expand file tree Collapse file tree 3 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ exports[`tooltip attributes basic tooltip 1`] = `
9
9
Lorem Ipsum
10
10
</span >
11
11
<div
12
- class = " react-tooltip"
12
+ class = " react-tooltip react-tooltip__place-top "
13
13
role = " tooltip"
14
14
>
15
15
Hello World!
@@ -30,7 +30,7 @@ exports[`tooltip attributes tooltip with place 1`] = `
30
30
Lorem Ipsum
31
31
</span >
32
32
<div
33
- class = " react-tooltip"
33
+ class = " react-tooltip react-tooltip__place-right "
34
34
role = " tooltip"
35
35
>
36
36
Hello World!
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ exports[`tooltip props basic tooltip 1`] = `
8
8
Lorem Ipsum
9
9
</span >
10
10
<div
11
- class = " react-tooltip"
11
+ class = " react-tooltip react-tooltip__place-top "
12
12
role = " tooltip"
13
13
>
14
14
Hello World!
@@ -27,7 +27,7 @@ exports[`tooltip props clickable tooltip 1`] = `
27
27
Lorem Ipsum
28
28
</span >
29
29
<div
30
- class = " react-tooltip undefined"
30
+ class = " react-tooltip undefined react-tooltip__place-top "
31
31
role = " tooltip"
32
32
style = " left: 5px; top: -10px;"
33
33
>
@@ -50,7 +50,7 @@ exports[`tooltip props tooltip with custom position 1`] = `
50
50
Lorem Ipsum
51
51
</span >
52
52
<div
53
- class = " react-tooltip"
53
+ class = " react-tooltip react-tooltip__place-top "
54
54
role = " tooltip"
55
55
>
56
56
Hello World!
@@ -79,7 +79,7 @@ exports[`tooltip props tooltip with delay show 1`] = `
79
79
Lorem Ipsum
80
80
</span >
81
81
<div
82
- class = " react-tooltip"
82
+ class = " react-tooltip react-tooltip__place-top "
83
83
role = " tooltip"
84
84
>
85
85
Hello World!
@@ -98,7 +98,7 @@ exports[`tooltip props tooltip with float 1`] = `
98
98
Lorem Ipsum
99
99
</span >
100
100
<div
101
- class = " react-tooltip"
101
+ class = " react-tooltip react-tooltip__place-top "
102
102
role = " tooltip"
103
103
>
104
104
Hello World!
@@ -117,7 +117,7 @@ exports[`tooltip props tooltip with html 1`] = `
117
117
Lorem Ipsum
118
118
</span >
119
119
<div
120
- class = " react-tooltip"
120
+ class = " react-tooltip react-tooltip__place-top "
121
121
role = " tooltip"
122
122
>
123
123
<span >
@@ -141,7 +141,7 @@ exports[`tooltip props tooltip with place 1`] = `
141
141
Lorem Ipsum
142
142
</span >
143
143
<div
144
- class = " react-tooltip"
144
+ class = " react-tooltip react-tooltip__place-right "
145
145
role = " tooltip"
146
146
>
147
147
Hello World!
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ describe('compute positions', () => {
12
12
tooltipArrowReference : null ,
13
13
} )
14
14
15
- expect ( value ) . toEqual ( { tooltipStyles : { } , tooltipArrowStyles : { } } )
15
+ expect ( value ) . toEqual ( { tooltipStyles : { } , tooltipArrowStyles : { } , place : 'top' } )
16
16
} )
17
17
18
18
test ( 'empty tooltip reference element' , async ( ) => {
@@ -23,7 +23,7 @@ describe('compute positions', () => {
23
23
tooltipArrowReference : null ,
24
24
} )
25
25
26
- expect ( value ) . toEqual ( { tooltipStyles : { } , tooltipArrowStyles : { } } )
26
+ expect ( value ) . toEqual ( { tooltipStyles : { } , tooltipArrowStyles : { } , place : 'top' } )
27
27
} )
28
28
29
29
test ( 'empty tooltip arrow reference element' , async ( ) => {
@@ -41,6 +41,7 @@ describe('compute positions', () => {
41
41
left : '5px' ,
42
42
top : '10px' ,
43
43
} ,
44
+ place : 'bottom' ,
44
45
} )
45
46
} )
46
47
@@ -65,6 +66,7 @@ describe('compute positions', () => {
65
66
left : '5px' ,
66
67
top : '-10px' ,
67
68
} ,
69
+ place : 'top' ,
68
70
} )
69
71
} )
70
72
} )
You can’t perform that action at this time.
0 commit comments