Skip to content

Commit

Permalink
Merge pull request #284 from robcresswell/fix/vue3-v-bind-warning
Browse files Browse the repository at this point in the history
fix: Make v-bind first icon property
  • Loading branch information
robcresswell committed Jul 13, 2022
2 parents 7f1ff3f + d146718 commit 681f455
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ const dist = path.resolve(__dirname, 'dist');

function renderTemplate(title: string, svgPathData: string, name: string) {
return `<template>
<span :aria-hidden="!title"
<span v-bind="$attrs"
:aria-hidden="!title"
:aria-label="title"
class="material-design-icon ${title}-icon"
role="img"
v-bind="$attrs"
@click="$emit('click', $event)">
<svg :fill="fillColor"
class="material-design-icon__svg"
Expand Down

0 comments on commit 681f455

Please sign in to comment.