Closed
Description
Current Behavior
It seems like ionicons
version 6.1.0 published on npm
still have <title>
tag inside the svg icon.
Screenshots from https://www.npmjs.com/package/ionicons?activeTab=explore
So issues described in #838 are not completely resolved.
Expected Behavior
The svg icon published on npm
should not have any <title>
tag by default.
Steps to Reproduce
- Create an Ionic Project via ionic cli
- Update
ionicons
to 6.1.0 - Add
<ion-icon name="accessibility-outline"></ion-icon>
on the page npm start
- Move mouse cursor on the icon, the
Accessibility
tooltip will show up
Code Reproduction URL
https://github.com/jonz94/ionicons-issue-1168
Additional Information
Based on information provided #838 (comment)
Change following lines:
Lines 169 to 172 in 8c2a507
into:
const optimizedCode = optimizedSvg.data.replace(
/<svg (.*?)>/,
`<svg xmlns="http://www.w3.org/2000/svg" class="ionicon" viewBox="0 0 512 512">`,
);
should be able to resolve the issue.