Skip to content

Commit

Permalink
fix: added component wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Milfred committed Oct 7, 2024
1 parent 40dfb6e commit 48ed703
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions components/LinkTile.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<template>
<div
<Component
:is="tag"
ref="wrapperElementRef"
class="c-link-tile"
v-bind="{
Expand Down Expand Up @@ -28,7 +29,7 @@
v-bind="linkBindings"
></button>
<slot></slot>
</div>
</Component>
</template>

<script setup>
Expand Down Expand Up @@ -224,7 +225,7 @@ const hoverData = {
if (!props.ariaLabel && !props.ariaLabelledby) {
console.warn(
`[LinkTile - ${props.id ? '#' + props.id : 'no id'}]`,
"No a11y label attributes were provided. This may cause accessibility issues. Add either the 'aria-label' or 'aria-labelledby' attribute to the component, to avoid any issues."
'No a11y label attributes were provided. This may cause accessibility issues. Add either the \'aria-label\' or \'aria-labelledby\' attribute to the component, to avoid any issues.'
);
}
Expand Down

0 comments on commit 48ed703

Please sign in to comment.