fix(frontend): make icon tooltips work again
This commit is contained in:
parent
dd9c9c442c
commit
636ee7369d
|
@ -15,9 +15,11 @@
|
||||||
$: currentPreference =
|
$: currentPreference =
|
||||||
status in mergedPreferences ? mergedPreferences[status] : defaultPreferences.missing;
|
status in mergedPreferences ? mergedPreferences[status] : defaultPreferences.missing;
|
||||||
|
|
||||||
let iconElement: HTMLElement;
|
let iconElement: HTMLSpanElement;
|
||||||
</script>
|
</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>
|
<span class="visually-hidden">{currentPreference.tooltip}:</span>
|
||||||
<Tooltip aria-hidden target={iconElement} placement="top">{currentPreference.tooltip}</Tooltip>
|
<Tooltip aria-hidden target={iconElement} placement="top">{currentPreference.tooltip}</Tooltip>
|
||||||
|
|
Loading…
Reference in New Issue