Skip to content

Commit

Permalink
aria-current to active links in navigation menu
Browse files Browse the repository at this point in the history
  • Loading branch information
BarbaraOliveira13 committed Dec 18, 2024
1 parent 4683b53 commit f44b979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decidim-core/app/views/decidim/pages/_tabbed.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<ul id="dropdown-menu-pages" class="vertical-tabs__list" role="menu">
<% pages.each do |sibling| %>
<li class="<%= "is-active" if page == sibling %>" role="menuitem">
<%= link_to translated_attribute(sibling.title), page_path(sibling.slug) %>
<%= link_to translated_attribute(sibling.title), page_path(sibling.slug), aria_current: ("true"if page == sibling) %>
</li>
<% end %>
</ul>
Expand Down

0 comments on commit f44b979

Please sign in to comment.