3 ms·
You can do that (hover effects via CSS), as long as you include the SVG in the HTML directly, not link to it as a file. I believe this is what Github recently
by ZeroGravitas 10y ago
You can do that (hover effects via CSS), as long as you include the SVG in the HTML directly, not link to it as a file.
I believe this is what Github recently started doing:
https://github.com/blog/2112-delivering-octicons-with-svg https://github.com/blog/2112-delivering-octicons-with-svg
> You can see we’ve landed on directly injecting the SVGs directly in our page markup. This allows us the flexibility to change the color of the icons with CSS using the fill: declaration on the fly.