-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tooltip position absolute vs fixed? #414
Comments
Thanks @EHackettTriCore for submitting this issue! Will provide any updates/feedback after discussing with the |
RecommendationPlease ensure that the |
Looking at the markup in the gif, it looks like you may be using old syntax for tooltips, which is why the scroll event listener doesn't know what to track against when you scroll. Helix tooltips used to allow interaction with its contents (such as links), but this was in violation of the promise that the ARIA "tooltip" role defines.
Tooltip content is supposed to be descriptive in nature, not interactive. As such, Helix tooltips were updated as a breaking change in If your tooltip is purely descriptive, you'll need to update your markup. As of before <hx-disclosure aria-controls="my-tooltip">
<hx-icon type="help-circle"></hx-icon>
</hx-disclosure>
<hx-tooltip id="my-tooltip">
This is an old tooltip. (T_T)
</hx-tooltip> after <hx-icon id="help-icon" type="help-circle"></hx-icon>
<hx-tooltip for="help-icon" position="top-center">
This is a new tooltip! (^_^)
</hx-tooltip> |
Closing. Result of confusion between the various v0.15 release candidates. Will address in the v0.15.0 release notes. |
Describe the Bug
The tooltips since their position is set to fixed they scroll on the page if you scroll after exposing them. This is coming from their position being set to
fixed
vsabsolute
.Steps to Reproduce
Create a page with a tooltip that's taller than the browser window and scroll while tooltip is exposed.
Expected behavior
Tooltips location is relative to it's starting location
Screenshots
Environment
Please complete the following information:
The text was updated successfully, but these errors were encountered: