Skip to content

Commit 219a95f

Browse files
authoredJan 28, 2021
docs(debugging): add z-index debugging section (#167)
1 parent fb3934e commit 219a95f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
 

‎README.md

+19
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ npx doctoc README.md --maxlevel 3
6363
- [Attributes](#attributes)
6464
- [Events](#events)
6565
- [Examples](#examples)
66+
- [Debugging](#debugging)
6667
- [Browser support](#browser-support)
6768
- [Contributing](#contributing)
6869
- [License](#license)
@@ -498,6 +499,24 @@ class App extends Component {
498499

499500
You can see [more examples](examples/) including [React](examples/react) and [Vue](examples/vue), or check out the [storybook](https://medium-zoom.francoischalifour.com/storybook).
500501

502+
## Debugging
503+
504+
<details>
505+
<summary>The zoomed image is not visible</summary>
506+
507+
The library doesn't provide a `z-index` value on the zoomed image to avoid conflicts with other frameworks. Some frameworks might specify a `z-index` for their elements, which makes the zoomed image not visible.
508+
509+
If that's the case, you can provide a `z-index` value in your CSS:
510+
511+
```css
512+
.medium-zoom-overlay,
513+
.medium-zoom-image--opened {
514+
z-index: 999;
515+
}
516+
```
517+
518+
</details>
519+
501520
## Browser support
502521

503522
| IE | Edge | Chrome | Firefox | Safari |

0 commit comments

Comments
 (0)
Please sign in to comment.