Adding accessibility features

Made the theme button toggable by keyboard
Added aria-label to many <a> without any text (usually, they contains Font Awesome icons)
Added aria-hidden whenever necessary
Labelled the "Copy URL and Description" contained in footer
Added an hidden label for the menu toggle for mobile accessibility
Changed some colors to meet the Color Contrast AA level: https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html
This commit is contained in:
CristianAUnisa
2021-06-26 20:26:05 +02:00
parent 06982df16c
commit 91a1111182
54 changed files with 392 additions and 307 deletions

View File

@ -1,5 +1,5 @@
<h1 id="im" class="anchor">
<a href="#im"><i class="fas fa-link anchor-icon"></i></a>
<a href="#im" aria-label="Encrypted Instant Messengers' section"><i aria-hidden="true" class="fas fa-link anchor-icon"></i></a>
Encrypted Instant Messengers
</h1>
@ -13,7 +13,7 @@
<p>We have described the three main types of messaging programs that exist: Centralized, Federated and Peer-to-Peer (P2P), with the advantages and disadvantages of each.</p>
<h2 id="centralized" class="anchor">
<a href="#centralized"><i class="fas fa-link anchor-icon"></i></a>
<a href="#centralized" aria-label="Centralized IMs' section"><i aria-hidden="true" class="fas fa-link anchor-icon"></i></a>
Centralized
</h2>
@ -63,7 +63,7 @@
<div>
<h2 id="federated" class="anchor">
<a href="#federated"><i class="fas fa-link anchor-icon"></i></a>
<a href="#federated" aria-label="Federated IMs' section"><i aria-hidden="true" class="fas fa-link anchor-icon"></i></a>
Federated
</h2>
@ -121,7 +121,7 @@
</ul>
<h2 id="peer-to-peer" class="anchor">
<a href="#peer-to-peer"><i class="fas fa-link anchor-icon"></i></a>
<a href="#peer-to-peer" aria-label="Peer to Peer IMs' section"><i aria-hidden="true" class="fas fa-link anchor-icon"></i></a>
Peer to Peer (P2P)
</h2>