I developed a custom tool and utilized z-index to position it above all other elements:
.customTool {
position: fixed;
z-index: 99999;
}
However, this functionality stops working when a modal <dialog />
element is opened in modal
mode.
As a result, users are unable to interact with the .customTool
.
This issue arises due to the introduction of the new #top-layer
concept that sits on top of all other elements:
https://developer.chrome.com/blog/what-is-the-top-layer/
Is there a way to ensure that my custom tool always remains on top of all elements (even modal dialogs) and remains interactive?