Enode — API Reference
    Preparing search index...

    Variable TAP_TARGETConst

    TAP_TARGET: "pointer-coarse:relative pointer-coarse:after:absolute pointer-coarse:after:left-1/2 pointer-coarse:after:top-1/2 pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 pointer-coarse:after:-translate-x-1/2 pointer-coarse:after:-translate-y-1/2"

    Makes a small control easy to hit with a finger without changing how it looks: on a touch screen (pointer: coarse) an invisible area, centred on the control and at least 44 × 44 px, takes the tap as well. With a mouse nothing is added, and the control is drawn at the same size either way, so no layout moves.

    Add it to the className of a button, link or other element with content (a pseudo-element carries the area, so not an <input>). On touch it makes the element relative: do not put it on one that is positioned otherwise. The area reaches out of the control by up to (44 − its size) / 2 px per side; inside a box that clips or scrolls, leave it that much room.