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:
parent
c25c5e2395
commit
9699016cca
1 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue