File tree 2 files changed +19
-8
lines changed
2 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 8
8
.arrow {
9
9
width : 8px ;
10
10
height : 8px ;
11
+ }
12
+
13
+ [class *= 'react-tooltip__place-top' ] > .arrow {
11
14
transform : rotate (45deg );
12
15
}
13
16
17
+ [class *= 'react-tooltip__place-right' ] > .arrow {
18
+ transform : rotate (135deg );
19
+ }
20
+
21
+ [class *= 'react-tooltip__place-bottom' ] > .arrow {
22
+ transform : rotate (225deg );
23
+ }
24
+
25
+ [class *= 'react-tooltip__place-left' ] > .arrow {
26
+ transform : rotate (315deg );
27
+ }
28
+
14
29
/** Types variant **/
15
30
.dark {
16
31
background : var (--rt-color-dark );
Original file line number Diff line number Diff line change @@ -44,14 +44,10 @@ export const computeTooltipPosition = async ({
44
44
left : 'right' ,
45
45
} [ placement . split ( '-' ) [ 0 ] ] ?? 'bottom'
46
46
47
- const borderSide =
48
- border &&
49
- {
50
- top : { borderBottom : border , borderRight : border } ,
51
- right : { borderBottom : border , borderLeft : border } ,
52
- bottom : { borderTop : border , borderLeft : border } ,
53
- left : { borderTop : border , borderRight : border } ,
54
- } [ placement . split ( '-' ) [ 0 ] ]
47
+ const borderSide = border && {
48
+ borderBottom : border ,
49
+ borderRight : border ,
50
+ }
55
51
56
52
let borderWidth = 0
57
53
if ( border ) {
You can’t perform that action at this time.
0 commit comments