0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

🎨 Improved accessibility markup in default navigation.hbs partial (#9137)

refs #9135

- remove `role="presentation"` attribute from list items
- add explicit `menu` and `menuitem` roles to improve screen ready accessibility
This commit is contained in:
Kevin Ansfield 2017-10-12 12:57:18 +01:00 committed by Katharina Irrgang
parent c25c5e2395
commit 9699016cca

View file

@ -1,5 +1,5 @@
<ul class="nav">
<ul class="nav" role="menu">
{{#foreach navigation}}
<li class="nav-{{slug}}{{#if current}} nav-current{{/if}}" role="presentation"><a href="{{url absolute="true"}}">{{label}}</a></li>
<li class="nav-{{slug}}{{#if current}} nav-current{{/if}}" role="menuitem"><a href="{{url absolute="true"}}">{{label}}</a></li>
{{/foreach}}
</ul>
</ul>