@jsenv/navi 0.29.395 → 0.29.396
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dev/jsenv_navi.js +16 -4
- package/dist/dev/jsenv_navi.js.map +2 -2
- package/dist/jsenv_navi.js +16 -4
- package/dist/jsenv_navi.js.map +2 -2
- package/package.json +1 -1
package/dist/dev/jsenv_navi.js
CHANGED
|
@@ -6837,10 +6837,6 @@ const css$13 = /* css */ `
|
|
|
6837
6837
|
border: none;
|
|
6838
6838
|
outline: none; /* programmatic focus may land here briefly before being redirected to close button */
|
|
6839
6839
|
opacity: 0;
|
|
6840
|
-
/* opacity only: the placement lives in the translate property, which
|
|
6841
|
-
applyNewPosition (visible_rect.js) owns and animates itself through the
|
|
6842
|
-
Web Animations API, same mechanism Popover/Dialog use. */
|
|
6843
|
-
transition: opacity 0.2s ease-in-out;
|
|
6844
6840
|
cursor: initial; /* Do not inherit element cursor, inside the element but should use regular cursor */
|
|
6845
6841
|
pointer-events: auto; /* Must be interactive to be closabled (overrid list item pointer-events none for instance) */
|
|
6846
6842
|
overflow: visible;
|
|
@@ -6849,6 +6845,15 @@ const css$13 = /* css */ `
|
|
|
6849
6845
|
position: absolute;
|
|
6850
6846
|
}
|
|
6851
6847
|
|
|
6848
|
+
/* Armed after the first placement: the first show answers a tap or a
|
|
6849
|
+
click and appears at once, the fade is for the anchor scrolling out of
|
|
6850
|
+
view and back. Opacity only: the placement lives in the translate
|
|
6851
|
+
property, which applyNewPosition (visible_rect.js) owns and animates
|
|
6852
|
+
itself through the Web Animations API, same mechanism Popover/Dialog use. */
|
|
6853
|
+
&[data-placed] {
|
|
6854
|
+
transition: opacity 0.12s ease-out;
|
|
6855
|
+
}
|
|
6856
|
+
|
|
6852
6857
|
&[data-status="success"] {
|
|
6853
6858
|
--x-callout-status-color: var(--callout-success-color);
|
|
6854
6859
|
}
|
|
@@ -8290,6 +8295,13 @@ const positionCallout = (
|
|
|
8290
8295
|
calloutFrameElement.innerHTML = generateSvgWithoutArrow(width, height);
|
|
8291
8296
|
calloutElement.style.opacity = 1;
|
|
8292
8297
|
}
|
|
8298
|
+
if (!calloutElement.hasAttribute("data-placed")) {
|
|
8299
|
+
// Style flush between the first opacity write and arming the
|
|
8300
|
+
// transition, so that first write lands unanimated in the same frame.
|
|
8301
|
+
// eslint-disable-next-line no-unused-expressions
|
|
8302
|
+
getComputedStyle(calloutElement).opacity;
|
|
8303
|
+
calloutElement.setAttribute("data-placed", "");
|
|
8304
|
+
}
|
|
8293
8305
|
applyNewPosition(calloutElement, position);
|
|
8294
8306
|
},
|
|
8295
8307
|
);
|