@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.
package/dist/index.js CHANGED
@@ -13580,9 +13580,14 @@ function mountDiagram(host, diagram, options = {}) {
13580
13580
  next = svg ? svg.cloneNode(true) : null;
13581
13581
  }
13582
13582
  if (!next) return;
13583
- next.setAttribute("aria-hidden", "true");
13584
- next.removeAttribute("role");
13585
- next.removeAttribute("aria-label");
13583
+ if (next.querySelector("a[href]")) {
13584
+ next.removeAttribute("aria-hidden");
13585
+ next.setAttribute("role", "group");
13586
+ } else {
13587
+ next.setAttribute("aria-hidden", "true");
13588
+ next.removeAttribute("role");
13589
+ next.removeAttribute("aria-label");
13590
+ }
13586
13591
  next.style.setProperty("--at", String(at));
13587
13592
  next.style.setProperty("--play", playing ? "running" : "paused");
13588
13593
  next.dataset.motion = playing ? "play" : "still";