Accessibility: Add aria-label to clearly describe the dark mode button (#2426)

This commit is contained in:
Hugo van Kemenade 2022-03-15 16:03:35 +02:00 committed by GitHub
parent fb1498c5a8
commit 9900fa894c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@
<li><a href="{{ pathto("pep-0000") }}">PEP Index</a> &raquo; </li>
<li>{{ title }}</li>
</ul>
<button onClick="toggleColourScheme()"></button>
<button aria-label="Toggle dark mode" onClick="toggleColourScheme()"></button>
</header>
<article>
{{ body }}