How can I disable clicking through an element?

I can click through elements on the buttons underneath. I tried setting “on click” to “none” on the elements that I would click through but that did not do anything. How can I disable it?

Thank you!