- [Changed] SVG sprite won't include
display: none
anymore; instead, a class:name--sprite
is added. This eases the CSP setups, as it won't include a inline style. Make sure you hide the sprite with something like.icon--sprite { display: none }
.
- [Changed] Remove
<symbol>
'swidth
andheight
property, otherwise Google Chrome and Firefox won't be able to resize the SVG properly. TheviewBox
will determine the svg's dimensions.
- [Changed] SVG sprite now includes the sprite name as the id. It means you'll
to use a link href like
#icons--trash
(previously the sprite name wasn't included).