Skip to content

Commit

Permalink
fix aria-expanded has invalid values
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst committed Jan 16, 2024
1 parent b659a4a commit 1bf8115
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/includes/menu.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<a {% if item.hasChildren %}
class="nav-link dropdown-toggle navbar-menu-{{ item.identifier }}" role="button"
data-bs-toggle="dropdown" data-bs-auto-close="{{ layout_type is same as "vertical" ? 'false' : 'outside' }}"
aria-expanded="{{ layout_type is same as "vertical" }}"
aria-expanded="{{ layout_type is same as 'vertical' ? 'true' : 'false' }}"
{% else %}
class="nav-link" href="{{ '/' in item.route ? item.route : (item.route is null ? '#' : path(item.route|tabler_route, item.routeArgs)) }}"
{% endif %}>
Expand All @@ -38,7 +38,7 @@
<div class="dropend">
<a class="dropdown-item dropdown-toggle {{ child.isActive ? 'active' : '' }} navbar-menu-{{ child.identifier }}" role="button"
data-bs-toggle="dropdown" data-bs-auto-close="{{ layout_type is same as "vertical" ? 'false' : 'outside' }}"
aria-expanded="{{ layout_type is same as "vertical" }}">
aria-expanded="{{ layout_type is same as 'vertical' ? 'true' : 'false' }}">
{{ _self.item_icon(child) }}
{{ child.label|trans({}, child.translationDomain) }}
{{ _self.item_badge(child) }}
Expand Down

0 comments on commit 1bf8115

Please sign in to comment.