This is currently not working as automatically as we'd like. If there is another large quantity of new icons or old icon adjustments, this will probably want to be improved before then.
To Produce New Svgs
- Draw SVGs in Sketch in the same file as the other icons (see Dmitry for file)
- Export with the svgo plugin. It doesn't seem to make a ton of difference (xlink is used either way, and that's unfortunate)
To Add New Icon Svgs
- Name icons *.icon.svg
- Put in the
role="img" and aria-label="<iconId here> icon"to the root
svgelement of each icon
- Manually refactor the svg to not use xlink/defs.
npm run buildin the
*.svg.dist.jsfiles will generate new icon ids automatically)
- Manually spot check the look of the new icons in the reference site at
- Update the snapshot test