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

[Tooltip] Mimic React Tooltip functionality to trigger onClick #762

Open
alexisnotalexa opened this issue Jan 27, 2021 · 0 comments
Open
Labels
enhancement Enhancement to an existing feature or component web component @momentum-ui/web-components

Comments

@alexisnotalexa
Copy link

Issue Type

Feature Request

Component or Pattern Affected

web-components/Tooltip

Expected Behavior

In the current project that I'm working on, we have several instances where we trigger the Tooltip to open on click rather than on hover. When the Tooltip is clicked it stays open until the user clicks somewhere on the page again. An example can be seen here: https://momentum.design/components/tooltip/code

Current Behavior

The Tooltip can only be triggered on hover.

Possible Solution

Create a new prop that can be passed in so that users can choose to trigger the Tooltip 'onClick' or 'MouseEnter'.

Context

Screen.Recording.2021-01-27.at.3.49.35.PM.mov

Your Environment

@futurethang futurethang added enhancement Enhancement to an existing feature or component web component @momentum-ui/web-components labels Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to an existing feature or component web component @momentum-ui/web-components
Projects
None yet
Development

No branches or pull requests

2 participants