Skip to content

Commit aa04cd6

Browse files
hugovkpradyunsg
andauthored
Add accessible name to 'Edit this page' icon (#411)
Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
1 parent 94783af commit aa04cd6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
repos:
22
- repo: https://github.com/pre-commit/mirrors-prettier
3-
rev: v2.6.1
3+
rev: v2.6.2
44
hooks:
55
- id: prettier
66
exclude: src/furo/theme/.*|docs/(recommendations|reference/admonitions).md
77

88
- repo: https://github.com/psf/black
9-
rev: 22.1.0
9+
rev: 22.3.0
1010
hooks:
1111
- id: black
1212
language_version: python3.8

src/furo/theme/furo/page.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,13 @@
7070
{#- Edit this page, on GitHub -#}
7171
{%- if READTHEDOCS and conf_py_path and page_source_suffix and github_user != "None" and github_repo != "None" and github_version %}
7272
<div class="edit-this-page">
73-
<a class="muted-link" href="https://github.com/{{ github_user }}/{{ github_repo }}/edit/{{ github_version }}{{ conf_py_path }}{{ pagename }}{{ page_source_suffix }}">
74-
<svg viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
73+
<a class="muted-link" href="https://github.com/{{ github_user }}/{{ github_repo }}/edit/{{ github_version }}{{ conf_py_path }}{{ pagename }}{{ page_source_suffix }}" title="{{ _("Edit this page") }}">
74+
<svg aria-hidden="true" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
7575
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
7676
<path d="M4 20h4l10.5 -10.5a1.5 1.5 0 0 0 -4 -4l-10.5 10.5v4" />
7777
<line x1="13.5" y1="6.5" x2="17.5" y2="10.5" />
7878
</svg>
79+
<span class="visually-hidden">{{ _("Edit this page") }}</span>
7980
</a>
8081
</div>
8182
{% endif %}

0 commit comments

Comments
 (0)