jpkleemans / vite-svg-loader

Vite plugin to load SVG files as Vue components
MIT License
585 stars 61 forks source link

Adding attributes to the <svg> element, besides `class` #31

Closed nachtfunke closed 2 years ago

nachtfunke commented 2 years ago

I was wondering, if there is a way that we can somehow get other attributes to appear on the <svg> element? I when using inline SVG for icons or purely decorative elements, it'd be important to tell screenreaders to ignore this element via aria-hidden="true".

jpkleemans commented 2 years ago

Hi, this is fixed in v3.1.0