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

Add a transparent, fixed overlay over screen when tooltip is opened #5

Closed
timc1 opened this issue Jun 24, 2020 · 1 comment
Closed
Labels
enhancement New feature or request

Comments

@timc1
Copy link
Owner

timc1 commented Jun 24, 2020

When a tooltip is opened, we'll create a transparent, fixed overlay over the entire viewport to make sure outer clicks don't do anything but hide the tooltip.

.overlay::before {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  display: block;
  cursor: default;
  content: " ";
  background: transparent;
}
@timc1 timc1 added the enhancement New feature or request label Jun 24, 2020
@timc1
Copy link
Owner Author

timc1 commented Jun 24, 2020

Closed as you can easily add this css to your custom content.

@timc1 timc1 closed this as completed Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant