Skip to content

Commit 93b4fa4

Browse files
authored
fix(icon): remove <title> during build step (#1169)
resolves #1168
1 parent ee16638 commit 93b4fa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ async function optimizeSvg(
168168

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

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

0 commit comments

Comments
 (0)