I'm encountering an issue with adding icons that I've designed in Figma to my web application. Some of the icons are displaying correctly while others are not. Here is the code snippet I am using to add the icons:
.dx-icon-info {
mask-image: url('../../../assets/images/grid/info.svg') !important;
-webkit-mask-image: url('../../../assets/images/grid/info.svg') !important;
height: 100%;
width: 100%;
object-fit: cover;
-webkit-mask-size: cover;
mask-size: cover;
color: $iconsBlue !important;
}
Below is the SVG code for the icons:
<svg width="31" height="30" viewBox="0 0 31 30" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M30....
However, when I use certain SVG codes like the one provided, the icons do not display correctly. For example:
<svg width="31" height="30" viewBox="0 0 31 30" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M30....
https://i.sstatic.net/5ydVK.png
I'm unsure why these icons are not showing correctly. Can someone point out what I might be doing wrong?