Skip to content

Commit

Permalink
fix(NcIconSvgWrapper): remove empty aria attrs
Browse files Browse the repository at this point in the history
Note: arria-hidden="false" doesn't add an attribute in Vue 2, but does in Vue 3.

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
  • Loading branch information
ShGKme committed Oct 4, 2023
1 parent df2eedd commit c0982c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/NcIconSvgWrapper/NcIconSvgWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ export default {
<template>
<span class="icon-vue"
role="img"
:aria-hidden="!name"
:aria-label="name"
:aria-hidden="!name ? true : undefined"
:aria-label="name || undefined"
v-html="cleanSvg" /> <!-- eslint-disable-line vue/no-v-html -->
</template>

Expand Down

0 comments on commit c0982c9

Please sign in to comment.