forked from mirrors/pronouns.cc
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