Home > Software engineering >  How to fill the color of the svg vector icon using css
How to fill the color of the svg vector icon using css

Time:01-21

In my application I have the custom vector svg icons like

  <i  aria-hidden="true"></i> 

By default it is showing in white color but my requirement is to fill the color to yellow. I tried with

stl {
color: yellow;
}

but only border colors are changing not filling the icon to yellow color.

Can anyone help me on this

CodePudding user response:

Thanks for the information

for SVG style use fill property

glyph {
 fill: red;
}

CodePudding user response:

Could you elaborate it more? or which svg icon library you are using in your project

  •  Tags:  
  • Related