Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
  • Loading branch information
raimund-schluessler committed Oct 13, 2023
1 parent e7d7cd3 commit a56fd10
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/components/NcIconSvgWrapper/NcIconSvgWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,21 @@ export default {
</docs>

<template>
<span class="icon-vue"
<span v-if="!cleanSvg"
class="icon-vue"
role="img"
:aria-hidden="!name ? true : undefined"
:aria-label="name || undefined"
v-html="cleanSvg"> <!-- eslint-disable-line vue/no-v-html -->
:aria-label="name || undefined">
<svg>
<path :d="path" />
</svg>
</span>
<span v-else
class="icon-vue"
role="img"
:aria-hidden="!name ? true : undefined"
:aria-label="name || undefined"
v-html="cleanSvg" /> <!-- eslint-disable-line vue/no-v-html -->
</template>

<script>
Expand Down

0 comments on commit a56fd10

Please sign in to comment.