mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
A11Y: add aria-current
to active navigation item (#23691)
This commit is contained in:
parent
a523f17ed7
commit
a5df906af3
@ -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}}
|
||||
|
Loading…
Reference in New Issue
Block a user