11ty / webc

Single File Web Components
MIT License
1.3k stars 36 forks source link

@attributes strips dash from aria-hidden #163

Open bennypowers opened 1 year ago

bennypowers commented 1 year ago

_components/sprite-icon.webc

<svg @attributes><use :href="`#${name}-icon`"></svg>

some template:

<sprite-icon name="print" aria-hidden="true" be-bop="aluba"></sprite-icon>

output:

<svg name="print" ariahidden="true" bebop="aluba"><use href="#print-icon"></use></svg>
mirisuzanne commented 9 months ago

Running into this too, with aria-current.

mirisuzanne commented 9 months ago

Oh no, I keep running into it. Is there a workaround? Is this something I could figure out how to patch?