Skip to content

Commit

Permalink
Fix z-index bug
Browse files Browse the repository at this point in the history
  • Loading branch information
peterprescott committed Oct 14, 2023
1 parent bad98e7 commit 9df8038
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/fullstack_ui/css/style.css
Expand Up @@ -38,7 +38,7 @@ button:hover {
#map {
position: absolute;
top: 100px;
z-index: -1;
z-index: 1;
width: 100%;
height: 400px;
}
Expand Down
2 changes: 2 additions & 0 deletions frontend/fullstack_ui/js/popup-alert.js
Expand Up @@ -17,12 +17,14 @@ function alert(message) {
}

function popUp(message) {
mapDiv.style.zIndex = "-1";
popupMessage.innerText = message;
overlay.style.display = "flex";
popupButton.focus();
}

function closePopUp() {
mapDiv.style.zIndex = "1";
overlay.style.display = "none";
}

Expand Down

0 comments on commit 9df8038

Please sign in to comment.