LPS-52192  removed "position:relative" in modals as this was causing the bug. To solve the original problem in LPS-51069, we can set the z-index in #wrapper