pointer-events

suggest change

The pointer-events property allows for control over how HTML elements respond to mouse/touch events.

.disabled {
  pointer-events: none;
}

In this example,

‘none’ prevents all click, state and cursor options on the specified HTML element [[1]]

none makes the element not a hit-test target, so a click can reach whatever is underneath. Descendants can still receive events unless they are also set to none. For HTML elements the other common value is:

  1. https://css-tricks.com/almanac/properties/p/pointer-events/

Other resources:

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents