TOLOGIX - ISLG App Rebuild

Design issue in Action Menu Subscriber Side

Hi Savannah Mitchell, Project Manager at Industrial Savannah , Melissa Cowell, General Manager at Industrial Melissa ,

The design issue will come up after migrate the data. As per screen shot, If we display the Action menu at First branch and if any popup will be open then all action menu is highlighted on Subscriber side (Ex. Article Citator, Treaty Rule tool).

This issue is not occurring on rebuild demo because there is less data available . We found that z-indexing is increasing in CSS due to migrated data.

Comments & Events

Savannah Mitchell, Project Manager at Industrial
Hi Harsh Parikh, Tech Lead at DevIT Harsh

You will need to update the stylesheet so it matches this (the changes are highlighted in bold): 

.popupfixedBackground {
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 100%;
background: rgba(0, 0, 0, 0.8);
z-index: 9000;
}
 
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background: white;
    border: 1px solid #AEADAC;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    z-index: 9999;
    height: auto;
    width: 500px;
    max-width: -webkit-calc(100% - 15px * 2);
    max-width: -moz-calc(100% - 15px * 2);
    max-width: calc(100% - 15px * 2);
    max-height: -webkit-calc(100% - 15px * 2);
    max-height: -moz-calc(100% - 15px * 2);
    max-height: calc(100% - 15px * 2);
    overflow: hidden;
    padding-top: 30px;
}
Harsh Parikh, Tech Lead at DevIT
Hi Savannah Mitchell, Project Manager at Industrial Savannah ,

The initial issue is resolved but after first popup close the second popup will be open and that time the same issue occured.


This popup is Session Tracking. It mean once the client name is selected the second popup for matter selection is open and that time the action menu z-index issue is still there.
Savannah Mitchell, Project Manager at Industrial
Thanks Harsh Parikh, Tech Lead at DevIT Harsh . Steph is looking into this now and we will post our solution as soon as possible. 

Savannah
Savannah Mitchell, Project Manager at Industrial
Hi Harsh Parikh, Tech Lead at DevIT Harsh ,

You will need to update these functions on your sassquatch file.

You will have to make sure the modal windows all have a background afterward.

The issue is that sometimes you use another background called .popupfixedBackground but our popup function already adds a background which is called "popup__overlay" at the bottom of HTML when we open a new modal window. 

The background was darker because both popupfixedBackground and popup__overlay were used. 
 
In these three updated functions, we removed the popup__overlay. You will need to make sure every modal windows uses popupfixedBackground since we won't have a background added automatically from now on.
 
function handleOpeningPopup(prev) {
        prevLocation = prev;
        // Get the scroll distance at the time the modal was opened
        scrollDistance = $(window).scrollTop();
        // Pull the top of the body up by that amount
        $('body').css("top", scrollDistance * -1);
        $('body').addClass('popup--open');
        // FEB 22 - Stephanie
        // Will fix the modal issue. Make sure every popup still works afterward. 
        // $('body').append('<div class="popup__overlay"></div>');
        // $('.popup__overlay').fadeIn('fast');
}
 
function handleClosingPopup() {
        // Remove the negative top value on the body
        $('body').css("top", "");
        $('body').removeClass('popup--open');
        // FEB 22 - Stephanie
        // Will fix the modal issue. Make sure every popup still works afterward.
        // $('.popup__overlay').remove();

        $('.popup').hide();
        $('.popup.popup__temporary').remove();
        $('.popup.open').removeClass('open');
        if (prevLocation) {
            prevLocation.focus();
            prevLocation = null;
        }
        // Set the window's scroll position back to what it was before the modal was opened
        $(window).scrollTop(scrollDistance);
    }
 
// Manages closing of popup modal
    // FEB 22 - Stephanie
    // Will fix the modal issue. Make sure every popup still works afterward.
    // $(document).on('click', '.popup__close, .popup__overlay, .popup__cancel', function () {

    $(document).on('click', '.popup__close, .popup__cancel', function () {
        handleClosingPopup();
    });



Thanks! 

Savannah
Harsh Parikh, Tech Lead at DevIT
Hi Savannah Mitchell, Project Manager at Industrial Savannah ,

We need html template with integrated the update JS. We need to check how it looks and how it will work using Action Menu. then after, We will go to integrate this change in application by reference of template.

We need html template then user click on action menu and center popup will be open.

Ketan Sondarva, Technical Project Manager at DevIT Ketan , will discuss with you in today's call.