svg-symbol-viewer icon indicating copy to clipboard operation
svg-symbol-viewer copied to clipboard

Support for SVG Icon Stacks

Open andydavies opened this issue 6 years ago • 1 comments

Would you be up for a PR that adds support for SVG icon stacks - http://simurai.com/blog/2012/04/02/svg-stacks

I think it's a pretty simple change, still need to finish testing but query pattern becomes "svg > symbol[id], svg > svg[id]"

andydavies avatar Jun 05 '19 14:06 andydavies

If my very shallow understanding of SVG icon stacks is correct, then an icon could potentially be any element with an id attribute, such as <g>?

My concern is that lots of things have ids, including gradients, masks, groups, and paths. If all implementations have an icon class on icons, the selector can be a lot more robust.

If it can be done reliably a PR is welcome :) The results could be split into two subsections under separate headings, one for symbols and one for an icon stack.

jaydenseric avatar Jun 05 '19 23:06 jaydenseric