Skip to content

Commit

Permalink
Fix accessibility issue with top-level breadcrumb in ReadTheDocs theme (
Browse files Browse the repository at this point in the history
#3129)

Change top-level breadcrumb link's inappropriate alt tag to aria-label for accessibility

Co-authored-by: Oleh Prypin <oleh@pryp.in>
  • Loading branch information
micahellison and oprypin committed Apr 28, 2023
1 parent 876995c commit f3f6631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkdocs/themes/readthedocs/breadcrumbs.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="{{ nav.homepage.url|url }}" class="icon icon-home" alt="{% trans %}Docs{% endtrans %}"></a> &raquo;</li>
<li><a href="{{ nav.homepage.url|url }}" class="icon icon-home" aria-label="{% trans %}Docs{% endtrans %}"></a> &raquo;</li>
{%- if page %}
{%- for doc in page.ancestors[::-1] %}
{%- if doc.link %}
Expand Down

0 comments on commit f3f6631

Please sign in to comment.