A11Y: add aria-current to active navigation item (#23691)

This commit is contained in:
Kris 2023-09-28 13:30:07 -04:00 committed by GitHub
parent a523f17ed7
commit a5df906af3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,8 @@
<a href={{this.hrefLink}} class={{this.activeClass}}>
<a
href={{this.hrefLink}}
class={{this.activeClass}}
aria-current={{if this.activeClass "true"}}
>
{{#if this.hasIcon}}
<span class={{this.content.name}}></span>
{{/if}}