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
The text tooltip component allows you to provide contextual information for any text element in your documentation. When users hover over them, they can see definitions or additional context without leaving the current page.
The distance in pixels between the tooltip and the trigger element.
181
-
</ParamField>
192
+
</ParamField>
193
+
194
+
195
+
### Style a text tooltip
196
+
197
+
To customize text tooltips, target the `.fern-mdx-tooltip-trigger` selector. You can override CSS variables for common customizations or add any custom styles:
198
+
199
+
```css
200
+
.fern-mdx-tooltip-trigger {
201
+
--tooltip-underline-color: blue; /* Color of the underline in default state */
202
+
--tooltip-underline-hover-color: green; /* Color of the underline on hover */
203
+
--tooltip-underline-thickness: 2px; /* Thickness of the underline */
204
+
--tooltip-underline-offset: 2px; /* Distance between text and underline */
0 commit comments