@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
18 lines (17 loc) • 471 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
import { Log } from "../schema";
const UNIQUE_LABELS = new Set();
export 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);
}
}
export function removeNavLabel(ariaLabel) {
UNIQUE_LABELS.delete(ariaLabel);
}
//# sourceMappingURL=unique-nav-labels.js.map