forked from mirrors/pronouns.cc
fix(frontend): make icon tooltips work again
This commit is contained in:
parent
dd9c9c442c
commit
636ee7369d
1 changed files with 4 additions and 2 deletions
|
@ -15,9 +15,11 @@
|
|||
$: currentPreference =
|
||||
status in mergedPreferences ? mergedPreferences[status] : defaultPreferences.missing;
|
||||
|
||||
let iconElement: HTMLElement;
|
||||
let iconElement: HTMLSpanElement;
|
||||
</script>
|
||||
|
||||
<Icon aria-hidden name={currentPreference.icon} class={className} />
|
||||
<span bind:this={iconElement} aria-hidden>
|
||||
<Icon name={currentPreference.icon} class={className} />
|
||||
</span>
|
||||
<span class="visually-hidden">{currentPreference.tooltip}:</span>
|
||||
<Tooltip aria-hidden target={iconElement} placement="top">{currentPreference.tooltip}</Tooltip>
|
||||
|
|
Loading…
Reference in a new issue