Swapping Out SVG Icons

Let’s say you’re using inline SVG and want to change the SVG icon that is displayed in an element on state change, like changing a class or on :hover/:focus. There are a number of ways you can approach that.…

Avatar of Chris Coyier
Chris Coyier on (Updated on )

Cascading SVG Fill Color

One time someone told me their biggest problem with SVG icons is that they didn’t match the color of text they were by. In fact it was such a big problem for them, that despite seeing the advantages of SVG …

Avatar of Chris Coyier
Chris Coyier on (Updated on )

Tips for Creating Accessible SVG

Direct Link

LĂ©onie Watson with a much-needed reference on how to do a good job with SVG accessibility. A couple of takeaways: 1) Use it, the sharp clarity of SVG is good for low vision folks. 2) Inline SVG offers better accessibility …

Avatar of Chris Coyier
Shared by Chris Coyier on (Updated on )