Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

We use includes to inject SVG icons into our pages, loading the basenames found in this folder.

{{ icon('arrow-back', {
  hidden: true,
  label: 'i18n.common.string_id' | i18n(locale),
  className: 'gap-300',
  id: 'idToUseOnPage',
}) }}

All of the options in the second argument are optional.

This allows lets us use CSS to style the fill and color of the SVG elements and avoids FOUC that occurs when loading SVG with img.

This is similar to GitHub's approach outlined here: https://github.blog/2016-02-22-delivering-octicons-with-svg/