Why when I change the image from #wordpress to #snap it looses the color? I have been following and copying the code step by step. Is there something Mosh did not included in the lessons?
Here is the CSS styles I have for the icons:
.icon {
width: 40px;
height: 40px;
}
.icon–primary {
fill: var(–color-primary);
}
.icon-container {
background: #f3f9fa;
width: 64px;
height: 64px;
border-radius: 100%;
display: inline-flex;
justify-content: center;
align-items: center;
}
here is the HTML:
<div class="media__image">
<svg class="icon icon--primary">
<use xlink:href="images/sprite.svg#snap"></use>
</svg>
</div>