Skip to content

Commit

Permalink
Add role attribute to parent unordered lists (#22183)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirk Mayo authored May 6, 2024
1 parent 9740289 commit 0ab04ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/CoreHome/templates/_topBar.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ postEvent("Template.beforeTopBar", userLogin, topMenu) }}
<ul class="right hide-on-med-and-down">
<ul class="right hide-on-med-and-down" role="menu">
{% macro menuItemLabel(label, icon) %}
{% if icon is defined and icon and icon starts with 'icon-' %}
<span class="navbar-icon {{ icon|striptags }}" aria-label="{{ label|translate|e('html_attr') }}"></span>
Expand Down Expand Up @@ -55,7 +55,7 @@
{% endfor %}
{% endapply %}
</ul>
<ul class="sidenav hide-on-large-only" id="mobile-top-menu">
<ul class="sidenav hide-on-large-only" id="mobile-top-menu" role="menu">
{% for label,menu in topMenu %}
<li role="menuitem" class="{{ _self.isActiveItem(menu, topMenuModule, topMenuAction) }}"
>{{ _self.topMenuItem(label, '', menu) }}</li>
Expand Down

0 comments on commit 0ab04ea

Please sign in to comment.