You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to append the tooltip to the trigger element in the DOM instead of last in the body.
I am currently having an issue with accessibility due to the tooltip being added last in the DOM instead of relative to the element that triggers the tooltip.
The problem is that inside my tooltip there is a focusable element (an anchor tag in this case) and with an accessibility perspective I don't want to manually handle all tabindexes on my website (since that could cause problems for screen readers or open up for other problems, also it's a bit of bad practice, imo)
At the moment I am using a focus trap as a workaround but that creates other problems since it forces the users to actively close the tooltip to be able to continue with tabbing around on the page.