@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
21 lines (19 loc) • 562 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
let openTooltips = 0;
const tooltipOpened = () => {
openTooltips++;
};
const tooltipClosed = () => {
openTooltips = Math.max(0, openTooltips - 1);
};
const handleCancelOverlay = (event) => {
if (openTooltips > 0) {
event.preventDefault();
}
};
const isTooltipOpen = () => openTooltips > 0;
export { tooltipOpened as a, handleCancelOverlay as h, isTooltipOpen as i, tooltipClosed as t };
//# sourceMappingURL=tooltip-open-tracking.js.map
//# sourceMappingURL=tooltip-open-tracking.js.map