Skip to content
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

Tooltips on mobile should be anchored & closable #2450

Closed
dotmacro opened this issue Dec 9, 2024 · 0 comments · Fixed by #2482
Closed

Tooltips on mobile should be anchored & closable #2450

dotmacro opened this issue Dec 9, 2024 · 0 comments · Fixed by #2482

Comments

@dotmacro
Copy link
Member

dotmacro commented Dec 9, 2024

Problem

There is no way for a mobile user to close a tooltip except by opening a different tooltip. While they're open, tooltips are anchored to the user's screen rather than the UI.

image

Note: The tooltips do disappear if the user opens the nav menu or switches away from the tab/page/screen showing the tooltip.

Solution

  1. Tooltip should be anchored to the app (rather than user's screen).
  2. Tooltip should be closable.
@dotmacro dotmacro changed the title Tooltips on mobile should be anchored &dismissible Tooltips on mobile should be anchored & closable Dec 9, 2024
@SebinSong SebinSong self-assigned this Dec 9, 2024
taoeffect pushed a commit that referenced this issue Dec 29, 2024
* DRY things in Tooltip.vue / convert v-append-to-body to v-append-to-page

* revert appendToPage / add anchorToElement prop and implement it

* remove unused styles/logic in Tooltip.vue

* add v-anchor-to-trigger directive and make sure it works

* consider the case for triggerElementSelector in v-anchor-to-trigger directive

* implement all direction options for anchor-to-element prop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants