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

Z-Index Issues #521

Closed
dipiana opened this issue Aug 19, 2019 · 1 comment · Fixed by #523
Closed

Z-Index Issues #521

dipiana opened this issue Aug 19, 2019 · 1 comment · Fixed by #523

Comments

@dipiana
Copy link

dipiana commented Aug 19, 2019

I wanted to use shepherd.js on a site with a theme which uses z-index: 9999 for an element I wanted to highlight. That caused some problems with the overlay.

I now tried to set tippyOptions: {zIndex: '99999'} which changes the z-index of the popup.
The z-index of the overlay was not affected.

Therefore I had to change this line:

after the change, it worked fine.

Is there a way to set the general "base-"z-index?

For example, it would be great to set z-index for the element furthest in the background (in this case they SVG overlay) and increase the z-index for the elements in front of that +1 (the popup) automatically, if not otherwise stated.
We could so always state a "safe" z-index and shepherd never sets a z-index lower than this given number.

@RobbieTheWagner
Copy link
Member

Why does the base site set such a high z-index?

We should definitely tie the z-index variables together. Should be a super easy change.

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

Successfully merging a pull request may close this issue.

2 participants