♿ Added aria-labels
This commit is contained in:
@@ -118,6 +118,7 @@
|
||||
set_language(selected_language);
|
||||
}}
|
||||
class="p-2 rounded-lg bg-gray-800 focus:ring-2 ring-blue-600 text-white"
|
||||
aria-label="Language-Selector"
|
||||
>
|
||||
{#each languages as lang}
|
||||
<option value={lang.code}>{lang.flag} {lang.name} </option>
|
||||
|
||||
@@ -180,11 +180,13 @@
|
||||
switchDarkMode(false);
|
||||
}}
|
||||
use:tippy={{ content: 'Switch light mode on' }}
|
||||
aria-label="Activate light mode"
|
||||
>
|
||||
<!-- Heroicons: sun -->
|
||||
<svg
|
||||
class="w-6 h-6 text-black"
|
||||
fill="none"
|
||||
aria-label="Sun-Icon"
|
||||
stroke="currentColor"
|
||||
viewBox="0 0 24 24"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
@@ -203,10 +205,12 @@
|
||||
on:click={() => {
|
||||
switchDarkMode(true);
|
||||
}}
|
||||
aria-label="Activate darkmode"
|
||||
use:tippy={{ content: 'Switch dark mode on' }}
|
||||
>
|
||||
<!-- Heroicons: moon -->
|
||||
<svg
|
||||
aria-label="Moon-Icon"
|
||||
class="w-6 h-6"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
|
||||
Reference in New Issue
Block a user