Skip to content

Commit

Permalink
Merge pull request #257 from element-hq/midhun/fix-tooltip/no-label-a…
Browse files Browse the repository at this point in the history
…dded

Fix toolip not adding `aria-labelled-by` when using the `label` prop
  • Loading branch information
MidhunSureshR authored Oct 2, 2024
2 parents e7a3054 + bbab33b commit 20cea63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Tooltip/useTooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export function useTooltip({
},
}
: {},
[purpose],
[purpose, labelId, captionId],
);

const interactions = useInteractions([hover, focus, dismiss, role, label]);
Expand Down

0 comments on commit 20cea63

Please sign in to comment.