@cardenelabs/dragon 0.46.3 → 0.46.4

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.
@@ -9764,9 +9764,14 @@ function mountDiagram(host, diagram, options = {}) {
9764
9764
  next = svg ? svg.cloneNode(true) : null;
9765
9765
  }
9766
9766
  if (!next) return;
9767
- next.setAttribute("aria-hidden", "true");
9768
- next.removeAttribute("role");
9769
- next.removeAttribute("aria-label");
9767
+ if (next.querySelector("a[href]")) {
9768
+ next.removeAttribute("aria-hidden");
9769
+ next.setAttribute("role", "group");
9770
+ } else {
9771
+ next.setAttribute("aria-hidden", "true");
9772
+ next.removeAttribute("role");
9773
+ next.removeAttribute("aria-label");
9774
+ }
9770
9775
  next.style.setProperty("--at", String(at));
9771
9776
  next.style.setProperty("--play", playing ? "running" : "paused");
9772
9777
  next.dataset.motion = playing ? "play" : "still";