mirror of
https://github.com/discourse/discourse.git
synced 2025-03-03 09:49:42 +00: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}}
|
{{#if this.hasIcon}}
|
||||||
<span class={{this.content.name}}></span>
|
<span class={{this.content.name}}></span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user