mirror of
https://github.com/mkdocs/mkdocs.git
synced 2026-03-27 09:58:31 +07:00
Fix accessibility issue with top-level breadcrumb in ReadTheDocs theme (#3129)
Change top-level breadcrumb link's inappropriate alt tag to aria-label for accessibility Co-authored-by: Oleh Prypin <oleh@pryp.in>
This commit is contained in:
committed by
GitHub
parent
876995cdf3
commit
f3f6631d2a
@@ -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> »</li>
|
||||
<li><a href="{{ nav.homepage.url|url }}" class="icon icon-home" aria-label="{% trans %}Docs{% endtrans %}"></a> »</li>
|
||||
{%- if page %}
|
||||
{%- for doc in page.ancestors[::-1] %}
|
||||
{%- if doc.link %}
|
||||
|
||||
Reference in New Issue
Block a user