mirror of
https://codeberg.org/pronounscc/pronouns.cc.git
synced 2024-11-20 08:19:52 +01:00
fix(frontend): add screenreader/text-only labels for name/pronoun/field entries (fixes #98)
This commit is contained in:
parent
467069c898
commit
dd9c9c442c
1 changed files with 3 additions and 4 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue