Direct link to the article Accessible SVG Icons With Inline Sprites

Accessible SVG Icons With Inline Sprites

Direct Link

This is a great look at accessible SVG markup patterns by Marco Hengstenberg. Here’s the ideal example:

<button type="button">
  Menu
  <svg class="svg-icon"
     role="img"
     height="10"
     width="10"
     viewBox="0 0 10 10"
     aria-hidden="true"
     focusable="false">
     <path d="m1 7h8v2h-8zm0-3h8v2h-8zm0-3h8v2h-8z"></path>
    </svg>
</button>
Avatar of Chris Coyier
Shared by Chris Coyier on

Papercons

Direct Link

Bobby Grace, on the Dropbox Paper team:

On the engineering side, we use inline SVGs. These have many advantages. One advantage is that SVG is a well-structured format that we can manipulate with code. Paper is also using React and

Avatar of Chris Coyier
Shared by Chris Coyier on