Skip to content

Commit

Permalink
twig: remove aria-labelledby attribute and h2 it is referencing as it…
Browse files Browse the repository at this point in the history
… causes accessbility issues when an h1 is present after the h2, replace at with aria-label instead. For #539.
  • Loading branch information
poojagunturu96 committed Oct 20, 2023
1 parent eaaee11 commit b300bf7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/templates/partials/school-header.twig
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@

<div class="school-nav__menu">

<nav aria-labelledby="midd-main-nav-label">
<h2 class="sr-only" id="midd-main-nav-label">Main navigation</h2>
<nav aria-label="Main navigation">
<ul class="school-nav__list">
{% for item in site_nav.items %}
<li class="school-nav__item">
Expand Down

0 comments on commit b300bf7

Please sign in to comment.