I've been using this package and spent quite a lot time debugging different behavior of some of the icons from sprite.
I discovered not every symbol gets viewBox assigned. I though, basing on source code, it could be viewBox
vs viewbox
, but none of them works - but only for SOME icons.
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 14 14" style="enable-background:new 0 0 14 14;" xml:space="preserve">
<path style="fill:#D0021B;" d="M7.879,0.553l5.985,11.969c0.247,0.494,0.047,1.095-0.447,1.342
c-0.139,0.069-0.292,0.106-0.447,0.106H1c-0.552,0-1-0.448-1-1c0-0.155,0.036-0.308,0.106-0.447L6.09,0.553
c0.247-0.494,0.848-0.694,1.342-0.447C7.626,0.203,7.783,0.36,7.879,0.553z M5.985,7.989c0,0.552,0.448,1,1,1s1-0.448,1-1V4.99
c0-0.552-0.448-1-1-1s-1,0.448-1,1V7.989z M5.985,10.988c0,0.552,0.448,1,1,1s1-0.448,1-1c0-0.552-0.448-1-1-1
S5.985,10.436,5.985,10.988z"/>
</svg>
<symbol id="attention">
<path style="fill:#D0021B;" d="M7.879,0.553l5.985,11.969c0.247,0.494,0.047,1.095-0.447,1.342
c-0.139,0.069-0.292,0.106-0.447,0.106H1c-0.552,0-1-0.448-1-1c0-0.155,0.036-0.308,0.106-0.447L6.09,0.553
c0.247-0.494,0.848-0.694,1.342-0.447C7.626,0.203,7.783,0.36,7.879,0.553z M5.985,7.989c0,0.552,0.448,1,1,1s1-0.448,1-1V4.99
c0-0.552-0.448-1-1-1s-1,0.448-1,1V7.989z M5.985,10.988c0,0.552,0.448,1,1,1s1-0.448,1-1c0-0.552-0.448-1-1-1
S5.985,10.436,5.985,10.988z"/>
</symbol>