Sections

Pointer events

Utilities for controlling whether an element responds to pointer events.

Class Properties
.pointer-events-none pointer-events: none;
.pointer-events-auto pointer-events: auto;

Usage

Use .pointer-events-none to make an element ignore pointer events. The pointer event will go “through” the element and target whatever is “underneath” that element instead.

Use .pointer-events-auto to have an element behave as it would if the pointer-events property were not specified.

Variants

By default, no responsive or hover-state variants are generated for pointer event utilities.

Responsive

To include responsive variants like .md:pointer-events-none, add "pointer-events" to the $responsive-variants variable in your theme’s _variables.scss file when recompiling your CSS:

$responsive-variants: (
  // ...
  "pointer-events",
);

Hover-state

To include hover-state variants like .hover:pointer-events-none, add "pointer-events" to the $hover-variants variable:

$hover-variants: (
  // ...
  "pointer-events",
);