googlearchive / core-iconset-svg

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

svg focusable is not set #4

Open eeid26 opened 9 years ago

eeid26 commented 9 years ago

Can you please set the focusable attribute on the svg in applyIcon in core-iconset-svg.html. The Tab key will not work properly under IE if this attribute is not set to false.

'''javascript svg.setAttribute('height', '100%'); svg.setAttribute('width', '100%'); svg.setAttribute('preserveAspectRatio', 'xMidYMid meet'); svg.style.display = 'block'; svg.setAttribute("focusable","false"); // focusable='false' is needed for IE for Tab key to work root.insertBefore(svg, root.firstElementChild); '''

Thank you