Skip to content

Commit

Permalink
Merge pull request #491 from MuckRock/tooltip-aria-role
Browse files Browse the repository at this point in the history
Adds ARIA Tooltip role to silence warning
  • Loading branch information
allanlasser authored Mar 27, 2024
2 parents 4c4fac6 + b243ce1 commit 915aced
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/common/Tooltip.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@
</script>

{#if show}
<span on:mouseenter={handleMouseOver} on:mouseleave={handleMouseOut}>
<span
on:mouseenter={handleMouseOver}
on:mouseleave={handleMouseOut}
role="tooltip"
>
<div
bind:this={tooltip}
class="tooltip"
Expand Down

0 comments on commit 915aced

Please sign in to comment.