jpkleemans/vite-svg-loader

Set tag attributes to svg

Closed this issue · 1 comments

Current behaviour:
If we write this code

<script lang="ts" setup>
  import User from '@/assets/icons/user.svg';
</script>

<template>
  <User style="color: red" data-test="some-string" />
</template>

we will see this html output

<svg style="color: red">...</svg>

There are no data-test or any other attibutes

Expected behaviour:
All attributes that we pass to icon should appear

Seems that this issue duplicates #29
And has already fixed :)
Closes then...