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

Trying to add clickable links to a tooltip #227

Closed
zekedroid opened this issue Nov 21, 2016 · 1 comment
Closed

Trying to add clickable links to a tooltip #227

zekedroid opened this issue Nov 21, 2016 · 1 comment

Comments

@zekedroid
Copy link

There was an issue a while back about adding anchor tags to the content in a Tooltip. It mostly works except that there is a css rule on the rendered tooltip which causes all pointer events to be omitted, thereby not allowing clicking of anything inside any tooltip.

The exact rule is

.__react_component_tooltip {
    pointer-events: none;
}

Is there a way to manually turn this off? What is its purpose exactly and could we do without it?

@wwayne
Copy link
Collaborator

wwayne commented Nov 23, 2016

You can check the demo page in Theme and delay

<a data-tip='hover on me will keep the tootlip'>(・ω´・ )́)</a>
<ReactTooltip class='extraClass' delayHide={1000} effect='solid'/>
.extraClass {
  font-size: 20px !important;
  pointer-events: auto !important;
  &:hover {
     visibility: visible !important;
     opacity: 1 !important;
  }
}

I have to admit that the solution is super ugly, I will try to add a new option to support this in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants