Skip to content

Commit f2ce047

Browse files
committed
Add tooltip delay
1 parent 6fddf8d commit f2ce047

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Elastic.Documentation.Site/Assets/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ document.addEventListener('htmx:load', function () {
2525
initSmoothScroll()
2626
openDetailsWithAnchor()
2727
initDismissibleBanner()
28-
tippy('[data-tippy-content]:not([data-tippy-content=""])')
28+
tippy('[data-tippy-content]:not([data-tippy-content=""])', {
29+
delay: [400, 100],
30+
})
2931
})
3032

3133
// Don't remove style tags because they are used by the elastic global nav.

src/Elastic.Documentation.Site/Assets/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
background-color: var(--color-white);
176176
border: 1px solid var(--color-grey-20);
177177
font-weight: normal;
178-
&[data-tippy-content]:not([data-tippy-content=""]) {
178+
&[data-tippy-content]:not([data-tippy-content='']) {
179179
cursor: help;
180180
}
181181
}

0 commit comments

Comments
 (0)