WP-Dashboard-SVG icon indicating copy to clipboard operation
WP-Dashboard-SVG copied to clipboard

IE support

Open ryelle opened this issue 10 years ago • 2 comments

Check out SVG for Everybody for IE 9+ support

Other options?

ryelle avatar Jan 16 '15 19:01 ryelle

This does IE6+ support, but expects a set naming convention for the png icons. From the example, if your SVG markup is

<svg role="img" title="CodePen"><use xlink:href="spritemap.svg#codepen"></use></svg>
<svg role="img" title="YouTube"><use xlink:href="spritemap.svg#youtube"></use></svg>
<svg role="img" title="Twitter"><use xlink:href="spritemap.svg#twitter"></use></svg>

It replaces the # with a ., and adds the .png:

<svg role="img" title="CodePen"><img src="spritemap.svg.codepen.png"></svg>
<svg role="img" title="YouTube"><img src="spritemap.svg.youtube.png"></svg>
<svg role="img" title="Twitter"><img src="spritemap.svg.twitter.png"></svg>

Since this embeds an <img>, I'm not sure how we can do a hover/active state.

ryelle avatar Jan 29 '15 19:01 ryelle

I'm not sure a hover/active state is super feasible or necessary for fallbacks.

MichaelArestad avatar Feb 01 '15 02:02 MichaelArestad