I've been working on implementing a guide feature for my application. One of the requirements is to display a tooltip next to a specific HTML element, and have that element appear on top of a modal backdrop that appears alongside the tooltip.
The issue I'm facing is that despite trying various solutions, such as setting
z-index: 10000 !important; position: relative
, the HTML element still does not show on top of the modal backdrop. Even attempting to manipulate parent elements' z-index
using Firefox Developer Tools has not yielded any success.
The complexity of the application's HTML structure makes it difficult to achieve this functionality with ease. However, I need a solution that allows me to bring any given element to the forefront without directly modifying the DOM, ideally using JavaScript/React.
UPDATE: Check out this Code demo - click the hat button to see the guide/tooltips in action