Skip to content

Commit

Permalink
[JENKINS-72679] avoid admin monitor popup makes buttons unusable (#8941)
Browse files Browse the repository at this point in the history
avoid admin monitor makes buttons unusable

The div of the admin monitor pop-up is set to opacity 0 but keeps
z-index 1000 when closed. This makes the buttons, that are behind the
popup when shown unusable.
This change uses an animation that ensures the z-index is 0 after hiding
the popup and buttons are still usable
  • Loading branch information
mawinter69 committed Feb 9, 2024
1 parent 76df167 commit a642354
Showing 1 changed file with 34 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,46 @@
display: block;
background-color: var(--background);
box-shadow: var(--dropdown-box-shadow);
transition: var(--standard-transition);
border-radius: 15px;
opacity: 0;
transform: translateY(-10px) scale(0.975);
z-index: 1000;
animation: hide-am-list 300ms ease-in 1 normal;
z-index: 0;
}

.am-container.visible div.am-list {
opacity: 1;
transform: scale(1);
animation: show-am-list 300ms ease-in 1 normal forwards;
z-index: 1000;
}

@keyframes show-am-list {
from {
opacity: 0;
visibility: hidden;
transform: translateY(-10px) scale(0.975);
}
to {
opacity: 1;
visibility: visible;
transform: scale(1);
}
}

@keyframes hide-am-list {
from {
opacity: 1;
visibility: visible;
transform: scale(1);
z-index: 1000;
}
to {
opacity: 0;
visibility: hidden;
transform: translateY(-10px) scale(0.975);
z-index: 1000;
}
}

.am-container .am-message {
display: block;
line-height: 1.4em;
Expand Down

0 comments on commit a642354

Please sign in to comment.