Add ARIA roles and labels to search, header, logo, mobile menu button, and main content (#1259)

This PR fixes several Axe errors I found while working on https://viewcomponent.org/. I did not see any visual regressions on my deploy, but I'd encourage testing with other sites.

---------

Co-authored-by: Lindsey Wild <35239154+lindseywild@users.noreply.github.com>
This commit is contained in:
Joel Hawksley
2023-05-31 14:35:56 -06:00
committed by GitHub
parent 3618253d15
commit cffe2f1b29
5 changed files with 23 additions and 16 deletions

View File

@@ -1,5 +1,5 @@
{% if site.logo %}
<div class="site-logo"></div>
<div class="site-logo" role="img" aria-label="{{ site.title }}"></div>
{% else %}
{{ site.title }}
{% endif %}