@hubpav/hwio-web-runtime 0.10.0 → 0.10.1

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.
Files changed (2) hide show
  1. package/dist/nav.js +5 -2
  2. package/package.json +1 -1
package/dist/nav.js CHANGED
@@ -47,14 +47,17 @@ export function hwioNavRuntime() {
47
47
  toggle.setAttribute('aria-label', text);
48
48
  };
49
49
  // Lock the page where it is: overflow hidden on the root, its scrollbar's width kept as padding (so
50
- // the layout keeps its width), and everything outside the header inert, walking up from the header.
50
+ // the layout keeps its width), and the page outside the header inert, walking up from the header.
51
+ // Fixed layers and dialogs stay live: they sit above the sheet (the cookie banner and its settings,
52
+ // a chat widget), and an inert one would show but not take a click (owner, 2026-11-03).
53
+ const staysLive = (el) => el.tagName === 'DIALOG' || getComputedStyle(el).position === 'fixed';
51
54
  const lock = (on) => {
52
55
  if (on) {
53
56
  root.style.setProperty('--hwio-scrollbar', `${Math.max(0, window.innerWidth - root.clientWidth)}px`);
54
57
  root.classList.add('hwio-scroll-lock');
55
58
  for (let node = header; node && node.parentElement && node !== document.body; node = node.parentElement) {
56
59
  for (const sibling of Array.from(node.parentElement.children)) {
57
- if (sibling !== node && sibling instanceof HTMLElement && !sibling.inert && sibling.tagName !== 'SCRIPT') {
60
+ if (sibling !== node && sibling instanceof HTMLElement && !sibling.inert && sibling.tagName !== 'SCRIPT' && !staysLive(sibling)) {
58
61
  sibling.inert = true;
59
62
  inerted.push(sibling);
60
63
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubpav/hwio-web-runtime",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "Framework-free browser runtime for the HARDWARIO websites: consent (Consent Mode v2 + GTM), HubSpot forms with Turnstile, attribution, theme, CTA tracking and small behaviours. View-transition safe.",
5
5
  "license": "MIT",
6
6
  "type": "module",