Skip to content

Commit

Permalink
fix(icon): remove <title> during build step (#1169)
Browse files Browse the repository at this point in the history
resolves #1168
  • Loading branch information
jonz94 committed Jan 18, 2023
1 parent ee16638 commit 93b4fa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ async function optimizeSvg(

const optimizedCode = optimizedSvg.data.replace(
/<svg (.*?)>/,
`<svg xmlns="http://www.w3.org/2000/svg" class="ionicon" viewBox="0 0 512 512"><title>${svgData.title}</title>`,
`<svg xmlns="http://www.w3.org/2000/svg" class="ionicon" viewBox="0 0 512 512">`,
);

const webComponentSvg = await webComponentPass.optimize(optimizedCode, { path: svgData.srcFilePath });
Expand Down

0 comments on commit 93b4fa4

Please sign in to comment.