Closed sto3psl closed 2 weeks ago
I'm not really sure why we ship the SVGs in two different locations, but the icons at dist/ionicons/svg
have the correct class that you can use for now. I'll take a closer look and see why we have both distributions.
Oh that's good to know, thanks! These icons are still a bit different from the ones in dist/svg/
but I can work with that.
Current Behavior
In my project I'm loading SVGs from
./dist/svg/*
and style them by using theionicon
class on thesvg
tag. This worked fine untilionicons@7.2.2
butionicons@7.2.3
removed that class in a patch release, rendering my icons in a broken state.This is the PR that introduced the change https://github.com/ionic-team/ionicons/pull/1313.
I don't know if this was an accident and should continue to work or if I'm "holding it wrong" and users of the npm package are not supposed to load stuff from
./dist/svg/
. I'm hoping for the first option.Link to SVG from version 7.2.2.: https://unpkg.com/ionicons@7.2.2/dist/svg/accessibility-outline.svg
Link to SVG from version 7.2.3.: https://unpkg.com/ionicons@7.2.3/dist/svg/accessibility-outline.svg
Expected Behavior
All SVG files within
/dist/svg/
include aclass="ionicon"
on their<svg>
tag, like it's been for multiple major versions.Steps to Reproduce
ionicons@7.2.2
.node_modules/ionicons/dist/svg/*
haveclass="ionicon"
on their<svg>
tag.ionicons@7.2.3
.<svg>
tag is gone.Code Reproduction URL
No response
Additional Information
No response