Skip to content
Snippets Groups Projects
Commit 41fa5b89 authored by Kevin Paxman's avatar Kevin Paxman Committed by Eric Bremner
Browse files

ISTWCMS-6986: add aria-label to nav elements

parent 350a4f9f
No related branches found
No related tags found
1 merge request!228ISTWCMS-6986: add aria-label to nav elements
<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">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment