Skip to content

Commit

Permalink
docs: remove warning about --rt-transition-closing-delay
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieljablonski committed Dec 27, 2023
1 parent 44fc0ed commit 1450231
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions docs/docs/examples/styling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -446,14 +446,6 @@ In summary, if you do it correctly you can use CSS specificity instead of `!impo
By default, the tooltip has a fade-in/fade-out transition when opening/closing, with a delay of 150ms for both.
If you wish to change the delay for any of them, override the following CSS variables:

:::caution

Do not set `--rt-transition-closing-delay` to `0`. Doing so will result in the tooltip component being stuck (but not visible) on the DOM. This isn't itself a problem, but may lead to performance issues.

Set to `1ms` or a similar value if you want to disable the fade-out transition when closing.

:::

```css
:root {
--rt-transition-show-delay: 0.15s;
Expand Down

0 comments on commit 1450231

Please sign in to comment.