Here's the structure I'm working with:
<div class='offline'>some text <button class='delete'>Delete</button></div>
I want to disable the div using pointer-events: none, but still keep the button active. Is this possible?
I attempted to do this with the following code:
div.offline:not(.delete) {
pointer-events: none;
}
Unfortunately, this did not work. Any suggestions or ideas on how to achieve this?