fix(frontend): add screenreader/text-only labels for name/pronoun/field entries (fixes #98)

This commit is contained in:
sam 2023-09-11 22:11:22 +02:00
parent 467069c898
commit dd9c9c442c
No known key found for this signature in database
GPG Key ID: B4EF20DDE721CAA1
1 changed files with 3 additions and 4 deletions

View File

@ -18,7 +18,6 @@
let iconElement: HTMLElement;
</script>
<span bind:this={iconElement} tabindex={0}
><Icon name={currentPreference.icon} class={className} /></span
>
<Tooltip target={iconElement} placement="top">{currentPreference.tooltip}</Tooltip>
<Icon aria-hidden name={currentPreference.icon} class={className} />
<span class="visually-hidden">{currentPreference.tooltip}:</span>
<Tooltip aria-hidden target={iconElement} placement="top">{currentPreference.tooltip}</Tooltip>