Skip to content

Commit

Permalink
Merge pull request #298 from susnux/fix/aria-hidden-value
Browse files Browse the repository at this point in the history
fix: `aria-hidden` expects a string as value
  • Loading branch information
robcresswell authored Oct 7, 2024
2 parents 18eed36 + 4b70f40 commit eb73e7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const dist = path.resolve(__dirname, 'dist');
function renderTemplate(title: string, svgPathData: string, name: string) {
return `<template>
<span v-bind="$attrs"
:aria-hidden="title ? null : true"
:aria-hidden="title ? null : 'true'"
:aria-label="title"
class="material-design-icon ${title}-icon"
role="img"
Expand Down

0 comments on commit eb73e7d

Please sign in to comment.