A11Y: aria-current="page" is more appropriate for navigation bar links (#27835)

This commit is contained in:
Kris 2024-07-10 12:24:51 -04:00 committed by GitHub
parent 8fa61410aa
commit 0ac1a43fef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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