Primitives / foldkit-primitives/dom

FLUID_HELD_ATTRIBUTE

const · packages/primitives/src/dom/fluid-hover.ts:41

const FLUID_HELD_ATTRIBUTE: 'data-fluid-held'

The attribute FluidHover sets on its container, to the highlight's name, while the item that highlight is on is held. A stylist draws the press on the highlight (data-fluid-held) rather than on the item, whose own press is hidden under it; a press in a gap marks it too where gapClick sends that press to the lit item.