D
D
Dima Pautov2017-02-14 22:10:26
HTML
Dima Pautov, 2017-02-14 22:10:26

Why are svg icons rendered black?

Good day! Please tell me why when displaying icons through the construction

<svg class="ico">
  <use xlink:href="app/img/ico/icons.svg#icoFb"></use>
</svg>

Icons are displayed in black! Although they should be colored. When exporting from illustrator, it is colored, I opened it and everything is ok.
Website - In the header of the site, see 2 black circles.
This is what the icons should look like:
0d2458d057274227868e7af49d752a51.JPG

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Peter, 2017-02-14
@bootd

Where do you get the information that this is how it should work? You are the thousandth person asking this question.
The documentation says here :
Insert svg as part of the html document, then you will see your icon through

<svg class="ico">
  <use xlink:href="#icoFb"></use>
</svg>

In IE11
0e34f91bb9c34e759275a6cdb0ebb639.PNG

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question