I am importing svgs by adding them in the app.scss like below:
ion-icon {
&[class*=ic-] {
// Instead of using the font-based icons
// We're applying SVG masks
mask-size: contain;
mask-position: 50% 50%;
mask-repeat: no-repeat;
background: currentColor;
width: 1em;
height: 1em;
}
// custom icons
&[class*="ic-check"]{mask-image: url(../assets/img/svg/check.svg); }
&[class*="ic-copy"]{mask-image: url(../assets/img/svg/copy.svg); }
&[class*="ic-edit"]{mask-image: url(../assets/img/svg/edit.svg); }
}
rendering them in html like so:
<ion-icon padding margin name="ic-check"></ion-icon>
the problem is in chrome browser all the icons show up, but on device some icons go missing and the space is left blank.
How can I resolve the issue and is there a better way to import svg icons?