@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astronox/core",
3
- "version": "0.4.9",
3
+ "version": "0.4.10",
4
4
  "description": "Reusable Astro components, patterns, styles, and infrastructure for AstroNox sites.",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -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();
@@ -110,7 +110,9 @@
110
110
  border: 0;
111
111
  background: transparent;
112
112
  cursor: pointer;
113
- font: inherit;
113
+ font-family: inherit;
114
+ font-size: inherit;
115
+ line-height: inherit;
114
116
  }
115
117
 
116
118
  .site-footer a[data-tone],
@@ -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) {