Skip to content

Commit

Permalink
fix: aria-hidden expects a string as value
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Feb 23, 2024
1 parent 18eed36 commit 4b70f40
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 4b70f40

Please sign in to comment.