@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
22 lines (19 loc) • 589 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
import { L as Log } from './common-Cx_AGO_M.js';
const UNIQUE_LABELS = new Set();
function addNavLabel(ariaLabel) {
if (UNIQUE_LABELS.has(ariaLabel)) {
Log.warn(`There already is a nav element with the label "${ariaLabel}"`);
}
else {
UNIQUE_LABELS.add(ariaLabel);
}
}
function removeNavLabel(ariaLabel) {
UNIQUE_LABELS.delete(ariaLabel);
}
export { addNavLabel as a, removeNavLabel as r };
//# sourceMappingURL=unique-nav-labels-ZepmMUSu.js.map
//# sourceMappingURL=unique-nav-labels-ZepmMUSu.js.map