Skip to content

Commit da1df91

Browse files
committed
prevent duplicate ARIA when faceting
1 parent 72a0d40 commit da1df91

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/interactions/pointer.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ function pointerK(kx, ky, {px, py, maxRadius = 40, channels, ...options} = {}) {
5151
const mt = r.getAttribute("transform");
5252
ft ? r.setAttribute("transform", ft) : r.removeAttribute("transform");
5353
mt ? p.setAttribute("transform", mt) : p.removeAttribute("transform");
54+
// also remove ARIA attributes since these are promoted to the parent
55+
r.removeAttribute("aria-label");
56+
r.removeAttribute("aria-description");
57+
r.removeAttribute("aria-hidden");
5458
}
5559
g.replaceWith(r);
5660
}

0 commit comments

Comments
 (0)