Skip to content

Commit

Permalink
Merge pull request #789 from City-of-Helsinki/UHF-11326
Browse files Browse the repository at this point in the history
UHF-11326: Added aria-controls and aria-labelledby to group menu
  • Loading branch information
annadruid authored Feb 7, 2025
2 parents 8605aea + 2cec30d commit 3b020a5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
{% set section_menu_title_current = null %}
{% endif %}

{% set section_menu_title_link = attributes.id ~ '-menu-link'|clean_id %}
{% set section_menu_aria_controls = attributes.id ~ '-menu-wrapper'|clean_id %}

{% set heading_id = attributes.id ~ '-menu'|clean_id %}
<nav role="navigation" aria-labelledby="{{ heading_id }}"{{ attributes|without('role', 'aria-labelledby') }} class="sidebar-navigation sidebar-navigation--section-navigation">
<div class="section-navigation__header">
Expand Down

0 comments on commit 3b020a5

Please sign in to comment.