From 7e6265fe249df877baad4cbe39c180e28655eaee Mon Sep 17 00:00:00 2001 From: Andreas Gasser Date: Thu, 23 May 2019 07:36:14 +0200 Subject: [PATCH] fix(#130): Fixed visibility bug for image / label selector --- src/images/detail/Image.jsx | 1 + .../detail/__tests__/__snapshots__/Image.test.js.snap | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/src/images/detail/Image.jsx b/src/images/detail/Image.jsx index 242b8d8..8f27197 100644 --- a/src/images/detail/Image.jsx +++ b/src/images/detail/Image.jsx @@ -27,6 +27,7 @@ const StyledSelector = styled.div` left: ${props => props.pos.left * 100}%; height: ${props => props.pos.height * 100}%; width: ${props => props.pos.width * 100}%; + z-index: 10; `; // image diff --git a/src/images/detail/__tests__/__snapshots__/Image.test.js.snap b/src/images/detail/__tests__/__snapshots__/Image.test.js.snap index 12a4c07..0ae36ed 100644 --- a/src/images/detail/__tests__/__snapshots__/Image.test.js.snap +++ b/src/images/detail/__tests__/__snapshots__/Image.test.js.snap @@ -106,6 +106,7 @@ exports[`Image test suite should render ImageContainer consistently 1`] = ` left: 200%; height: 400%; width: 300%; + z-index: 10; } .c3 { @@ -118,6 +119,7 @@ exports[`Image test suite should render ImageContainer consistently 1`] = ` left: 2200%; height: 4400%; width: 3300%; + z-index: 10; } .c4 { @@ -1729,6 +1731,7 @@ string", left: 200%; height: 400%; width: 300%; + z-index: 10; } .c3 { @@ -1741,6 +1744,7 @@ string", left: 2200%; height: 4400%; width: 3300%; + z-index: 10; } .c7 { @@ -7453,6 +7457,7 @@ string", width: ", [Function], "%; + z-index: 10; ", ], }, @@ -7527,6 +7532,7 @@ string", width: ", [Function], "%; + z-index: 10; ", ], }, @@ -7596,6 +7602,7 @@ string", width: ", [Function], "%; + z-index: 10; ", ], },