@astronox/core 0.4.9 → 0.4.10
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/package.json
CHANGED
|
@@ -284,11 +284,12 @@ export function initTooltip(root: HTMLElement): () => void {
|
|
|
284
284
|
lastPointerType = '';
|
|
285
285
|
};
|
|
286
286
|
const handleTriggerClick = (event: MouseEvent): void => {
|
|
287
|
+
if (hoverOnly) return;
|
|
288
|
+
|
|
287
289
|
const pointerType =
|
|
288
290
|
'PointerEvent' in window && event instanceof PointerEvent
|
|
289
291
|
? event.pointerType
|
|
290
292
|
: lastPointerType;
|
|
291
|
-
if (hoverOnly && pointerType !== 'touch') return;
|
|
292
293
|
if (pointerType === 'touch') {
|
|
293
294
|
event.preventDefault();
|
|
294
295
|
event.stopPropagation();
|
|
@@ -50,6 +50,15 @@
|
|
|
50
50
|
|
|
51
51
|
outline: none;
|
|
52
52
|
}
|
|
53
|
+
|
|
54
|
+
[data-interaction-accent]:active {
|
|
55
|
+
background: var(--nox-interaction-accent-hover-background);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
[data-interaction-accent='start']:active::before {
|
|
59
|
+
opacity: 0.72;
|
|
60
|
+
transform: scaleY(0.86);
|
|
61
|
+
}
|
|
53
62
|
}
|
|
54
63
|
|
|
55
64
|
@media (hover: hover) and (pointer: fine) {
|