diff --git a/src/patterns/04-components/menu/menu--horizontal/menu--horizontal.twig b/src/patterns/04-components/menu/menu--horizontal/menu--horizontal.twig index eb71ccdf1f00b0491d586d271a8d204719361978..ba9aa45f320bf2c78b73aacc1be477a788dfa34e 100644 --- a/src/patterns/04-components/menu/menu--horizontal/menu--horizontal.twig +++ b/src/patterns/04-components/menu/menu--horizontal/menu--horizontal.twig @@ -1,4 +1,11 @@ -<nav class="uw-horizontal-nav {% if modifier_classes %} uw-horizontal-nav--{{ modifier_classes }}{% endif %}"> +{% if 'header' in modifier_classes %} + {% set label='University of Waterloo navigation' %} +{% elseif 'main' in modifier_classes %} + {% set label='Site navigation' %} +{% elseif 'secondary' in modifier_classes %} + {% set label='Site secondary navigation' %} +{% endif %} +<nav class="uw-horizontal-nav {% if modifier_classes %} uw-horizontal-nav--{{ modifier_classes }}{% endif %}"{% if label %} aria-label="{{ label }}"{% endif %}> <div class="uw-horizontal-nav--wrapper"> {% if include_home %} <div class="uw-horizontal-nav--home">