Skip to content

Commit

Permalink
add aria-hidden flag to svg for textsize util to fix accessibility issue
Browse files Browse the repository at this point in the history
  • Loading branch information
noranda committed Oct 12, 2023
1 parent bbc1e2a commit 5be3faa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/victory-core/src/victory-util/textsize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ const _getMeasurementContainer = memoize(() => {
element.setAttribute("width", "300");
element.setAttribute("height", "300");
element.setAttribute("viewBox", "0 0 300 300");
element.setAttribute("aria-hidden", "true");

const containerElement = document.createElementNS(
"http://www.w3.org/2000/svg",
Expand Down

0 comments on commit 5be3faa

Please sign in to comment.