You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/troubleshooting.mdx
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,26 @@ If you've imported the default styling and the tooltip is still not showing up w
64
64
65
65
If `data-tooltip-content` and `data-tooltip-html` are both unset (or they have empty values) on the anchor element, and also the `content`, `render`, and `children` props on the tooltip are unset (or have empty values), the tooltip is not shown by default.
66
66
67
+
## The tooltip doesn't close
68
+
69
+
This usually happens when you try to set the tooltip opacity via CSS. Due to the opacity being used internally to control the tooltip state, overriding it breaks functionality.
70
+
71
+
Instead, use [the `opacity` prop](./examples/styling#changing-the-opacity).
72
+
73
+
```jsx
74
+
<Tooltip opacity={1} />
75
+
```
76
+
77
+
## The border doesn't show for the arrow
78
+
79
+
Simply setting the border for the tooltip through CSS will not work for the arrow.
80
+
81
+
Instead, use [the `border` prop](./examples/styling#changing-the-border).
82
+
83
+
```jsx
84
+
<Tooltip border="1px solid red"/>
85
+
```
86
+
67
87
## Bad performance
68
88
69
89
If you're experiencing any kind of unexpected behavior or bad performance on your application when using ReactTooltip, here are a few things you can try.
0 commit comments