googlearchive / core-iconset-svg

A custom element that enables defining icon sets that contain SVG icons.
2 stars 2 forks source link

Using custom core-iconset-svg errors with iconSize #10

Open ericeslinger opened 9 years ago

ericeslinger commented 9 years ago

Here's an icon I'm trying to import from an iconset.

    <g id="icon-buoy-help" viewBox="0 0 512 512" width="24px" height="24px">
      <path d="m256 32c124 0 224 100 224 ... snip"/>
    </g>

The important bit is that the icon kind of defaults to rather large (512 px by 512 px). If I manually drill into the core-icon template and change the width:"100%", height:"100%" that's in applyIcon to width:'24px', height:'24px', everything is fine.

ericeslinger commented 9 years ago

I could just make my own version here which sets the height and width to the added SVG item to iconSize instead of 100%, but I wanted to raise this as you work on 0.8 stuff.