Skip to content

Commit

Permalink
fix: export valid SVGs in all icons page (#4450)
Browse files Browse the repository at this point in the history
Co-authored-by: Nicole Thoen <nthoen@redhat.com>
  • Loading branch information
logonoff and nicolethoen authored Jan 29, 2025
1 parent 4b74390 commit 3f0a8da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const IconsTable = () => {
});

const onDownloadSvg = (currentTarget, name) => {
const domNode = currentTarget.children[0].cloneNode(true);
const domNode = currentTarget.querySelector("svg").cloneNode(true);
domNode.setAttribute("xmlns", "http://www.w3.org/2000/svg");
domNode.setAttribute("width", "100%");
domNode.setAttribute("height", "100%");
Expand Down

0 comments on commit 3f0a8da

Please sign in to comment.