Closed Rabbitzzc closed 3 years ago
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit 184fece080c3f261867abac76f5c3f6ca73067b8:
Sandbox | Source |
---|---|
francoischalifour/medium-zoom: vanilla | Configuration |
Hey, thanks for the contribution. Why do you need this change?
Hey, thanks for the contribution. Why do you need this change?
Some webpages may have default z-index for some components, so in order to avoid manual changes, this PR was added (learned from practice)
Since the overlay and the zoomed image are appended to the DOM last, this shouldn't happen in most of the cases—so a user-land fix seems appropriate here.
Thank you though!
Summary
Add z-index, try to keep the popover on top.
Result